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
"/>
315
get { return
_currentMethod
; }
595
var lambda =
_currentMethod
as SynthesizedClosureMethod;
774
if (
_currentMethod
.MethodKind == MethodKind.Constructor &&
775
symbol ==
_currentMethod
.ThisParameter &&
784
_currentMethod
is not SynthesizedPrimaryConstructor)
794
Debug.Assert(
_currentMethod
is not SynthesizedPrimaryConstructor primaryConstructor ||
795
symbol !=
_currentMethod
.ThisParameter ||
827
return (
_currentMethod
== _topLevelMethod || _topLevelMethod.ThisParameter == null ?
834
return (!
_currentMethod
.IsStatic && TypeSymbol.Equals(
_currentMethod
.ContainingType, _topLevelMethod.ContainingType, TypeCompareKind.ConsiderEverything2))
1098
if (
_currentMethod
== _topLevelMethod && node.IsConstructorInitializer())
1529
var oldMethod =
_currentMethod
;
1645
_currentMethod
.MethodKind != MethodKind.StaticConstructor &&
1657
var F = new SyntheticBoundNodeFactory(
_currentMethod
, node.Syntax, CompilationState, Diagnostics);