1 instantiation of SynthesizedSimpleProgramEntryPointSymbol
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourceMemberContainerSymbol.cs (1)
3318
builder.Add(new
SynthesizedSimpleProgramEntryPointSymbol
(this, singleDecl, diagnostics));
81 references to SynthesizedSimpleProgramEntryPointSymbol
Microsoft.CodeAnalysis.CSharp (47)
Binder\Binder_Await.cs (1)
109
|| !(containingMethod.IsAsync || containingMethod is
SynthesizedSimpleProgramEntryPointSymbol
))
Binder\Binder_Expressions.cs (2)
2227
if (symbol.ContainingSymbol is
SynthesizedSimpleProgramEntryPointSymbol
&&
2228
ContainingMember() is not
SynthesizedSimpleProgramEntryPointSymbol
)
Binder\BinderFactory.BinderFactoryVisitor.cs (4)
119
SynthesizedSimpleProgramEntryPointSymbol
simpleProgram =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(compilation, (CompilationUnitSyntax)node.Parent, fallbackToMainEntryPoint: false);
1021
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(compilation, compilationUnit, fallbackToMainEntryPoint: true) is
SynthesizedSimpleProgramEntryPointSymbol
simpleProgram)
Binder\ExecutableCodeBinder.cs (2)
68
if (_memberSymbol is
SynthesizedSimpleProgramEntryPointSymbol
entryPoint && _root == entryPoint.SyntaxNode)
122
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)
1866
var
simpleProgramEntryPointSymbol =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(this);
1967
if (main is not
SynthesizedSimpleProgramEntryPointSymbol
)
2528
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));
1470
return
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(Compilation, declarationSyntax, fallbackToMainEntryPoint: false).GetPublicSymbol();
2409
case CompilationUnitSyntax unit when
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(Compilation, unit, fallbackToMainEntryPoint: false) is
SynthesizedSimpleProgramEntryPointSymbol
entryPoint:
Compiler\DocumentationCommentCompiler.cs (1)
414
symbol is
SynthesizedSimpleProgramEntryPointSymbol
;
FlowAnalysis\NullableWalker.cs (1)
1379
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)
274
if ((symbol as Symbols.PublicModel.MethodSymbol)?.UnderlyingMethodSymbol is
SynthesizedSimpleProgramEntryPointSymbol
)
Symbols\MethodSymbolExtensions.cs (1)
194
if (method is
SynthesizedSimpleProgramEntryPointSymbol
synthesized)
Symbols\Source\LocalFunctionSymbol.cs (1)
140
ContainingSymbol is
SynthesizedSimpleProgramEntryPointSymbol
&&
Symbols\Source\SourceMemberContainerSymbol.cs (11)
199
private ImmutableArray<
SynthesizedSimpleProgramEntryPointSymbol
> _lazySimpleProgramEntryPoints;
1708
if (member is
SynthesizedSimpleProgramEntryPointSymbol
)
2137
case (
SynthesizedSimpleProgramEntryPointSymbol
{ },
SynthesizedSimpleProgramEntryPointSymbol
{ }):
3276
internal ImmutableArray<
SynthesizedSimpleProgramEntryPointSymbol
> GetSimpleProgramEntryPoints()
3295
ImmutableArray<
SynthesizedSimpleProgramEntryPointSymbol
> buildSimpleProgramEntryPoint(BindingDiagnosticBag diagnostics)
3300
return ImmutableArray<
SynthesizedSimpleProgramEntryPointSymbol
>.Empty;
3303
ArrayBuilder<
SynthesizedSimpleProgramEntryPointSymbol
>? builder = null;
3311
builder = ArrayBuilder<
SynthesizedSimpleProgramEntryPointSymbol
>.GetInstance();
3324
return ImmutableArray<
SynthesizedSimpleProgramEntryPointSymbol
>.Empty;
4153
foreach (
var
member in simpleProgramEntryPoints)
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
59
case CompilationUnitSyntax _ when this is
SynthesizedSimpleProgramEntryPointSymbol
entryPoint:
Symbols\Synthesized\SynthesizedSimpleProgramEntryPointSymbol.cs (4)
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)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (34)
Semantics\BindingAsyncTests.cs (3)
4073
var
entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp);
4139
var
entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp);
4195
var
entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp);
Semantics\TopLevelStatementsTests.cs (31)
44
var
entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp);
78
var
entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp);
1087
var
entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp);
7490
var
entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp);
7512
var
entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp);
7550
var
entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp);
7577
var
entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp);
7607
var
entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp);
7624
var
entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp);
7671
var
entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp);
7718
var
entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp);
7787
var
entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp);
7852
var
entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp);
7875
var
entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp);
7894
var
entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp);
7913
var
entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp);
7933
var
entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp);
7951
var
entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp);
7973
var
entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp);
7993
var
entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp);
8012
var
entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp);
8030
var
entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp);
8050
var
entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp);
8573
var
entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp);
9047
var
entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp);
9102
var
entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp);
9145
var
entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp);
9175
var
entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp);
9197
var
entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp);
9226
var
entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp);
9321
var
entryPoint = SynthesizedSimpleProgramEntryPointSymbol.GetSimpleProgramEntryPoint(comp);