boolean
¶
ASTx Data Types module.
Classes:
-
LiteralBoolean
–LiteralBoolean data type class.
LiteralBoolean
¶
LiteralBoolean(value: bool, loc: SourceLocation = NO_SOURCE_LOCATION)
Bases: Literal
LiteralBoolean data type class.
Methods:
-
get_struct
–Return the AST representation for the object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/literals/boolean.py
23 24 25 26 27 28 29 30 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return the AST representation for the object.
Source code in src/astx/literals/base.py
37 38 39 40 41 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
265 266 267 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
259 260 261 262 263 |
|