API reference
python:astx:astx.NullFill
class NullFill
NullFill(value: Expr, replacement: Expr, loc: SourceLocation = NO_SOURCE_LOCATION)
Source: packages/astx/src/astx/nullable.py:165
Declared as: python:astx:astx.nullable.NullFill
Replace nulls with an eagerly evaluated non-null scalar.
Attributes
-
value — Stored value.; Type: Expr
-
replacement — Replacement.; Type: Expr
-
type_ — Type associated with this expression.; Type: DataType
-
loc — Type: SourceLocation
-
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 a null replacement.
-
get_struct — Render the node with all typed children.