class documentation

class Indexer: (source)

View In Hierarchy

Runs the indexer visitor and collects its results.

Method __init__ Undocumented
Method finalize Postprocess the information gathered by the tree visitor.
Method get_anchor_bounds Generate byte offsets from a location and length.
Method get_def_offsets Get the byte offsets for a definition.
Method get_doc_offsets Get the byte offsets for a docstring.
Method get_pytd Undocumented
Method get_pytd_def Undocumented
Method get_ref_bounds Undocumented
Method index Index an AST corresponding to self.source.
Method make_serializable Delete all data that cannot be pickled.
Instance Variable aliases Undocumented
Instance Variable ast Undocumented
Instance Variable calls Undocumented
Instance Variable childof Undocumented
Instance Variable classmap Undocumented
Instance Variable defs Undocumented
Instance Variable envs Undocumented
Instance Variable function_map Undocumented
Instance Variable function_params Undocumented
Instance Variable imports Undocumented
Instance Variable links Undocumented
Instance Variable loader Undocumented
Instance Variable locs Undocumented
Instance Variable module_name Undocumented
Instance Variable modules Undocumented
Instance Variable pytd_module Undocumented
Instance Variable refs Undocumented
Instance Variable resolved_modules Undocumented
Instance Variable source Undocumented
Instance Variable traces Undocumented
Instance Variable typemap Undocumented
Instance Variable vm Undocumented
Method _get_attr_bounds Calculate the anchor bounds for an attr access.
Method _get_attribute_class Look up the class of an attribute target.
Method _get_mro Undocumented
Method _is_pytype_module Undocumented
Method _lookup_attribute_by_type Look up an attribute using pytype annotations.
Method _lookup_class_attr Look up a class attribute in the environment.
Method _lookup_refs Look up references to generate links.
Method _lookup_remote_symbol Try to look up a definition in an imported module.
def __init__(self, *, ast, src, loader, pytd_module, module_name): (source)

Undocumented

def finalize(self): (source)

Postprocess the information gathered by the tree visitor.

def get_anchor_bounds(self, location, length): (source)

Generate byte offsets from a location and length.

def get_def_offsets(self, defloc): (source)

Get the byte offsets for a definition.

def get_doc_offsets(self, doc): (source)

Get the byte offsets for a docstring.

def get_pytd(self, datum): (source)

Undocumented

def get_pytd_def(self, data, name): (source)

Undocumented

def get_ref_bounds(self, ref): (source)

Undocumented

def index(self, code_ast): (source)

Index an AST corresponding to self.source.

def make_serializable(self): (source)

Delete all data that cannot be pickled.

Undocumented

Undocumented

Undocumented

Undocumented

classmap = (source)

Undocumented

Undocumented

Undocumented

function_map = (source)

Undocumented

function_params = (source)

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented

module_name = (source)

Undocumented

Undocumented

pytd_module = (source)

Undocumented

Undocumented

resolved_modules = (source)

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented

def _get_attr_bounds(self, name, location): (source)

Calculate the anchor bounds for an attr access.

def _get_attribute_class(self, obj): (source)

Look up the class of an attribute target.

def _get_mro(self, obj): (source)

Undocumented

def _is_pytype_module(self, obj): (source)

Undocumented

def _lookup_attribute_by_type(self, r, attr_name): (source)

Look up an attribute using pytype annotations.

def _lookup_class_attr(self, name, attrib): (source)

Look up a class attribute in the environment.

def _lookup_refs(self): (source)

Look up references to generate links.

def _lookup_remote_symbol(self, defn, attr_name): (source)

Try to look up a definition in an imported module.