API reference
python:astx:astx.data.Identifier
class Identifier
Identifier(name: str, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None)
Source: packages/astx/src/astx/data.py:185
AST class for identifiers.
Attributes
-
name — Name identifying this declaration.; Type: str
-
type_ — Type associated with this expression.; Type: DataType
-
loc — Type: SourceLocation
-
kind — Type: ASTKind
-
comment — Type: str
-
parent — Type: Optional[ASTNodes]
-
ref — Type: str
-
nbytes — Type: int
-
_tmp_id — Type: int
Methods
-
__init__ — Initialize the Identifier instance.
-
__str__ — Return a string that represents the object.
-
get_struct — Return a structure that represents the Identifier object.