1 write to _topLevelMethod
Microsoft.CodeAnalysis.CSharp (1)
Lowering\ClosureConversion\ClosureConversion.cs (1)
174_topLevelMethod = method;
21 references to _topLevelMethod
Microsoft.CodeAnalysis.CSharp (21)
Lowering\ClosureConversion\ClosureConversion.cs (21)
320get { return _topLevelMethod.ContainingType; } 368var containingMethod = scope.ContainingFunctionOpt?.OriginalMethodSymbol ?? _topLevelMethod; 369if ((object)_substitutedSourceMethod != null && containingMethod == _topLevelMethod) 375_topLevelMethod, 424translatedLambdaContainer = _topLevelMethod.ContainingType; 436VarianceSafety.GetEnclosingVariantInterface(_topLevelMethod) is object) 445translatedLambdaContainer = _topLevelMethod.ContainingType; 451Debug.Assert((object)translatedLambdaContainer != _topLevelMethod.ContainingType || 452VarianceSafety.GetEnclosingVariantInterface(_topLevelMethod) is null); 462_topLevelMethod, 500var isNonGeneric = !_topLevelMethod.IsGenericMethod; 520var containingMethod = isNonGeneric ? null : (_substitutedSourceMethod ?? _topLevelMethod); 522_topLevelMethod, 655LocalSymbol framePointer = new SynthesizedLocal(_topLevelMethod, TypeWithAnnotations.Create(frameType), SynthesizedLocalKind.LambdaDisplayClass, frame.ScopeSyntaxOpt); 827return (_currentMethod == _topLevelMethod || _topLevelMethod.ThisParameter == null ? 834return (!_currentMethod.IsStatic && TypeSymbol.Equals(_currentMethod.ContainingType, _topLevelMethod.ContainingType, TypeCompareKind.ConsiderEverything2)) 836: FramePointer(node.Syntax, _topLevelMethod.ContainingType); // technically, not the correct static type 1098if (_currentMethod == _topLevelMethod && node.IsConstructorInitializer()) 1478int syntaxOffset = _topLevelMethod.CalculateLocalSyntaxOffset(LambdaUtilities.GetDeclaratorPosition(lambdaOrLambdaBodySyntax), lambdaOrLambdaBodySyntax.SyntaxTree); 1682var cacheField = new SynthesizedLambdaCacheFieldSymbol(translatedLambdaContainer, cacheVariableType, cacheVariableName, _topLevelMethod, isReadOnly: false, isStatic: closureKind == ClosureKind.Singleton);