3 writes to _currentMethod
Microsoft.CodeAnalysis.CSharp (3)
Lowering\ClosureConversion\ClosureConversion.cs (3)
178_currentMethod = method; 1541_currentMethod = synthesizedMethod; 1565_currentMethod = oldMethod;
15 references to _currentMethod
Microsoft.CodeAnalysis.CSharp (15)
Lowering\ClosureConversion\ClosureConversion.cs (15)
44/// (2) The current method being processed (this changes within a lambda's body), in <see cref="_currentMethod"/> 315get { return _currentMethod; } 595var lambda = _currentMethod as SynthesizedClosureMethod; 774if (_currentMethod.MethodKind == MethodKind.Constructor && 775symbol == _currentMethod.ThisParameter && 784_currentMethod is not SynthesizedPrimaryConstructor) 794Debug.Assert(_currentMethod is not SynthesizedPrimaryConstructor primaryConstructor || 795symbol != _currentMethod.ThisParameter || 827return (_currentMethod == _topLevelMethod || _topLevelMethod.ThisParameter == null ? 834return (!_currentMethod.IsStatic && TypeSymbol.Equals(_currentMethod.ContainingType, _topLevelMethod.ContainingType, TypeCompareKind.ConsiderEverything2)) 1098if (_currentMethod == _topLevelMethod && node.IsConstructorInitializer()) 1529var oldMethod = _currentMethod; 1645_currentMethod.MethodKind != MethodKind.StaticConstructor && 1657var F = new SyntheticBoundNodeFactory(_currentMethod, node.Syntax, CompilationState, Diagnostics);