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)
6249if (attributeLists != this.AttributeLists || modifiers != this.Modifiers || statement != this.Statement) 6260public new GlobalStatementSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.Modifiers, this.Statement); 6262public new GlobalStatementSyntax WithModifiers(SyntaxTokenList modifiers) => Update(this.AttributeLists, modifiers, this.Statement);
Binder\Binder_Statements.cs (1)
3734var boundStatement = BindStatement(topLevelStatement.Statement, diagnostics);
Binder\LocalBinderFactory.cs (1)
527Visit(node.Statement);
Binder\ScriptLocalScopeBinder.cs (1)
88LocalScopeBinder.BuildLabels(scriptInitializer, ((GlobalStatementSyntax)member).Statement, ref builder);
Binder\SimpleProgramBinder.cs (3)
34this.BuildLocals(this, topLevelStatement.Statement, locals); 49this.BuildLocalFunctions(topLevelStatement.Statement, ref locals); 72BuildLabels(_entryPoint, topLevelStatement.Statement, ref labels);
Compilation\CSharpCompilation.cs (1)
879var statement = lastGlobalStatement.Statement;
Compilation\CSharpSemanticModel.cs (1)
2416BoundStatement bound = binder.BindStatement(globalStatement.Statement, diagnostics);
Declarations\DeclarationTreeBuilder.cs (2)
161var topLevelStatement = global.Statement; 197bag.Add(ErrorCode.ERR_SimpleProgramIsEmpty, ((EmptyStatementSyntax)firstGlobalStatement.Statement).SemicolonToken.GetLocation());
Symbols\Source\SourceMemberContainerSymbol.cs (1)
5910var 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)
43builder.Add(currentGlobalStatement.Statement);
src\roslyn\src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (1)
375previousStatement = previousGlobalStatement.Statement;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpBlockFacts.cs (1)
42CompilationUnitSyntax 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)
131var 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)
104if (!globalStatement.Statement.IsStatementContainerNode() && !root.SyntaxTree.IsScript()) 110return globalStatement.Statement; 142if (!globalStatement.Statement.IsStatementContainerNode() && !root.SyntaxTree.IsScript()) 148return globalStatement.Statement;
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.CallSiteContainerRewriter.cs (1)
349return node.WithStatement(ReplaceStatementIfNeeded(node.Statement));
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.MultipleStatementsCodeGenerator.cs (1)
75GlobalStatementSyntax globalStatement => ((CompilationUnitSyntax)globalStatement.Parent).Members.OfType<GlobalStatementSyntax>().Select(globalStatement => globalStatement.Statement),
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnreachableCode\RemoveUnreachableCodeHelpers.cs (1)
43builder.Add(currentGlobalStatement.Statement);
src\roslyn\src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (1)
375previousStatement = previousGlobalStatement.Statement;
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpBlockFacts.cs (1)
42CompilationUnitSyntax 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)
42CompilationUnitSyntax 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;