rope.base.worder ================ .. py:module:: rope.base.worder Attributes ---------- .. autoapisummary:: rope.base.worder.MINIMAL_LEN_FOR_AS Classes ------- .. autoapisummary:: rope.base.worder.Worder Functions --------- .. autoapisummary:: rope.base.worder.get_name_at Module Contents --------------- .. py:data:: MINIMAL_LEN_FOR_AS :value: 5 .. py:function:: get_name_at(resource, offset) .. py:class:: 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. .. py:attribute:: code_finder .. py:attribute:: handle_ignores :value: False .. py:attribute:: code .. py:method:: get_primary_at(offset) .. py:method:: get_word_at(offset) .. py:method:: get_primary_range(offset) .. py:method:: get_splitted_primary_before(offset) .. py:method:: get_word_range(offset) .. py:method:: is_function_keyword_parameter(offset) .. py:method:: is_a_class_or_function_name_in_header(offset) .. py:method:: is_from_statement_module(offset) .. py:method:: is_from_aliased(offset) .. py:method:: is_import_statement_aliased_module(offset) .. py:method:: find_parens_start_from_inside(offset) .. py:method:: is_a_name_after_from_import(offset) .. py:method:: is_from_statement(offset) .. py:method:: get_from_aliased(offset) .. py:method:: is_import_statement(offset) .. py:method:: is_assigned_here(offset) .. py:method:: is_a_function_being_called(offset) .. py:method:: get_word_parens_range(offset) .. py:method:: is_name_assigned_in_class_body(offset) .. py:method:: is_on_function_call_keyword(offset) .. py:method:: get_parameters(first, last) .. py:method:: get_from_module(offset) .. py:method:: is_assigned_in_a_tuple_assignment(offset) .. py:method:: get_assignment_type(offset) .. py:method:: get_function_and_args_in_header(offset) .. py:method:: get_lambda_and_args(offset) .. py:method:: find_function_offset(offset)