19 references to EmptyStatementSyntax
Microsoft.CodeAnalysis.CSharp (8)
Binder\Binder_Statements.cs (4)
118
result = BindEmpty((
EmptyStatementSyntax
)node);
358
var
emptyStatement = (
EmptyStatementSyntax
)node;
464
private static BoundStatement BindEmpty(
EmptyStatementSyntax
node)
Declarations\DeclarationTreeBuilder.cs (1)
195
bag.Add(ErrorCode.ERR_SimpleProgramIsEmpty, ((
EmptyStatementSyntax
)firstGlobalStatement.Statement).SemicolonToken.GetLocation());
Syntax\EmptyStatementSyntax.cs (2)
11
public
EmptyStatementSyntax
Update(SyntaxToken semicolonToken)
20
public static
EmptyStatementSyntax
EmptyStatement(SyntaxToken semicolonToken)
Syntax\LookupPosition.cs (1)
391
return ((
EmptyStatementSyntax
)statement).SemicolonToken;
Microsoft.CodeAnalysis.CSharp.Features (2)
ConvertForEachToFor\CSharpConvertForEachToForCodeRefactoringProvider.cs (1)
120
if (foreachStatement.Statement is
EmptyStatementSyntax
)
ExtractMethod\CSharpSelectionValidator.Validator.cs (1)
59
EmptyStatementSyntax
or
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (7)
Generated\Syntax.Test.xml.Generated.cs (5)
10583
private static
EmptyStatementSyntax
GenerateEmptyStatement()
12362
var
node = GenerateEmptyStatement();
12366
var
newNode = node.WithAttributeLists(node.AttributeLists).WithSemicolonToken(node.SemicolonToken);
17167
var
oldNode = GenerateEmptyStatement();
17183
var
oldNode = GenerateEmptyStatement();
Parsing\StatementParsingTests.cs (2)
960
var
es = (
EmptyStatementSyntax
)statement;
Microsoft.Interop.SourceGeneration (2)
Marshalling\StatefulMarshallingStrategy.cs (1)
416
if (elementsSetup is not
EmptyStatementSyntax
)
Marshalling\StatelessMarshallingStrategy.cs (1)
690
if (elementsSetup is not
EmptyStatementSyntax
)