module documentation
Undocumented
Class |
|
Engine for locating and statically inspecting expressions. |
Class |
|
Visitor looking for all expressions whose spans enclose given position. |
Class |
|
Visitor looking for an expression whose span matches given one exactly. |
Function | expr |
Format expression span as in mypy error messages. |
Function | find |
Find all expressions enclosing given position starting from innermost. |
Function | find |
Find an expression matching given span, or None if not found. |
Function | find |
Find module by a node fullname. |
Function | find |
Find the node defining member 'name' in given TypeInfo. |
Function | get |
Returns the Instance fallback for this type if one exists or None. |
Function | node |
Undocumented |
Function | node |
Undocumented |
def find_by_location(tree:
MypyFile
, line: int
, column: int
, end_line: int
, end_column: int
) -> Expression|None
:
(source)
¶
Find an expression matching given span, or None if not found.
Find module by a node fullname. This logic mimics the one we use in fixup, so should be good enough.