module documentation
Generate cross references from a project.
Class |
|
A symbol definition. |
Class |
|
A location of a symbol definition. |
Class |
|
Store the text and location of a docstring. |
Class |
|
A collection of namespaced symbols. |
Class |
|
Representation of an expression function call argument. |
Class |
|
Representation of a function call. |
Class |
|
A link between a function def and the defs of its params. |
Class |
|
Runs the indexer visitor and collects its results. |
Class |
|
Visitor that generates indexes. |
Class |
|
Module representation. |
Class |
|
Representation of a single-variable function call argument. |
Class |
|
Stores a value inferred by pytype. |
Class |
|
A symbol holding a reference to a definition. |
Class |
|
A symbol from another module. |
Class |
|
An AST node visitor that keeps track of scopes and environments. |
Class |
|
Undocumented |
Exception |
|
Undocumented |
Exception |
|
Wrap exceptions raised by the indexer. |
Function | get |
Undocumented |
Function | get |
Undocumented |
Function | match |
Get all opcodes matching op_match_list on a given line. |
Function | match |
Get all opcodes matching op_match_list in a range of lines. |
Function | process |
Process a single file and return cross references. |
Function | qualified |
Fully qualify a method call with its class scope. |
Constant | DEF |
Undocumented |
Constant | IMPORT |
Undocumented |
Function | _unwrap |
Undocumented |
Constant | _RETURNING |
Undocumented |
Type Variable | _T |
Undocumented |
Get all opcodes matching op_match_list on a given line. Args: opcode_traces: traces lineno: line number to get ops from. op_match_list: [(opcode_name, symbol|None), ...]; None matches any symbol. Returns: A list of matching opcodes.
def process_file(options, source_text=None, generate_callgraphs=False, preserve_pytype_vm=False):
(source)
¶
Process a single file and return cross references. Args: options: A dictionary of pytype options. source_text: Optional text of the file; will be read from the file pointed to by options.input if not supplied. generate_callgraphs: Collect call graph information preserve_pytype_vm: Preserve the pytype vm in the indexer Returns: The Indexer object used for indexing. Raises: PytypeError if pytype fails.