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:634
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 — Type: int
-
type_ — Type: DataType
Methods
- __init__ — Preserve the mathematical integer, without truncating its width.