1 instantiation of SynthesizedSimpleProgramEntryPointSymbol
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourceMemberContainerSymbol.cs (1)
3660
builder.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)
2277
if (symbol.ContainingSymbol is
SynthesizedSimpleProgramEntryPointSymbol
&&
2278
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();
2462
case CompilationUnitSyntax unit when
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(Compilation, unit, fallbackToMainEntryPoint: false) is
SynthesizedSimpleProgramEntryPointSymbol
entryPoint:
Compiler\DocumentationCommentCompiler.cs (1)
466
symbol is
SynthesizedSimpleProgramEntryPointSymbol
;
FlowAnalysis\NullableWalker.cs (1)
1472
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
)
2203
case (
SynthesizedSimpleProgramEntryPointSymbol
{ },
SynthesizedSimpleProgramEntryPointSymbol
{ }):
3618
internal ImmutableArray<
SynthesizedSimpleProgramEntryPointSymbol
> GetSimpleProgramEntryPoints()
3637
ImmutableArray<
SynthesizedSimpleProgramEntryPointSymbol
> buildSimpleProgramEntryPoint(BindingDiagnosticBag diagnostics)
3642
return ImmutableArray<
SynthesizedSimpleProgramEntryPointSymbol
>.Empty;
3645
ArrayBuilder<
SynthesizedSimpleProgramEntryPointSymbol
>? builder = null;
3653
builder = ArrayBuilder<
SynthesizedSimpleProgramEntryPointSymbol
>.GetInstance();
3666
return ImmutableArray<
SynthesizedSimpleProgramEntryPointSymbol
>.Empty;
4736
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)
4073
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
4139
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
4195
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);
7545
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
7567
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
7605
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
7632
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
7662
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
7679
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
7726
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
7773
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
7842
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
7907
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
7930
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
7949
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
7968
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
7988
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
8006
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
8028
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
8048
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
8067
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
8085
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
8105
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
8628
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
9102
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
9157
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
9200
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
9230
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
9252
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
9281
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);
9376
var
entryPoint =
SynthesizedSimpleProgramEntryPointSymbol
.GetSimpleProgramEntryPoint(comp);