module documentation

LibCST-based parser.

Class Call Tag to identify function calls.
Class LineRange Undocumented
Exception SkipFileError Exception thrown if we encounter "pytype: skip-file" in the source code.
Function parse_src Parses a string of source code into a LibCST tree.
Function visit_src_tree Undocumented
Constant IGNORE_RE Undocumented
Variable log Undocumented
Class _BlockReturns Tracks return statements in with/try blocks.
Class _Matches Tracks branches of match statements.
Class _ParseVisitor Visitor for parsing a source tree.
Class _StructuredComment A structured comment.
Class _VariableAnnotation Undocumented
Constant _DIRECTIVE_RE Undocumented
def parse_src(src, python_version): (source)

Parses a string of source code into a LibCST tree.

def visit_src_tree(src_tree): (source)

Undocumented

IGNORE_RE = (source)

Undocumented

Value
re.compile(r'^ignore(\[.+\])?$')

Undocumented

_DIRECTIVE_RE = (source)

Undocumented

Value
re.compile(r'#\s*(pytype|type)\s*:\s?([^#]*)')