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