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