class documentation

class TemplateItem(Node): (source)

View In Hierarchy

Represents template name for generic types. This is used for classes and signatures. The 'template' field of both is a list of TemplateItems. Note that *using* the template happens through TypeParameters. E.g. in: class A<T>: def f(T x) -> T both the "T"s in the definition of f() are using pytd.TypeParameter to refer to the TemplateItem in class A's template. Attributes: type_param: the TypeParameter instance used. This is the actual instance that's used wherever this type parameter appears, e.g. within a class.

Class Variable type_param Undocumented
Property full_name Undocumented
Property name 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

Undocumented

Undocumented

Undocumented