class documentation

class TypeDeclUnit(Node): (source)

View In Hierarchy

Module node. Holds module contents (constants / classes / functions). Attributes: name: Name of this module, or None for the top-level module. constants: Iterable of module-level constants. type_params: Iterable of module-level type parameters. functions: Iterable of functions defined in this type decl unit. classes: Iterable of classes defined in this type decl unit. aliases: Iterable of aliases (or imports) for types in other modules.

Method __contains__ Undocumented
Method __eq__ Undocumented
Method __hash__ Undocumented
Method __ne__ Undocumented
Method Get Version of Lookup that returns None instead of raising.
Method Lookup Convenience function: Look up a given name in the global namespace.
Class Variable aliases Undocumented
Class Variable classes Undocumented
Class Variable constants Undocumented
Class Variable functions Undocumented
Class Variable name Undocumented
Class Variable type_params Undocumented
Method _InitCache Undocumented

Inherited from Node:

Method __ge__ Undocumented
Method __gt__ Larger than other node? Define so we can have deterministic ordering.
Method __iter__ Undocumented
Method __le__ Undocumented
Method __lt__ Smaller than other node? Define so we can have deterministic ordering.
Method IterChildren Undocumented
Method PopulateLookupCache Undocumented
Method Replace Undocumented
Method Visit Visitor interface for transforming a tree of nodes to a new tree.
Class Variable __slots__ Undocumented
Method _ToTuple Returns a tuple of the fields of self as a sort key.
Class Variable _name2item Undocumented
def __contains__(self, name): (source)

Undocumented

def __eq__(self, other): (source)

Undocumented

def __hash__(self): (source)

Undocumented

def __ne__(self, other): (source)

Undocumented

def Get(self, name): (source)

Version of Lookup that returns None instead of raising.

def Lookup(self, name): (source)

Convenience function: Look up a given name in the global namespace. Tries to find a constant, function or class by this name. Args: name: Name to look up. Returns: A Constant, Function or Class. Raises: KeyError: if this identifier doesn't exist.

aliases: Tuple[Alias, ...] = (source)

Undocumented

classes: Tuple[Class, ...] = (source)

Undocumented

constants: Tuple[Constant, ...] = (source)

Undocumented

functions: Tuple[Function, ...] = (source)

Undocumented

Undocumented

type_params: Tuple[TypeParameter, ...] = (source)

Undocumented

def _InitCache(self): (source)

Undocumented