1 write to _topLevelMethod
Microsoft.CodeAnalysis.CSharp (1)
Lowering\ClosureConversion\ClosureConversion.cs (1)
182
_topLevelMethod
= method;
21 references to _topLevelMethod
Microsoft.CodeAnalysis.CSharp (21)
Lowering\ClosureConversion\ClosureConversion.cs (21)
330
get { return
_topLevelMethod
.ContainingType; }
378
var containingMethod = scope.ContainingFunctionOpt?.OriginalMethodSymbol ??
_topLevelMethod
;
379
if ((object)_substitutedSourceMethod != null && containingMethod ==
_topLevelMethod
)
385
_topLevelMethod
,
435
translatedLambdaContainer =
_topLevelMethod
.ContainingType;
447
VarianceSafety.GetEnclosingVariantInterface(
_topLevelMethod
) is object)
457
translatedLambdaContainer =
_topLevelMethod
.ContainingType;
462
Debug.Assert((object)translatedLambdaContainer !=
_topLevelMethod
.ContainingType ||
463
VarianceSafety.GetEnclosingVariantInterface(
_topLevelMethod
) is null);
475
_topLevelMethod
,
513
var isNonGeneric = !
_topLevelMethod
.IsGenericMethod;
532
var containingMethod = isNonGeneric ? null : (_substitutedSourceMethod ??
_topLevelMethod
);
534
_topLevelMethod
,
671
LocalSymbol framePointer = new SynthesizedLocal(
_topLevelMethod
, TypeWithAnnotations.Create(frameType), SynthesizedLocalKind.LambdaDisplayClass, frame.ScopeSyntaxOpt);
847
return (_currentMethod ==
_topLevelMethod
||
_topLevelMethod
.ThisParameter == null ?
854
return (!_currentMethod.IsStatic && TypeSymbol.Equals(_currentMethod.ContainingType,
_topLevelMethod
.ContainingType, TypeCompareKind.ConsiderEverything2))
856
: FramePointer(node.Syntax,
_topLevelMethod
.ContainingType); // technically, not the correct static type
1119
if (_currentMethod ==
_topLevelMethod
&& node.IsConstructorInitializer())
1509
int syntaxOffset =
_topLevelMethod
.CalculateLocalSyntaxOffset(LambdaUtilities.GetDeclaratorPosition(lambdaOrLambdaBodySyntax), lambdaOrLambdaBodySyntax.SyntaxTree);
1713
var cacheField = new SynthesizedLambdaCacheFieldSymbol(translatedLambdaContainer, cacheVariableType, cacheVariableName,
_topLevelMethod
, isReadOnly: false, isStatic: closureKind == ClosureKind.Singleton);