API reference
python:astx:astx.blocks.Block
class Block
Source: packages/astx/src/astx/blocks.py:19
The AST tree.
Attributes
-
loc — Type: SourceLocation
-
kind — Type: ASTKind
-
comment — Type: str
-
parent — Type: Optional[ASTNodes]
-
ref — Type: str
-
name — Type: str
-
nodes — Type: list[ASTType]
-
position — Type: int
Methods
- get_struct — Return the AST structure of the object.