3 writes to _currentMethod
Microsoft.CodeAnalysis.CSharp (3)
Lowering\ClosureConversion\ClosureConversion.cs (3)
187_currentMethod = method; 1583_currentMethod = synthesizedMethod; 1607_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"/> 335get { return _currentMethod; } 618var lambda = _currentMethod as SynthesizedClosureMethod; 804if (_currentMethod.MethodKind == MethodKind.Constructor && 805symbol == _currentMethod.ThisParameter && 814_currentMethod is not SynthesizedPrimaryConstructor) 824Debug.Assert(_currentMethod is not SynthesizedPrimaryConstructor primaryConstructor || 825symbol != _currentMethod.ThisParameter || 857return (_currentMethod == _topLevelMethod || _topLevelMethod.ThisParameter == null ? 864return (!_currentMethod.IsStatic && TypeSymbol.Equals(_currentMethod.ContainingType, _topLevelMethod.ContainingType, TypeCompareKind.ConsiderEverything2)) 1129if (_currentMethod == _topLevelMethod && node.IsConstructorInitializer()) 1571var oldMethod = _currentMethod; 1687_currentMethod.MethodKind != MethodKind.StaticConstructor && 1699var F = new SyntheticBoundNodeFactory(_currentMethod, node.Syntax, CompilationState, Diagnostics);