API reference
python:astx:astx.FieldAccess
class FieldAccess
FieldAccess(value: astx.AST, field_name: str)
Source: packages/astx/src/astx/structs.py:70
Declared as: python:astx:astx.structs.FieldAccess
Field access expression.
Attributes
-
value — Stored value.; Type: astx.AST
-
field_name — Name of field.; Type: str
-
type_ — Type associated with this expression.; Type: AnyType
-
loc — Type: SourceLocation
-
kind — Type: ASTKind
-
comment — Type: str
-
parent — Type: Optional[ASTNodes]
-
ref — Type: str
-
nbytes — Type: int
-
name — Type: str
-
_tmp_id — Type: int
Methods
-
__init__ — Initialize one field access expression.
-
__str__ — Render one field access expression as text.
-
get_struct — Build one repr structure for a field access expression.