API reference
python:astx:astx.literals.LiteralBoolean
class LiteralBoolean
LiteralBoolean(value: bool, loc: SourceLocation = NO_SOURCE_LOCATION)
Source: packages/astx/src/astx/literals/boolean.py:18
Declared as: python:astx:astx.literals.boolean.LiteralBoolean
LiteralBoolean data type class.
Attributes
-
type_ — Type associated with this expression.; Type: Boolean
-
loc — Source coordinates attached to this node.; Type: SourceLocation
-
value — Stored value.; Type: bool
-
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__ — Initialize LiteralBoolean.