API reference
python:astx:astx.structs.StructType
class StructType
StructType(name: str, *, resolved_name: str | None = None, module_key: str | None = None, qualified_name: str | None = None)
Source: packages/astx/src/astx/structs.py:13
Named struct type reference.
Attributes
-
name — Name identifying this declaration.; Type: str
-
resolved_name — Name of resolved.; Type: str | None
-
module_key — Canonical module identity.; Type: str | None
-
qualified_name — Name of qualified.; Type: str | None
-
loc — Type: SourceLocation
-
kind — Type: ASTKind
-
comment — Type: str
-
parent — Type: Optional[ASTNodes]
-
ref — Type: str
-
nbytes — Type: int
-
type_ — Type: ExprType
-
_tmp_id — Type: int
Methods
-
__init__ — Initialize one named struct type reference.
-
__str__ — Render one struct type reference as text.
-
get_struct — Build one repr structure for a struct type reference.
Attributes
-
name —