1 write to Method
Microsoft.CodeAnalysis.VisualBasic (1)
Lowering\StateMachineRewriter\StateMachineRewriter.vb (1)
55Me.Method = method
43 references to Method
Microsoft.CodeAnalysis.VisualBasic (43)
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 (20)
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) 125Me.F.CurrentMethod = Me.Method 129Dim frameType As NamedTypeSymbol = If(Me.Method.IsGenericMethod, Me.StateMachineType.Construct(Method.TypeArguments), Me.StateMachineType) 138If Not Me.Method.IsShared AndAlso Me.Method.MeParameter IsNot Nothing Then 140If proxies.TryGetValue(Me.Method.MeParameter, proxy) Then 141InitializeParameterWithProxy(Me.Method.MeParameter, proxy, stateMachineVariable, initializers) 146For Each parameter In Me.Method.Parameters 216Method.ContainingType, 217Me.Method, 226Dim initialMe As TProxy = If(Me.Method.ContainingType.IsStructureType(), 229Me.Method.ContainingType, 230Me.Method, 302Dim syntaxOffset As Integer = Me.Method.CalculateLocalSyntaxOffset(declaratorSyntax.SpanStart, declaratorSyntax.SyntaxTree) 356Return F.StateMachineField(localType, Me.Method, proxyName, New LocalSlotDebugInfo(local.SynthesizedKind, id), slotIndex, Accessibility.Friend) 367If Me.Method.ReturnType.IsErrorType Then 371For Each parameter In Me.Method.Parameters