Interface: NewInstantiationExpressionTypeSemantics
compiler.NewInstantiationExpressionTypeSemantics
Type semantics for AST Node NewInstantiationExpressionTypeSemantics.
Since
0.12.0
Hierarchy
-
↳
NewInstantiationExpressionTypeSemantics
Table of contents
Properties
Properties
constructor
• constructor: undefined | ClassConstructorDeclaration
The constructor that is being invoked by this instantiation.
Since
0.13.0
Defined in
kipper/core/src/compiler/ast/nodes/expressions/new-instantiation-expression/new-instantiation-expression-type-semantics.ts:17
evaluatedType
• evaluatedType: ProcessedType
The value type that this expression evaluates to. This is used to properly represent the evaluated type of expressions that do not explicitly show their type.
To avoid confusion with the commonly used storedType, please note that
this property usually evaluates to simply type in cases where both properties are present, as it is the type that
is evaluated by the expression but not the actual type that is stored.
Accordingly:
1 + 1would have anevaluatedTypeofnumberbut nostoredType, as it is not a meta type reference.numwould have anevaluatedTypeoftypeand astoredTypeofnumber, as it is a meta type reference.
Since
0.10.0
Inherited from
ExpressionTypeSemantics.evaluatedType
Defined in
kipper/core/src/compiler/ast/nodes/expressions/expression-type-semantics.ts:26