Skip to main content

Module extract_variable

Module extract_variable 

Source

EnumsΒ§

Anchor πŸ”’
ExtractionKind πŸ”’

FunctionsΒ§

extract_token_range_of πŸ”’
extract_variable πŸ”’
get_literal_name πŸ”’
like_const_value πŸ”’
peel_parens πŸ”’
valid_target_expr πŸ”’
Check whether the node is a valid expression which can be extracted to a variable. In general that’s true for any expression, but in some cases that would produce invalid code.