14 writes to CurrentMethod
Microsoft.CodeAnalysis.VisualBasic (14)
Binding\SyntheticBoundTrees\SynthesizedStringSwitchHashMethod.vb (1)
55F.CurrentMethod = Me
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.vb (1)
129Me.F.CurrentMethod = moveNextMethod
Lowering\AsyncRewriter\AsyncRewriter.vb (1)
201Me.F.CurrentMethod = StateMachineType.Constructor
Lowering\IteratorRewriter\IteratorRewriter.IteratorMethodToClassRewriter.vb (2)
59F.CurrentMethod = moveNextMethod 96F.CurrentMethod = disposeMethod
Lowering\IteratorRewriter\IteratorRewriter.vb (2)
164F.CurrentMethod = moveNextMethod 302F.CurrentMethod = StateMachineType.Constructor
Lowering\StateMachineRewriter\StateMachineRewriter.vb (4)
123Me.F.CurrentMethod = Me.Method 449Me.F.CurrentMethod = result 478Me.F.CurrentMethod = getter 513Me.F.CurrentMethod = result
Lowering\SyntheticBoundNodeFactory.vb (3)
74Me.CurrentMethod = currentMethod 91Me.CurrentMethod = Nothing 1131Me.CurrentMethod = Nothing
22 references to CurrentMethod
Microsoft.CodeAnalysis.VisualBasic (22)
Lowering\AsyncRewriter\AsyncRewriter.SpillFieldAllocator.vb (1)
42_F.CurrentMethod,
Lowering\AsyncRewriter\AsyncRewriter.vb (1)
195{Me.F.Parameter(Me.F.CurrentMethod.Parameters(0))})),
Lowering\IteratorRewriter\IteratorRewriter.IteratorMethodToClassRewriter.vb (1)
64Me._methodValue = Me.F.SynthesizedLocal(F.CurrentMethod.ReturnType, SynthesizedLocalKind.StateMachineReturnValue, F.Syntax)
Lowering\IteratorRewriter\IteratorRewriter.vb (1)
305bodyBuilder.Add(F.Assignment(F.Field(F.Me, StateField, True), F.Parameter(F.CurrentMethod.Parameters(0)).MakeRValue)) ' this.state = state
Lowering\StateMachineRewriter\StateMachineRewriter.StateMachineMethodToClassRewriter.vb (1)
131Return Me.F.CurrentMethod
Lowering\StateMachineRewriter\StateMachineRewriter.vb (1)
483Me.F.CloseMethod(RewriteBodyIfNeeded(body, Me.F.TopLevelMethod, Me.F.CurrentMethod))
Lowering\SyntheticBoundNodeFactory.vb (16)
157Debug.Assert(Me.CurrentMethod IsNot Nothing AndAlso Not Me.CurrentMethod.IsShared) 158Dim boundNode = New BoundMeReference(_syntax, Me.CurrentMethod.MeParameter.Type) 164Debug.Assert(Me.CurrentMethod IsNot Nothing AndAlso Not Me.CurrentMethod.IsShared) 166Dim type = Me.CurrentMethod.MeParameter.Type 170New BoundValueTypeMeReference(_syntax, Me.CurrentMethod.MeParameter.Type)) 177Debug.Assert(Me.CurrentMethod IsNot Nothing AndAlso Not Me.CurrentMethod.IsShared) 178Dim boundNode = New BoundMyBaseReference(_syntax, Me.CurrentMethod.MeParameter.Type.BaseTypeNoUseSiteDiagnostics) 357Dim conversion = Conversions.ClassifyDirectCastConversion(expression.Type, Me.CurrentMethod.ReturnType, useSiteInfo) 362expression = New BoundDirectCast(Me.Syntax, expression, conversion, Me.CurrentMethod.ReturnType) 405Return New SynthesizedLocal(Me.CurrentMethod, type, kind, syntax) 807Dim ctor = Me.CurrentMethod.MeParameter.Type.BaseTypeNoUseSiteDiagnostics.InstanceConstructors.Single(Function(c) c.ParameterCount = args.Length) 1126Debug.Assert(Me.CurrentMethod IsNot Nothing) 1130CompilationState.AddSynthesizedMethod(Me.CurrentMethod, body, stateMachineType:=Nothing, ImmutableArray(Of StateMachineStateDebugInfo).Empty)