1 instantiation of SynthesizedSimpleProgramEntryPointSymbol
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourceMemberContainerSymbol.cs (1)
3661
builder.Add(new
SynthesizedSimpleProgramEntryPointSymbol
(this, singleDecl, diagnostics));
118 references to SynthesizedSimpleProgramEntryPointSymbol
Microsoft.CodeAnalysis.CSharp (48)
Binder\Binder_Await.cs (1)
113
|| !(containingMethod.IsAsync || containingMethod is
SynthesizedSimpleProgramEntryPointSymbol
))
Binder\Binder_Expressions.cs (2)
2300
if (symbol.ContainingSymbol is
SynthesizedSimpleProgramEntryPointSymbol
&&
2301
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)
1907
var
simpleProgramEntryPointSymbol =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(this);
2006
if (main is not
SynthesizedSimpleProgramEntryPointSymbol
)
2609
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();
2474
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)
1489
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)
196
if (method is
SynthesizedSimpleProgramEntryPointSymbol
synthesized)
Symbols\Source\LocalFunctionSymbol.cs (1)
141
ContainingSymbol is
SynthesizedSimpleProgramEntryPointSymbol
&&
Symbols\Source\SourceMemberContainerSymbol.cs (11)
198
private ImmutableArray<
SynthesizedSimpleProgramEntryPointSymbol
> _lazySimpleProgramEntryPoints;
1768
if (member is
SynthesizedSimpleProgramEntryPointSymbol
)
2204
case (
SynthesizedSimpleProgramEntryPointSymbol
{ },
SynthesizedSimpleProgramEntryPointSymbol
{ }):
3619
internal ImmutableArray<
SynthesizedSimpleProgramEntryPointSymbol
> GetSimpleProgramEntryPoints()
3638
ImmutableArray<
SynthesizedSimpleProgramEntryPointSymbol
> buildSimpleProgramEntryPoint(BindingDiagnosticBag diagnostics)
3643
return ImmutableArray<
SynthesizedSimpleProgramEntryPointSymbol
>.Empty;
3646
ArrayBuilder<
SynthesizedSimpleProgramEntryPointSymbol
>? builder = null;
3654
builder = ArrayBuilder<
SynthesizedSimpleProgramEntryPointSymbol
>.GetInstance();
3667
return ImmutableArray<
SynthesizedSimpleProgramEntryPointSymbol
>.Empty;
4737
foreach (
var
member in simpleProgramEntryPoints)
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
58
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 (70)
Semantics\BindingAsyncTests.cs (6)
4029
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
4095
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
4151
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
Semantics\TopLevelStatementsTests.cs (64)
35
var methods = type.GetMembers().OfType<
SynthesizedSimpleProgramEntryPointSymbol
>();
45
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
57
private static void AssertEntryPointParameter(
SynthesizedSimpleProgramEntryPointSymbol
entryPoint)
79
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
1088
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
7581
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
7603
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
7641
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
7668
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
7698
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
7715
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
7762
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
7809
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
7878
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
7988
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
8011
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
8030
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
8049
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
8069
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
8087
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
8109
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
8129
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
8148
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
8166
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
8186
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
8709
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
9183
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
9238
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
9281
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
9311
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
9333
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
9362
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
9457
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);