2 writes to TopLevelMethod
Microsoft.CodeAnalysis.CSharp (2)
Lowering\SyntheticBoundNodeFactory.cs (2)
122
this.
TopLevelMethod
= topLevelMethodOpt;
161
TopLevelMethod
= null;
18 references to TopLevelMethod
Microsoft.CodeAnalysis.CSharp (18)
Lowering\Instrumentation\DebugInfoInjector.cs (1)
214
rewriter.Factory.
TopLevelMethod
is SynthesizedSimpleProgramEntryPointSymbol ||
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (5)
298
Debug.Assert(_factory.
TopLevelMethod
is not null);
331
new[] { _factory.MethodDefIndex(_factory.
TopLevelMethod
) }),
334
new[] { _factory.MethodDefIndex(_factory.
TopLevelMethod
), _factory.MethodDefIndex(_factory.CurrentFunction) }),
337
new[] { _factory.MethodDefIndex(_factory.
TopLevelMethod
), _factory.StateMachineInstanceId() }),
340
new[] { _factory.MethodDefIndex(_factory.
TopLevelMethod
), _factory.MethodDefIndex(_factory.CurrentFunction), _factory.StateMachineInstanceId() }),
Lowering\LocalRewriter\DelegateCacheRewriter.cs (1)
29
Debug.Assert(factory.
TopLevelMethod
is { });
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
53
else if (hasImplicitReceiver && _factory.
TopLevelMethod
is { RequiresInstanceReceiver: false })
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (2)
578
Debug.Assert(_factory.
TopLevelMethod
is { });
582
&& _factory.
TopLevelMethod
.MethodKind != MethodKind.StaticConstructor // Avoid caching twice if people do it manually.
Lowering\LocalRewriter\LocalRewriter_HostObjectMemberReference.cs (1)
14
Debug.Assert(_factory.
TopLevelMethod
is { IsStatic: false });
Lowering\LocalRewriter\LocalRewriter_PreviousSubmissionReference.cs (1)
16
Debug.Assert(_factory.
TopLevelMethod
is { IsStatic: false });
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (4)
204
Debug.Assert(_factory.
TopLevelMethod
is { });
207
if (hasImplicitReceiver && _factory.
TopLevelMethod
.RequiresInstanceReceiver)
687
Debug.Assert(factory.
TopLevelMethod
is { });
694
var synthesizedContainer = new DynamicSiteContainer(containerName, factory.
TopLevelMethod
, factory.CurrentFunction);
Lowering\SyntheticBoundNodeFactory.cs (2)
134
Debug.Assert(
TopLevelMethod
is null || TypeSymbol.Equals(
TopLevelMethod
.ContainingType, CurrentType, TypeCompareKind.ConsiderEverything2));