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)
340get { return _topLevelMethod.ContainingType; } 388var containingMethod = scope.ContainingFunctionOpt?.OriginalMethodSymbol ?? _topLevelMethod; 389if ((object)_substitutedSourceMethod != null && containingMethod == _topLevelMethod) 395_topLevelMethod, 445translatedLambdaContainer = _topLevelMethod.ContainingType; 457VarianceSafety.GetEnclosingVariantInterface(_topLevelMethod) is object) 467translatedLambdaContainer = _topLevelMethod.ContainingType; 472Debug.Assert((object)translatedLambdaContainer != _topLevelMethod.ContainingType || 473VarianceSafety.GetEnclosingVariantInterface(_topLevelMethod) is null); 485_topLevelMethod, 523var isNonGeneric = !_topLevelMethod.IsGenericMethod; 542var containingMethod = isNonGeneric ? null : (_substitutedSourceMethod ?? _topLevelMethod); 544_topLevelMethod, 681LocalSymbol framePointer = new SynthesizedLocal(_topLevelMethod, TypeWithAnnotations.Create(frameType), SynthesizedLocalKind.LambdaDisplayClass, frame.ScopeSyntaxOpt); 857return (_currentMethod == _topLevelMethod || _topLevelMethod.ThisParameter == null ? 864return (!_currentMethod.IsStatic && TypeSymbol.Equals(_currentMethod.ContainingType, _topLevelMethod.ContainingType, TypeCompareKind.ConsiderEverything2)) 866: FramePointer(node.Syntax, _topLevelMethod.ContainingType); // technically, not the correct static type 1129if (_currentMethod == _topLevelMethod && node.IsConstructorInitializer()) 1520int syntaxOffset = _topLevelMethod.CalculateLocalSyntaxOffset(LambdaUtilities.GetDeclaratorPosition(lambdaOrLambdaBodySyntax), lambdaOrLambdaBodySyntax.SyntaxTree); 1724var cacheField = new SynthesizedLambdaCacheFieldSymbol(translatedLambdaContainer, cacheVariableType, cacheVariableName, _topLevelMethod, isReadOnly: false, isStatic: closureKind == ClosureKind.Singleton);