1 write to Method
Microsoft.CodeAnalysis.VisualBasic (1)
Lowering\StateMachineRewriter\StateMachineRewriter.vb (1)
55
Me.
Method
= method
45 references to Method
Microsoft.CodeAnalysis.VisualBasic (45)
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 (22)
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)
123
Me.F.CurrentMethod = Me.
Method
127
Dim frameType As NamedTypeSymbol = If(Me.
Method
.IsGenericMethod, Me.StateMachineType.Construct(
Method
.TypeArguments), Me.StateMachineType)
136
If Not Me.
Method
.IsShared AndAlso Me.
Method
.MeParameter IsNot Nothing Then
138
If proxies.TryGetValue(Me.
Method
.MeParameter, proxy) Then
139
InitializeParameterWithProxy(Me.
Method
.MeParameter, proxy, stateMachineVariable, initializers)
144
For Each parameter In Me.
Method
.Parameters
214
Method
.ContainingType,
215
Me.
Method
,
224
Dim initialMe As TProxy = If(Me.
Method
.ContainingType.IsStructureType(),
227
Me.
Method
.ContainingType,
228
Me.
Method
,
244
Me.
Method
,
255
Me.
Method
,
300
Dim syntaxOffset As Integer = Me.
Method
.CalculateLocalSyntaxOffset(declaratorSyntax.SpanStart, declaratorSyntax.SyntaxTree)
354
Return F.StateMachineField(localType, Me.
Method
, proxyName, New LocalSlotDebugInfo(local.SynthesizedKind, id), slotIndex, Accessibility.Friend)
365
If Me.
Method
.ReturnType.IsErrorType Then
369
For Each parameter In Me.
Method
.Parameters