The dotted attribute-object pair before the cursor
(cursor_offset: int, line: str)
| 259 | |
| 260 | |
| 261 | def current_dotted_attribute(cursor_offset: int, line: str) -> LinePart | None: |
| 262 | """The dotted attribute-object pair before the cursor""" |
| 263 | match = current_word(cursor_offset, line) |
| 264 | if match is not None and "." in match.word[1:]: |
| 265 | return match |
| 266 | return None |
| 267 | |
| 268 | |
| 269 | _current_expression_attribute_re = LazyReCompile( |
nothing calls this directly
no test coverage detected