11 references to SemicolonToken
Microsoft.CodeAnalysis.CSharp (7)
Binder\Binder_Statements.cs (2)
359if (!emptyStatement.SemicolonToken.IsMissing) 370if (emptyStatement.SemicolonToken.GetNextToken().Kind() != SyntaxKind.OpenBraceToken)
Declarations\DeclarationTreeBuilder.cs (1)
196bag.Add(ErrorCode.ERR_SimpleProgramIsEmpty, ((EmptyStatementSyntax)firstGlobalStatement.Statement).SemicolonToken.GetLocation());
Syntax.xml.Main.Generated.cs (1)
1861=> node.Update(VisitList(node.AttributeLists), VisitToken(node.SemicolonToken));
Syntax.xml.Syntax.Generated.cs (2)
6933if (attributeLists != this.AttributeLists || semicolonToken != this.SemicolonToken) 6944public new EmptyStatementSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.SemicolonToken);
Syntax\LookupPosition.cs (1)
391return ((EmptyStatementSyntax)statement).SemicolonToken;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Generated\Syntax.Test.xml.Generated.cs (2)
12508Assert.Equal(SyntaxKind.SemicolonToken, node.SemicolonToken.Kind()); 12509var newNode = node.WithAttributeLists(node.AttributeLists).WithSemicolonToken(node.SemicolonToken);
Parsing\StatementParsingTests.cs (2)
961Assert.NotEqual(default, es.SemicolonToken); 962Assert.False(es.SemicolonToken.IsMissing);