API reference
python:astx:astx.literals.LiteralInteger
class LiteralInteger
LiteralInteger(value: int, loc: SourceLocation = NO_SOURCE_LOCATION)
Source: packages/astx/src/astx/literals/numeric.py:551
Declared as: python:astx:astx.literals.numeric.LiteralInteger
Exact integer literal awaiting semantic contextualization.
No concrete width is declared. Analysis must preserve value and record the chosen type and converted constant separately in semantic metadata.
Attributes
-
value — Stored value.; Type: int
-
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
-
name — Type: str
-
_tmp_id — Type: int
Methods
- __init__ — Preserve the mathematical integer, without truncating its width.