API reference
python:astx:astx.system.TypeOfExpr
class TypeOfExpr
TypeOfExpr(value: astx.Expr)
Source: packages/astx/src/astx/system.py:210
TypeOfExpr AST class.
Represent an expression that produces a value's type name.
Attributes
-
value — Stored value.; Type: astx.Expr
-
type_ — Type associated with this expression.; Type: astx.String
-
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 TypeOfExpr.
-
get_struct — Return the AST structure of the type-of expression.