API reference
python:astx:astx.literals.LiteralNone
class LiteralNone
LiteralNone(loc: SourceLocation = NO_SOURCE_LOCATION)
Source: packages/astx/src/astx/literals/base.py:75
Declared as: python:astx:astx.literals.base.LiteralNone
LiteralNone data type.
Attributes
-
loc — Source coordinates attached to this node.; Type: SourceLocation
-
ref — Identifier associated with this node.; Type: str
-
value — Stored value.; Type: None
-
type_ — Type associated with this expression.; Type: NoneType
-
kind — Type: ASTKind
-
comment — Type: str
-
parent — Type: Optional[ASTNodes]
-
nbytes — Type: int
-
name — Type: str
-
_tmp_id — Type: int
Methods
-
__init__ — Initialize LiteralNone.
-
get_struct — Represent explicit null in the supported scalar vocabulary.