module documentation

Source code 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 an ast.
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 _SourceTree Undocumented
Class _StructuredComment A structured comment.
Class _VariableAnnotation Undocumented
Function _process_comment Process a single comment.
Function _process_comments Undocumented
Constant _DIRECTIVE_RE Undocumented
def parse_src(src: str, python_version: Tuple[int, int]): (source)

Parses a string of source code into an ast.

def visit_src_tree(src_tree): (source)

Undocumented

IGNORE_RE = (source)

Undocumented

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

Undocumented

def _process_comment(line, lineno, col): (source)

Process a single comment.

def _process_comments(src): (source)

Undocumented

_DIRECTIVE_RE = (source)

Undocumented

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