3 writes to _currentMethod
Microsoft.CodeAnalysis.CSharp (3)
Lowering\ClosureConversion\ClosureConversion.cs (3)
182_currentMethod = method; 1569_currentMethod = synthesizedMethod; 1593_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"/> 320get { return _currentMethod; } 603var lambda = _currentMethod as SynthesizedClosureMethod; 789if (_currentMethod.MethodKind == MethodKind.Constructor && 790symbol == _currentMethod.ThisParameter && 799_currentMethod is not SynthesizedPrimaryConstructor) 809Debug.Assert(_currentMethod is not SynthesizedPrimaryConstructor primaryConstructor || 810symbol != _currentMethod.ThisParameter || 842return (_currentMethod == _topLevelMethod || _topLevelMethod.ThisParameter == null ? 849return (!_currentMethod.IsStatic && TypeSymbol.Equals(_currentMethod.ContainingType, _topLevelMethod.ContainingType, TypeCompareKind.ConsiderEverything2)) 1114if (_currentMethod == _topLevelMethod && node.IsConstructorInitializer()) 1557var oldMethod = _currentMethod; 1673_currentMethod.MethodKind != MethodKind.StaticConstructor && 1685var F = new SyntheticBoundNodeFactory(_currentMethod, node.Syntax, CompilationState, Diagnostics);