1 write to Method
Microsoft.CodeAnalysis.VisualBasic (1)
Lowering\StateMachineRewriter\StateMachineRewriter.vb (1)
55
Me.
Method
= method
43 references to Method
Microsoft.CodeAnalysis.VisualBasic (43)
Lowering\AsyncRewriter\AsyncRewriter.vb (11)
61
Me._resultType = DirectCast(Me.
Method
.ReturnType, NamedTypeSymbol).TypeArgumentsNoUseSiteDiagnostics().Single().InternalSubstituteTypeParameters(Me.TypeMap).Type
136
Me.StateField = Me.F.StateMachineField(Me.F.SpecialType(SpecialType.System_Int32), Me.
Method
, GeneratedNames.MakeStateMachineStateFieldName(), Accessibility.Public)
137
Me._builderField = Me.F.StateMachineField(Me._builderType, Me.
Method
, GeneratedNames.MakeStateMachineBuilderFieldName(), Accessibility.Public)
251
Return RewriteBodyIfNeeded(Me.F.Block(ImmutableArray(Of LocalSymbol).Empty, bodyBuilder.ToImmutableAndFree()), Me.F.TopLevelMethod, Me.
Method
)
256
method:=
Method
,
422
Return CaptureParameterSymbol(typeMap, Me.
Method
.MeParameter)
425
Return CaptureParameterSymbol(typeMap, Me.
Method
.MeParameter)
428
Return CaptureParameterSymbol(typeMap, Me.
Method
.MeParameter)
465
Me.
Method
,
478
Dim frameType As NamedTypeSymbol = If(Me.
Method
.IsGenericMethod,
479
Me.StateMachineType.Construct(Me.
Method
.TypeArguments),
Lowering\IteratorRewriter\IteratorRewriter.vb (12)
91
If MyBase.EnsureAllSymbolsAndSignature OrElse Me.
Method
.IsSub OrElse Me._elementType.IsErrorType Then
139
Me.StateField = Me.F.StateMachineField(Me.F.SpecialType(SpecialType.System_Int32), Me.
Method
, GeneratedNames.MakeStateMachineStateFieldName(), Accessibility.Public)
142
_currentField = F.StateMachineField(_elementType, Me.
Method
, GeneratedNames.MakeIteratorCurrentFieldName(), Accessibility.Public)
146
F.StateMachineField(F.SpecialType(SpecialType.System_Int32), Me.
Method
, GeneratedNames.MakeIteratorInitialThreadIdName(), Accessibility.Public),
224
If(
Method
.IsShared OrElse
Method
.MeParameter.Type.IsReferenceType,
235
If Not
Method
.IsShared Then
238
If (copyDest.TryGetValue(
Method
.MeParameter, proxy)) Then
242
F.Field(F.Me, copySrc(
Method
.MeParameter).AsMember(F.CurrentType), False)))
248
For Each parameter In
Method
.Parameters
370
Dim frameType As NamedTypeSymbol = If(Me.
Method
.IsGenericMethod,
371
Me.StateMachineType.Construct(Me.
Method
.TypeArguments),
Lowering\StateMachineRewriter\StateMachineRewriter.vb (20)
97
Debug.Assert(Not Me.PreserveInitialParameterValues OrElse
Method
.IsIterator)
100
Me.F.CompilationState.StateMachineImplementationClass(Me.
Method
) = Me.StateMachineType
110
Dim variablesToHoist = IteratorAndAsyncCaptureWalker.Analyze(New FlowAnalysisInfo(F.CompilationState.Compilation, Me.
Method
, Me.Body), Me.Diagnostics.DiagnosticBag)
125
Me.F.CurrentMethod = Me.
Method
129
Dim frameType As NamedTypeSymbol = If(Me.
Method
.IsGenericMethod, Me.StateMachineType.Construct(
Method
.TypeArguments), Me.StateMachineType)
138
If Not Me.
Method
.IsShared AndAlso Me.
Method
.MeParameter IsNot Nothing Then
140
If proxies.TryGetValue(Me.
Method
.MeParameter, proxy) Then
141
InitializeParameterWithProxy(Me.
Method
.MeParameter, proxy, stateMachineVariable, initializers)
146
For Each parameter In Me.
Method
.Parameters
216
Method
.ContainingType,
217
Me.
Method
,
226
Dim initialMe As TProxy = If(Me.
Method
.ContainingType.IsStructureType(),
229
Me.
Method
.ContainingType,
230
Me.
Method
,
302
Dim syntaxOffset As Integer = Me.
Method
.CalculateLocalSyntaxOffset(declaratorSyntax.SpanStart, declaratorSyntax.SyntaxTree)
356
Return F.StateMachineField(localType, Me.
Method
, proxyName, New LocalSlotDebugInfo(local.SynthesizedKind, id), slotIndex, Accessibility.Friend)
367
If Me.
Method
.ReturnType.IsErrorType Then
371
For Each parameter In Me.
Method
.Parameters