35 references to Statement
Microsoft.CodeAnalysis.CSharp (16)
_generated\0\Syntax.xml.Main.Generated.cs (1)
1840
=> node.Update(VisitList(node.AttributeLists), VisitList(node.Modifiers), (StatementSyntax?)Visit(node.
Statement
) ?? throw new ArgumentNullException("statement"));
_generated\2\Syntax.xml.Syntax.Generated.cs (3)
6249
if (attributeLists != this.AttributeLists || modifiers != this.Modifiers || statement != this.
Statement
)
6260
public new GlobalStatementSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.Modifiers, this.
Statement
);
6262
public new GlobalStatementSyntax WithModifiers(SyntaxTokenList modifiers) => Update(this.AttributeLists, modifiers, this.
Statement
);
Binder\Binder_Statements.cs (1)
3734
var boundStatement = BindStatement(topLevelStatement.
Statement
, diagnostics);
Binder\LocalBinderFactory.cs (1)
527
Visit(node.
Statement
);
Binder\ScriptLocalScopeBinder.cs (1)
88
LocalScopeBinder.BuildLabels(scriptInitializer, ((GlobalStatementSyntax)member).
Statement
, ref builder);
Binder\SimpleProgramBinder.cs (3)
34
this.BuildLocals(this, topLevelStatement.
Statement
, locals);
49
this.BuildLocalFunctions(topLevelStatement.
Statement
, ref locals);
72
BuildLabels(_entryPoint, topLevelStatement.
Statement
, ref labels);
Compilation\CSharpCompilation.cs (1)
879
var statement = lastGlobalStatement.
Statement
;
Compilation\CSharpSemanticModel.cs (1)
2416
BoundStatement bound = binder.BindStatement(globalStatement.
Statement
, diagnostics);
Declarations\DeclarationTreeBuilder.cs (2)
161
var topLevelStatement = global.
Statement
;
197
bag.Add(ErrorCode.ERR_SimpleProgramIsEmpty, ((EmptyStatementSyntax)firstGlobalStatement.
Statement
).SemicolonToken.GetLocation());
Symbols\Source\SourceMemberContainerSymbol.cs (1)
5910
var globalStatement = ((GlobalStatementSyntax)m).
Statement
;
Syntax\SyntaxFactory.cs (1)
2428
!globalStatement.
Statement
.IsKind(SyntaxKind.ExpressionStatement) ||
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnreachableCode\RemoveUnreachableCodeHelpers.cs (1)
43
builder.Add(currentGlobalStatement.
Statement
);
src\roslyn\src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (1)
375
previousStatement = previousGlobalStatement.
Statement
;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpBlockFacts.cs (1)
42
CompilationUnitSyntax compilationUnit => compilationUnit.Members.OfType<GlobalStatementSyntax>().SelectAsArray(globalStatement => globalStatement.
Statement
),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
247
=> ((GlobalStatementSyntax)node).
Statement
;
Microsoft.CodeAnalysis.CSharp.Features (11)
ConvertProgram\ConvertProgramTransform_ProgramMain.cs (1)
131
var statement = globalStatement.
Statement
.WithAdditionalAnnotations(Formatter.Annotation);
EditAndContinue\DeclarationBody\TopLevelCodeDeclarationBody.cs (2)
32
=> model.AnalyzeDataFlow(((GlobalStatementSyntax)unit.Members[0]).
Statement
, GlobalStatements.Last().
Statement
)!.CapturedInside;
ExtractMethod\CSharpMethodExtractor.cs (4)
104
if (!globalStatement.
Statement
.IsStatementContainerNode() && !root.SyntaxTree.IsScript())
110
return globalStatement.
Statement
;
142
if (!globalStatement.
Statement
.IsStatementContainerNode() && !root.SyntaxTree.IsScript())
148
return globalStatement.
Statement
;
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.CallSiteContainerRewriter.cs (1)
349
return node.WithStatement(ReplaceStatementIfNeeded(node.
Statement
));
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.MultipleStatementsCodeGenerator.cs (1)
75
GlobalStatementSyntax globalStatement => ((CompilationUnitSyntax)globalStatement.Parent).Members.OfType<GlobalStatementSyntax>().Select(globalStatement => globalStatement.
Statement
),
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnreachableCode\RemoveUnreachableCodeHelpers.cs (1)
43
builder.Add(currentGlobalStatement.
Statement
);
src\roslyn\src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (1)
375
previousStatement = previousGlobalStatement.
Statement
;
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpBlockFacts.cs (1)
42
CompilationUnitSyntax compilationUnit => compilationUnit.Members.OfType<GlobalStatementSyntax>().SelectAsArray(globalStatement => globalStatement.
Statement
),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
247
=> ((GlobalStatementSyntax)node).
Statement
;
Roslyn.Diagnostics.CSharp.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpBlockFacts.cs (1)
42
CompilationUnitSyntax compilationUnit => compilationUnit.Members.OfType<GlobalStatementSyntax>().SelectAsArray(globalStatement => globalStatement.
Statement
),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
247
=> ((GlobalStatementSyntax)node).
Statement
;