API reference
python:astx:astx.symbol_table.ScopeNodeBase
class ScopeNodeBase
ScopeNodeBase(name: str, parent: Optional[ScopeNodeBase] = None)
Source: packages/astx/src/astx/symbol_table.py:22
ScopeNodeBase is the base used for the nodes (levels) in the scope.
Attributes
-
name — Name identifying this declaration.; Type: str
-
parent — Parent node in the syntax tree.; Type: Optional[ScopeNodeBase]
-
default_parent — Default parent.; Type: Optional[ScopeNodeBase]
-
named_expr — Named expr.; Type: dict[str, NamedExpr]
Methods
- __init__ — Initialize ScopeNodeBase.