rope.base.worder
Attributes
Classes
A class for finding boundaries of words and expressions |
Functions
|
Module Contents
- rope.base.worder.MINIMAL_LEN_FOR_AS = 5
- rope.base.worder.get_name_at(resource, offset)
- class rope.base.worder.Worder(code, handle_ignores=False)
A class for finding boundaries of words and expressions
Note that in these methods, offset should be the index of the character not the index of the character after it.
Some of the methods here doesn’t exactly do what their name might lead you to think they do, these probably should be fixed. Refer to ropetest/codeanalyzetest.py for what these methods returns. Note that codeanalyzetest.py documents the current behavior, rather than what they should’ve been.
- code_finder
- handle_ignores = False
- code
- get_primary_at(offset)
- get_word_at(offset)
- get_primary_range(offset)
- get_splitted_primary_before(offset)
- get_word_range(offset)
- is_function_keyword_parameter(offset)
- is_a_class_or_function_name_in_header(offset)
- is_from_statement_module(offset)
- is_from_aliased(offset)
- is_import_statement_aliased_module(offset)
- find_parens_start_from_inside(offset)
- is_a_name_after_from_import(offset)
- is_from_statement(offset)
- get_from_aliased(offset)
- is_import_statement(offset)
- is_assigned_here(offset)
- is_a_function_being_called(offset)
- get_word_parens_range(offset)
- is_name_assigned_in_class_body(offset)
- is_on_function_call_keyword(offset)
- get_parameters(first, last)
- get_from_module(offset)
- is_assigned_in_a_tuple_assignment(offset)
- get_assignment_type(offset)
- get_function_and_args_in_header(offset)
- get_lambda_and_args(offset)
- find_function_offset(offset)