API reference
python:astx:astx.nullable.NullableType
class NullableType
NullableType(value_type: DataType)
Source: packages/astx/src/astx/nullable.py:22
A scalar value paired with an explicit validity bit.
Attributes
-
value_type — Type of the stored value.; Type: DataType
-
loc — Type: SourceLocation
-
kind — Type: ASTKind
-
comment — Type: str
-
parent — Type: Optional[ASTNodes]
-
ref — Type: str
-
nbytes — Type: int
-
type_ — Type: ExprType
-
name — Type: str
-
_tmp_id — Type: int
Methods
-
__init__ — Initialize a nullable scalar type.
-
__str__ — Render the nullable type.
-
get_struct — Render the node with all typed children.