BadScript 2
Loading...
Searching...
No Matches
BadNullCheckedMemberAccessOperator.cs
Go to the documentation of this file.
5
7
12{
16 public BadNullCheckedMemberAccessOperator() : base(2, "?.") { }
17
19 public override BadExpression Parse(BadExpression left, BadSourceParser parser)
20 {
21 BadWordToken right = parser.Reader.ParseWord();
22
23 List<BadExpression>? args = parser.ParseGenericArguments();
24
25 return new BadMemberAccessExpression(left, right, left.Position.Combine(right.SourcePosition), args, true);
26 }
27}
The Parser of the Language. It turns Source Code into an Expression Tree.
BadSourceReader Reader
The Source Reader.
List< BadExpression > ParseGenericArguments()
Implements the Member Access to set or get properties from an object. LEFT.RIGHT.
Base Implementation for all Expressions used inside the Script.
BadSourcePosition Position
The source Position of the Expression.
Base class for all binary operators.
override BadExpression Parse(BadExpression left, BadSourceParser parser)
BadSourcePosition SourcePosition
The Source Position of the Token.
Definition BadToken.cs:22
Contains the Access Expressions for the BadScript2 Language.
Contains the Expressions for the BadScript2 Language.
Contains the Binary Operators for the BadScript2 Language.
Contains the Reader Tokens for the BadScript2 Language.
Contains the Source Reader for the BadScript2 Language.