API reference
python:astx:astx.IsInstanceExpr
class IsInstanceExpr
IsInstanceExpr(value: astx.Expr, target_type: astx.DataType)
Source: packages/astx/src/astx/system.py:165
Declared as: python:astx:astx.system.IsInstanceExpr
IsInstanceExpr AST class.
Represent a type-membership check against one target type.
Attributes
-
value — Stored value.; Type: astx.Expr
-
target_type — Destination type for the conversion.; Type: astx.DataType
-
type_ — Type associated with this expression.; Type: astx.Boolean
-
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 IsInstanceExpr.
-
get_struct — Return the AST structure of the isinstance expression.