1 write to Method
Microsoft.CodeAnalysis.VisualBasic (1)
Lowering\StateMachineRewriter\StateMachineRewriter.vb (1)
55Me.Method = method
45 references to Method
Microsoft.CodeAnalysis.VisualBasic (45)
Lowering\AsyncRewriter\AsyncRewriter.vb (11)
61Me._resultType = DirectCast(Me.Method.ReturnType, NamedTypeSymbol).TypeArgumentsNoUseSiteDiagnostics().Single().InternalSubstituteTypeParameters(Me.TypeMap).Type 136Me.StateField = Me.F.StateMachineField(Me.F.SpecialType(SpecialType.System_Int32), Me.Method, GeneratedNames.MakeStateMachineStateFieldName(), Accessibility.Public) 137Me._builderField = Me.F.StateMachineField(Me._builderType, Me.Method, GeneratedNames.MakeStateMachineBuilderFieldName(), Accessibility.Public) 251Return RewriteBodyIfNeeded(Me.F.Block(ImmutableArray(Of LocalSymbol).Empty, bodyBuilder.ToImmutableAndFree()), Me.F.TopLevelMethod, Me.Method) 256method:=Method, 422Return CaptureParameterSymbol(typeMap, Me.Method.MeParameter) 425Return CaptureParameterSymbol(typeMap, Me.Method.MeParameter) 428Return CaptureParameterSymbol(typeMap, Me.Method.MeParameter) 465Me.Method, 478Dim frameType As NamedTypeSymbol = If(Me.Method.IsGenericMethod, 479Me.StateMachineType.Construct(Me.Method.TypeArguments),
Lowering\IteratorRewriter\IteratorRewriter.vb (12)
91If MyBase.EnsureAllSymbolsAndSignature OrElse Me.Method.IsSub OrElse Me._elementType.IsErrorType Then 139Me.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) 146F.StateMachineField(F.SpecialType(SpecialType.System_Int32), Me.Method, GeneratedNames.MakeIteratorInitialThreadIdName(), Accessibility.Public), 224If(Method.IsShared OrElse Method.MeParameter.Type.IsReferenceType, 235If Not Method.IsShared Then 238If (copyDest.TryGetValue(Method.MeParameter, proxy)) Then 242F.Field(F.Me, copySrc(Method.MeParameter).AsMember(F.CurrentType), False))) 248For Each parameter In Method.Parameters 370Dim frameType As NamedTypeSymbol = If(Me.Method.IsGenericMethod, 371Me.StateMachineType.Construct(Me.Method.TypeArguments),
Lowering\StateMachineRewriter\StateMachineRewriter.vb (22)
97Debug.Assert(Not Me.PreserveInitialParameterValues OrElse Method.IsIterator) 100Me.F.CompilationState.StateMachineImplementationClass(Me.Method) = Me.StateMachineType 110Dim variablesToHoist = IteratorAndAsyncCaptureWalker.Analyze(New FlowAnalysisInfo(F.CompilationState.Compilation, Me.Method, Me.Body), Me.Diagnostics.DiagnosticBag) 123Me.F.CurrentMethod = Me.Method 127Dim frameType As NamedTypeSymbol = If(Me.Method.IsGenericMethod, Me.StateMachineType.Construct(Method.TypeArguments), Me.StateMachineType) 136If Not Me.Method.IsShared AndAlso Me.Method.MeParameter IsNot Nothing Then 138If proxies.TryGetValue(Me.Method.MeParameter, proxy) Then 139InitializeParameterWithProxy(Me.Method.MeParameter, proxy, stateMachineVariable, initializers) 144For Each parameter In Me.Method.Parameters 214Method.ContainingType, 215Me.Method, 224Dim initialMe As TProxy = If(Me.Method.ContainingType.IsStructureType(), 227Me.Method.ContainingType, 228Me.Method, 244Me.Method, 255Me.Method, 300Dim syntaxOffset As Integer = Me.Method.CalculateLocalSyntaxOffset(declaratorSyntax.SpanStart, declaratorSyntax.SyntaxTree) 354Return F.StateMachineField(localType, Me.Method, proxyName, New LocalSlotDebugInfo(local.SynthesizedKind, id), slotIndex, Accessibility.Friend) 365If Me.Method.ReturnType.IsErrorType Then 369For Each parameter In Me.Method.Parameters