Represents kind of a node in the typed AST.
Values
TField(e:TypedExpr, fa:FieldAccess)
Field access on e
according to fa
.
TTypeExpr(m:ModuleType)
Reference to a module type m
.
TParenthesis(e:TypedExpr)
Parentheses (e)
.
TObjectDecl(fields:Array<{name:String, expr:TypedExpr}>)
An object declaration.
TArrayDecl(el:Array<TypedExpr>)
An array declaration [el]
.
TNew(c:Ref<ClassType>, params:Array<Type>, el:Array<TypedExpr>)
A constructor call new c<params>(el)
.
TUnop(op:Unop, postFix:Bool, e:TypedExpr)
An unary operator op
on e
:
e++ (op = OpIncrement, postFix = true) e-- (op = OpDecrement, postFix = true) ++e (op = OpIncrement, postFix = false) --e (op = OpDecrement, postFix = false) -e (op = OpNeg, postFix = false) !e (op = OpNot, postFix = false) ~e (op = OpNegBits, postFix = false)
TIf(econd:TypedExpr, eif:TypedExpr, eelse:Null<TypedExpr>)
An if(econd) eif
or if(econd) eif else eelse
expression.
TSwitch(e:TypedExpr, cases:Array<{values:Array<TypedExpr>, expr:TypedExpr}>, edef:Null<TypedExpr>)
Represents a switch
expression with related cases and an optional
default
case if edef != null.
TTry(e:TypedExpr, catches:Array<{v:TVar, expr:TypedExpr}>)
Represents a try
-expression with related catches.
TBreak
A break
expression.
TContinue
A continue
expression.
TCast(e:TypedExpr, m:Null<ModuleType>)
A cast e
or cast (e, m)
expression.
TMeta(m:MetadataEntry, e1:TypedExpr)
A @m e1
expression.
TEnumParameter(e1:TypedExpr, ef:EnumField, index:Int)
Access to an enum parameter (generated by the pattern matcher).
TEnumIndex(e1:TypedExpr)
Access to an enum index (generated by the pattern matcher).