class documentation

class ImportedName(SymbolNode): (source)

View In Hierarchy

Indirect reference to a fullname stored in symbol table.

This node is not present in the original program as such. This is just a temporary artifact in binding imported names. After semantic analysis pass 2, these references should be replaced with direct reference to a real AST node.

Note that this is neither a Statement nor an Expression so this can't be visited.

Class Method deserialize Undocumented
Method __init__ Undocumented
Method __str__ Undocumented
Method serialize Undocumented
Class Variable __slots__ Undocumented
Instance Variable target​_fullname Undocumented
Property fullname Undocumented
Property name Undocumented

Inherited from Node (via SymbolNode):

Method accept Undocumented

Inherited from Context (via SymbolNode, Node):

Method get​_column Don't use. Use x.column.
Method get​_line Don't use. Use x.line.
Method set​_line If target is a node, pull line (and column) information into this node. If column is specified, this will override any column information coming from a node.
Instance Variable column Undocumented
Instance Variable end​_line Undocumented
Instance Variable line Undocumented
@classmethod
def deserialize(cls, data): (source)

Undocumented

Parameters
data:JsonDictUndocumented
Returns
ImportedNameUndocumented
def __init__(self, target_fullname): (source)

Undocumented

Parameters
target​_fullname:strUndocumented
def __str__(self): (source)

Undocumented

Returns
strUndocumented
def serialize(self): (source)

Undocumented

Returns
JsonDictUndocumented
__slots__: tuple[str, ...] = (source)

Undocumented

target_fullname = (source)

Undocumented

@property
fullname: str = (source)

Undocumented

@property
name: str = (source)

Undocumented