public ArrayTypeSyntax(TokenSyntax arrayToken, TokenSyntax leftBracket, TypeDescriptionSyntax valueType, TokenSyntax rightBracket) { ArrayToken = arrayToken; LeftBracket = leftBracket; ValueType = valueType; RightBracket = rightBracket; }
public void GivenTokenSyntaxWithTypeNotDefault_WhenInitialize_PropertiesShouldVerify() { const string testTokenValueText = "TokenText123"; var subject = new TokenSyntax <SyntaxType>(testTokenValueText, SyntaxType.Two); subject.Token.Should().Be(testTokenValueText); subject.TokenType.Should().Be(SyntaxType.Two); }
public WhileLoopSyntax(TokenSyntax whileToken, TokenSyntax leftParenToken, ExpressionSyntax condition, TokenSyntax rightParenToken, StatementSyntax body) { WhileToken = whileToken; LeftParenToken = leftParenToken; Condition = condition; RightParenToken = rightParenToken; Body = body; }
public void GivenTokenSyntax_WhenInitialize_PropertiesVerified() { const string testTokenValueText = "TokenText"; var subject = new TokenSyntax <SyntaxType>(testTokenValueText, SyntaxType.One); subject.Token.Should().Be(testTokenValueText); subject.TokenType.Should().Be(SyntaxType.One); }
public IfStatementSyntax(TokenSyntax ifToken, TokenSyntax leftParenToken, ExpressionSyntax condition, TokenSyntax rightParenToken, StatementSyntax trueBranch, TokenSyntax elseToken, StatementSyntax falseBranch) { IfToken = ifToken; LeftParenToken = leftParenToken; Condition = condition; RightParenToken = rightParenToken; TrueBranch = trueBranch; ElseToken = elseToken; FalseBranch = falseBranch; if (ElseToken == null && FalseBranch == null) { Span = new TextSpan(IfToken.Span.Start, TrueBranch.Span.End); } else { Span = new TextSpan(IfToken.Span.Start, FalseBranch.Span.End); } }
public ForLoopSyntax( TokenSyntax forToken, TokenSyntax leftParenToken, StatementSyntax assignment, TokenSyntax comma1, ExpressionSyntax condition, TokenSyntax comma2, ExpressionSyntax step, TokenSyntax rightParenToken, StatementSyntax body ) { ForToken = forToken; LeftParenToken = leftParenToken; Assignment = assignment; Comma1 = comma1; Condition = condition; Comma2 = comma2; Step = step; RightParenToken = rightParenToken; Body = body; }
public TypeDefinitionSyntax(TokenSyntax delimeterToken, SyntaxNode nameToken) { DelimeterToken = delimeterToken; TypeDescription = nameToken; }
public FunctionTypeSyntax(TupleTypeSyntax parameterSyntax, TokenSyntax delimeterToken, TypeDescriptionSyntax returnSyntax) { ParameterSyntax = parameterSyntax; DelimeterToken = delimeterToken; ReturnSyntax = returnSyntax; }
public VariableDeclarationSyntax(TokenSyntax keywordToken, TypedIdentifierSyntax identifier, AssignmentExpressionSyntax initialiser) { KeywordToken = keywordToken; Identifier = identifier; Initialiser = initialiser; }
public ValueTypeSyntax(TokenSyntax typeName) { TypeName = typeName; }
public ContinueSyntax(TokenSyntax continueToken) { ContinueToken = continueToken; }
public BlockSyntax(TokenSyntax leftBrace, ImmutableArray <StatementSyntax> statements, TokenSyntax rightBrace) { LeftBrace = leftBrace; Statements = statements; RightBrace = rightBrace; }
public ReturnSyntax(TokenSyntax returnToken, ExpressionSyntax expression) { ReturnToken = returnToken; Expression = expression; }
public TupleTypeSyntax(TokenSyntax leftParen, SeperatedSyntaxList <SyntaxNode> types, TokenSyntax rightParen) { LeftParen = leftParen; Types = types; RightParen = rightParen; }
public TypedIdentifierSyntax(TokenSyntax identifier, TypeDefinitionSyntax definition) { IdentifierName = identifier; Definition = definition; }
public BreakSyntax(TokenSyntax breakToken) { BreakToken = breakToken; }