1 instantiation of SynthesizedSimpleProgramEntryPointSymbol
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourceMemberContainerSymbol.cs (1)
3712
builder.Add(new
SynthesizedSimpleProgramEntryPointSymbol
(this, singleDecl, diagnostics));
49 references to SynthesizedSimpleProgramEntryPointSymbol
Microsoft.CodeAnalysis.CSharp (49)
Binder\Binder_Await.cs (1)
113
|| !(containingMethod.IsAsync || containingMethod is
SynthesizedSimpleProgramEntryPointSymbol
))
Binder\Binder_Expressions.cs (2)
2351
if (symbol.ContainingSymbol is
SynthesizedSimpleProgramEntryPointSymbol
&&
2352
ContainingMember() is not
SynthesizedSimpleProgramEntryPointSymbol
)
Binder\BinderFactory.BinderFactoryVisitor.cs (4)
119
SynthesizedSimpleProgramEntryPointSymbol
simpleProgram =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(compilation, (CompilationUnitSyntax)node.Parent, fallbackToMainEntryPoint: false);
1020
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(compilation, compilationUnit, fallbackToMainEntryPoint: true) is
SynthesizedSimpleProgramEntryPointSymbol
simpleProgram)
Binder\ExecutableCodeBinder.cs (2)
68
if (_memberSymbol is
SynthesizedSimpleProgramEntryPointSymbol
entryPoint && _root == entryPoint.SyntaxNode)
127
Location errorLocation = (iterator as
SynthesizedSimpleProgramEntryPointSymbol
)?.ReturnTypeSyntax.GetLocation() ?? iterator.GetFirstLocation();
Binder\SimpleProgramBinder.cs (2)
18
private readonly
SynthesizedSimpleProgramEntryPointSymbol
_entryPoint;
20
public SimpleProgramBinder(Binder enclosing,
SynthesizedSimpleProgramEntryPointSymbol
entryPoint)
Compilation\CSharpCompilation.cs (4)
1954
var
simpleProgramEntryPointSymbol =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(this);
2053
if (main is not
SynthesizedSimpleProgramEntryPointSymbol
)
2656
if (ignoreAccessibility &&
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(this) is object)
Compilation\MethodBodySemanticModel.cs (1)
55
Debug.Assert((syntax.Kind() == SyntaxKind.CompilationUnit) == (!IsSpeculativeSemanticModel && owner is
SynthesizedSimpleProgramEntryPointSymbol
));
Compilation\SyntaxTreeSemanticModel.cs (5)
946
if (
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(Compilation, (CompilationUnitSyntax)memberDecl, fallbackToMainEntryPoint: false) is object)
1077
return createMethodBodySemanticModel(node,
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(Compilation, (CompilationUnitSyntax)node, fallbackToMainEntryPoint: false));
1497
return
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(Compilation, declarationSyntax, fallbackToMainEntryPoint: false).GetPublicSymbol();
2475
case CompilationUnitSyntax unit when
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(Compilation, unit, fallbackToMainEntryPoint: false) is
SynthesizedSimpleProgramEntryPointSymbol
entryPoint:
Compiler\DocumentationCommentCompiler.cs (1)
466
symbol is
SynthesizedSimpleProgramEntryPointSymbol
;
FlowAnalysis\FlowAnalysisPass.cs (1)
103
var location = method is
SynthesizedSimpleProgramEntryPointSymbol
entryPoint
FlowAnalysis\NullableWalker.cs (1)
1508
var binder = method is
SynthesizedSimpleProgramEntryPointSymbol
entryPoint ?
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (1)
129
if (!method.IsImplicitlyDeclared && method is not
SynthesizedSimpleProgramEntryPointSymbol
)
Lowering\Instrumentation\DebugInfoInjector.cs (1)
214
rewriter.Factory.TopLevelMethod is
SynthesizedSimpleProgramEntryPointSymbol
||
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (1)
170
if (method is SourceMemberMethodSymbol { Bodies: { arrowBody: null, blockBody: null } } and not
SynthesizedSimpleProgramEntryPointSymbol
)
Lowering\Instrumentation\ModuleCancellationInstrumenter.cs (1)
52
method is SourceMemberMethodSymbol { Bodies: { arrowBody: null, blockBody: null } } and not
SynthesizedSimpleProgramEntryPointSymbol
))
Lowering\Instrumentation\StackOverflowProbingInstrumenter.cs (1)
42
method is SourceMemberMethodSymbol { Bodies: { arrowBody: null, blockBody: null } } and not
SynthesizedSimpleProgramEntryPointSymbol
))
SymbolDisplay\SymbolDisplay.cs (1)
275
if (underlyingMethod is
SynthesizedSimpleProgramEntryPointSymbol
)
Symbols\MethodSymbolExtensions.cs (1)
196
if (method is
SynthesizedSimpleProgramEntryPointSymbol
synthesized)
Symbols\Source\LocalFunctionSymbol.cs (1)
149
ContainingSymbol is
SynthesizedSimpleProgramEntryPointSymbol
&&
Symbols\Source\SourceMemberContainerSymbol.cs (11)
198
private ImmutableArray<
SynthesizedSimpleProgramEntryPointSymbol
> _lazySimpleProgramEntryPoints;
1784
if (member is
SynthesizedSimpleProgramEntryPointSymbol
)
2240
case (
SynthesizedSimpleProgramEntryPointSymbol
{ },
SynthesizedSimpleProgramEntryPointSymbol
{ }):
3670
internal ImmutableArray<
SynthesizedSimpleProgramEntryPointSymbol
> GetSimpleProgramEntryPoints()
3689
ImmutableArray<
SynthesizedSimpleProgramEntryPointSymbol
> buildSimpleProgramEntryPoint(BindingDiagnosticBag diagnostics)
3694
return ImmutableArray<
SynthesizedSimpleProgramEntryPointSymbol
>.Empty;
3697
ArrayBuilder<
SynthesizedSimpleProgramEntryPointSymbol
>? builder = null;
3705
builder = ArrayBuilder<
SynthesizedSimpleProgramEntryPointSymbol
>.GetInstance();
3718
return ImmutableArray<
SynthesizedSimpleProgramEntryPointSymbol
>.Empty;
4807
foreach (
var
member in simpleProgramEntryPoints)
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
58
case CompilationUnitSyntax _ when this is
SynthesizedSimpleProgramEntryPointSymbol
entryPoint:
Symbols\Synthesized\SynthesizedSimpleProgramEntryPointSymbol.cs (5)
87
internal static
SynthesizedSimpleProgramEntryPointSymbol
? GetSimpleProgramEntryPoint(CSharpCompilation compilation, CompilationUnitSyntax compilationUnit, bool fallbackToMainEntryPoint)
95
ImmutableArray<
SynthesizedSimpleProgramEntryPointSymbol
> entryPoints = type.GetSimpleProgramEntryPoints();
97
foreach (
var
entryPoint in entryPoints)
108
internal static
SynthesizedSimpleProgramEntryPointSymbol
? GetSimpleProgramEntryPoint(CSharpCompilation compilation)
157
Debug.Assert(!HasUnsafeModifier, $"Revisit {nameof(CanBeCallerUnsafe)} implementation if {nameof(
SynthesizedSimpleProgramEntryPointSymbol
)} can be marked 'unsafe'.");