1 write to _topLevelMethod
Microsoft.CodeAnalysis.CSharp (1)
Lowering\ClosureConversion\ClosureConversion.cs (1)
177_topLevelMethod = method;
21 references to _topLevelMethod
Microsoft.CodeAnalysis.CSharp (21)
Lowering\ClosureConversion\ClosureConversion.cs (21)
325get { return _topLevelMethod.ContainingType; } 373var containingMethod = scope.ContainingFunctionOpt?.OriginalMethodSymbol ?? _topLevelMethod; 374if ((object)_substitutedSourceMethod != null && containingMethod == _topLevelMethod) 380_topLevelMethod, 430translatedLambdaContainer = _topLevelMethod.ContainingType; 442VarianceSafety.GetEnclosingVariantInterface(_topLevelMethod) is object) 452translatedLambdaContainer = _topLevelMethod.ContainingType; 457Debug.Assert((object)translatedLambdaContainer != _topLevelMethod.ContainingType || 458VarianceSafety.GetEnclosingVariantInterface(_topLevelMethod) is null); 470_topLevelMethod, 508var isNonGeneric = !_topLevelMethod.IsGenericMethod; 527var containingMethod = isNonGeneric ? null : (_substitutedSourceMethod ?? _topLevelMethod); 529_topLevelMethod, 666LocalSymbol framePointer = new SynthesizedLocal(_topLevelMethod, TypeWithAnnotations.Create(frameType), SynthesizedLocalKind.LambdaDisplayClass, frame.ScopeSyntaxOpt); 842return (_currentMethod == _topLevelMethod || _topLevelMethod.ThisParameter == null ? 849return (!_currentMethod.IsStatic && TypeSymbol.Equals(_currentMethod.ContainingType, _topLevelMethod.ContainingType, TypeCompareKind.ConsiderEverything2)) 851: FramePointer(node.Syntax, _topLevelMethod.ContainingType); // technically, not the correct static type 1114if (_currentMethod == _topLevelMethod && node.IsConstructorInitializer()) 1506int syntaxOffset = _topLevelMethod.CalculateLocalSyntaxOffset(LambdaUtilities.GetDeclaratorPosition(lambdaOrLambdaBodySyntax), lambdaOrLambdaBodySyntax.SyntaxTree); 1710var cacheField = new SynthesizedLambdaCacheFieldSymbol(translatedLambdaContainer, cacheVariableType, cacheVariableName, _topLevelMethod, isReadOnly: false, isStatic: closureKind == ClosureKind.Singleton);