3 writes to _currentMethod
Microsoft.CodeAnalysis.CSharp (3)
Lowering\ClosureConversion\ClosureConversion.cs (3)
187_currentMethod = method; 1572_currentMethod = synthesizedMethod; 1596_currentMethod = oldMethod;
15 references to _currentMethod
Microsoft.CodeAnalysis.CSharp (15)
Lowering\ClosureConversion\ClosureConversion.cs (15)
45/// (2) The current method being processed (this changes within a lambda's body), in <see cref="_currentMethod"/> 325get { return _currentMethod; } 608var lambda = _currentMethod as SynthesizedClosureMethod; 794if (_currentMethod.MethodKind == MethodKind.Constructor && 795symbol == _currentMethod.ThisParameter && 804_currentMethod is not SynthesizedPrimaryConstructor) 814Debug.Assert(_currentMethod is not SynthesizedPrimaryConstructor primaryConstructor || 815symbol != _currentMethod.ThisParameter || 847return (_currentMethod == _topLevelMethod || _topLevelMethod.ThisParameter == null ? 854return (!_currentMethod.IsStatic && TypeSymbol.Equals(_currentMethod.ContainingType, _topLevelMethod.ContainingType, TypeCompareKind.ConsiderEverything2)) 1119if (_currentMethod == _topLevelMethod && node.IsConstructorInitializer()) 1560var oldMethod = _currentMethod; 1676_currentMethod.MethodKind != MethodKind.StaticConstructor && 1688var F = new SyntheticBoundNodeFactory(_currentMethod, node.Syntax, CompilationState, Diagnostics);