Interface: MemberAccessExpressionSemantics
compiler.MemberAccessExpressionSemantics
Semantics for AST Node MemberAccessExpression.
Since
0.10.0
Hierarchy
-
↳
MemberAccessExpressionSemantics
Table of contents
Properties
Properties
accessType
• accessType: "dot"
| "bracket"
| "slice"
The type of the member access expression. Represented using strings.
Since
0.10.0
Defined in
kipper/core/src/compiler/ast/nodes/expressions/member-access-expression/member-access-expression-semantics.ts:30
objectLike
• objectLike: Expression
<ExpressionSemantics
, ExpressionTypeSemantics
, CompilableASTNode
<SemanticData
, TypeData
>>
The object or array that is accessed.
Since
0.10.0
Defined in
kipper/core/src/compiler/ast/nodes/expressions/member-access-expression/member-access-expression-semantics.ts:17
propertyIndexOrKeyOrSlice
• propertyIndexOrKeyOrSlice: string
| Expression
<ExpressionSemantics
, ExpressionTypeSemantics
, CompilableASTNode
<SemanticData
, TypeData
>> | { end?
: Expression
<ExpressionSemantics
, ExpressionTypeSemantics
, CompilableASTNode
<SemanticData
, TypeData
>> ; start?
: Expression
<ExpressionSemantics
, ExpressionTypeSemantics
, CompilableASTNode
<SemanticData
, TypeData
>> }
The member that is accessed. This can be in three different forms:
- Dot Notation: object.member
- Bracket Notation: object["member"]
- Slice Notation: object[1:3]
Since
0.10.0
Defined in
kipper/core/src/compiler/ast/nodes/expressions/member-access-expression/member-access-expression-semantics.ts:25