1 instantiation of SynthesizedSimpleProgramEntryPointSymbol
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourceMemberContainerSymbol.cs (1)
3660builder.Add(new SynthesizedSimpleProgramEntryPointSymbol(this, singleDecl, diagnostics));
117 references to SynthesizedSimpleProgramEntryPointSymbol
Microsoft.CodeAnalysis.CSharp (47)
Binder\Binder_Await.cs (1)
112|| !(containingMethod.IsAsync || containingMethod is SynthesizedSimpleProgramEntryPointSymbol))
Binder\Binder_Expressions.cs (2)
2277if (symbol.ContainingSymbol is SynthesizedSimpleProgramEntryPointSymbol && 2278ContainingMember() is not SynthesizedSimpleProgramEntryPointSymbol)
Binder\BinderFactory.BinderFactoryVisitor.cs (4)
119SynthesizedSimpleProgramEntryPointSymbol simpleProgram = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(compilation, (CompilationUnitSyntax)node.Parent, fallbackToMainEntryPoint: false); 1020SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(compilation, compilationUnit, fallbackToMainEntryPoint: true) is SynthesizedSimpleProgramEntryPointSymbol simpleProgram)
Binder\ExecutableCodeBinder.cs (2)
68if (_memberSymbol is SynthesizedSimpleProgramEntryPointSymbol entryPoint && _root == entryPoint.SyntaxNode) 127Location errorLocation = (iterator as SynthesizedSimpleProgramEntryPointSymbol)?.ReturnTypeSyntax.GetLocation() ?? iterator.GetFirstLocation();
Binder\SimpleProgramBinder.cs (2)
18private readonly SynthesizedSimpleProgramEntryPointSymbol _entryPoint; 20public SimpleProgramBinder(Binder enclosing, SynthesizedSimpleProgramEntryPointSymbol entryPoint)
Compilation\CSharpCompilation.cs (4)
1907var simpleProgramEntryPointSymbol = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(this); 2006if (main is not SynthesizedSimpleProgramEntryPointSymbol) 2609if (ignoreAccessibility && SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(this) is object)
Compilation\MethodBodySemanticModel.cs (1)
55Debug.Assert((syntax.Kind() == SyntaxKind.CompilationUnit) == (!IsSpeculativeSemanticModel && owner is SynthesizedSimpleProgramEntryPointSymbol));
Compilation\SyntaxTreeSemanticModel.cs (5)
946if (SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(Compilation, (CompilationUnitSyntax)memberDecl, fallbackToMainEntryPoint: false) is object) 1077return createMethodBodySemanticModel(node, SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(Compilation, (CompilationUnitSyntax)node, fallbackToMainEntryPoint: false)); 1497return SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(Compilation, declarationSyntax, fallbackToMainEntryPoint: false).GetPublicSymbol(); 2462case CompilationUnitSyntax unit when SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(Compilation, unit, fallbackToMainEntryPoint: false) is SynthesizedSimpleProgramEntryPointSymbol entryPoint:
Compiler\DocumentationCommentCompiler.cs (1)
466symbol is SynthesizedSimpleProgramEntryPointSymbol;
FlowAnalysis\NullableWalker.cs (1)
1472var binder = method is SynthesizedSimpleProgramEntryPointSymbol entryPoint ?
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (1)
129if (!method.IsImplicitlyDeclared && method is not SynthesizedSimpleProgramEntryPointSymbol)
Lowering\Instrumentation\DebugInfoInjector.cs (1)
214rewriter.Factory.TopLevelMethod is SynthesizedSimpleProgramEntryPointSymbol ||
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (1)
170if (method is SourceMemberMethodSymbol { Bodies: { arrowBody: null, blockBody: null } } and not SynthesizedSimpleProgramEntryPointSymbol)
Lowering\Instrumentation\ModuleCancellationInstrumenter.cs (1)
52method is SourceMemberMethodSymbol { Bodies: { arrowBody: null, blockBody: null } } and not SynthesizedSimpleProgramEntryPointSymbol))
Lowering\Instrumentation\StackOverflowProbingInstrumenter.cs (1)
42method is SourceMemberMethodSymbol { Bodies: { arrowBody: null, blockBody: null } } and not SynthesizedSimpleProgramEntryPointSymbol))
SymbolDisplay\SymbolDisplay.cs (1)
274if ((symbol as Symbols.PublicModel.MethodSymbol)?.UnderlyingMethodSymbol is SynthesizedSimpleProgramEntryPointSymbol)
Symbols\MethodSymbolExtensions.cs (1)
196if (method is SynthesizedSimpleProgramEntryPointSymbol synthesized)
Symbols\Source\LocalFunctionSymbol.cs (1)
141ContainingSymbol is SynthesizedSimpleProgramEntryPointSymbol &&
Symbols\Source\SourceMemberContainerSymbol.cs (11)
198private ImmutableArray<SynthesizedSimpleProgramEntryPointSymbol> _lazySimpleProgramEntryPoints; 1768if (member is SynthesizedSimpleProgramEntryPointSymbol) 2203case (SynthesizedSimpleProgramEntryPointSymbol { }, SynthesizedSimpleProgramEntryPointSymbol { }): 3618internal ImmutableArray<SynthesizedSimpleProgramEntryPointSymbol> GetSimpleProgramEntryPoints() 3637ImmutableArray<SynthesizedSimpleProgramEntryPointSymbol> buildSimpleProgramEntryPoint(BindingDiagnosticBag diagnostics) 3642return ImmutableArray<SynthesizedSimpleProgramEntryPointSymbol>.Empty; 3645ArrayBuilder<SynthesizedSimpleProgramEntryPointSymbol>? builder = null; 3653builder = ArrayBuilder<SynthesizedSimpleProgramEntryPointSymbol>.GetInstance(); 3666return ImmutableArray<SynthesizedSimpleProgramEntryPointSymbol>.Empty; 4736foreach (var member in simpleProgramEntryPoints)
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
58case CompilationUnitSyntax _ when this is SynthesizedSimpleProgramEntryPointSymbol entryPoint:
Symbols\Synthesized\SynthesizedSimpleProgramEntryPointSymbol.cs (4)
87internal static SynthesizedSimpleProgramEntryPointSymbol? GetSimpleProgramEntryPoint(CSharpCompilation compilation, CompilationUnitSyntax compilationUnit, bool fallbackToMainEntryPoint) 95ImmutableArray<SynthesizedSimpleProgramEntryPointSymbol> entryPoints = type.GetSimpleProgramEntryPoints(); 97foreach (var entryPoint in entryPoints) 108internal static SynthesizedSimpleProgramEntryPointSymbol? GetSimpleProgramEntryPoint(CSharpCompilation compilation)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (70)
Semantics\BindingAsyncTests.cs (6)
4073var entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp); 4139var entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp); 4195var entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp);
Semantics\TopLevelStatementsTests.cs (64)
35var methods = type.GetMembers().OfType<SynthesizedSimpleProgramEntryPointSymbol>(); 45var entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp); 57private static void AssertEntryPointParameter(SynthesizedSimpleProgramEntryPointSymbol entryPoint) 79var entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp); 1088var entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp); 7545var entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp); 7567var entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp); 7605var entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp); 7632var entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp); 7662var entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp); 7679var entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp); 7726var entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp); 7773var entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp); 7842var entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp); 7907var entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp); 7930var entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp); 7949var entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp); 7968var entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp); 7988var entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp); 8006var entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp); 8028var entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp); 8048var entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp); 8067var entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp); 8085var entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp); 8105var entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp); 8628var entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp); 9102var entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp); 9157var entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp); 9200var entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp); 9230var entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp); 9252var entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp); 9281var entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp); 9376var entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp);