API reference
python:astx:astx.DataType
class DataType
DataType(loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None)
Source: packages/astx/src/astx/base.py:641
Declared as: python:astx:astx.base.DataType
AST main expression class.
Attributes
-
loc — Type: SourceLocation
-
kind — Type: ASTKind
-
comment — Type: str
-
parent — Type: Optional[ASTNodes]
-
ref — Type: str
-
nbytes — Type: int
-
type_ — Type: ExprType
-
name — Type: str
-
_tmp_id — Type: ClassVar[int]
Methods
-
__init__ — Initialize the data type.
-
__str__ — Return an string that represents the object.
-
get_struct — Return a simple structure that represents the object.