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
"/>
325
get { return
_currentMethod
; }
608
var lambda =
_currentMethod
as SynthesizedClosureMethod;
794
if (
_currentMethod
.MethodKind == MethodKind.Constructor &&
795
symbol ==
_currentMethod
.ThisParameter &&
804
_currentMethod
is not SynthesizedPrimaryConstructor)
814
Debug.Assert(
_currentMethod
is not SynthesizedPrimaryConstructor primaryConstructor ||
815
symbol !=
_currentMethod
.ThisParameter ||
847
return (
_currentMethod
== _topLevelMethod || _topLevelMethod.ThisParameter == null ?
854
return (!
_currentMethod
.IsStatic && TypeSymbol.Equals(
_currentMethod
.ContainingType, _topLevelMethod.ContainingType, TypeCompareKind.ConsiderEverything2))
1119
if (
_currentMethod
== _topLevelMethod && node.IsConstructorInitializer())
1560
var oldMethod =
_currentMethod
;
1676
_currentMethod
.MethodKind != MethodKind.StaticConstructor &&
1688
var F = new SyntheticBoundNodeFactory(
_currentMethod
, node.Syntax, CompilationState, Diagnostics);