1 write to method
Microsoft.CodeAnalysis.CSharp (1)
Lowering\StateMachineRewriter\StateMachineRewriter.cs (1)
55this.method = method;
26 references to method
Microsoft.CodeAnalysis.CSharp (26)
Lowering\AsyncRewriter\AsyncRewriter.AsyncIteratorRewriter.cs (2)
142if (_isEnumerable && this.method.Parameters.Any(static p => !p.IsExtensionParameterImplementation() && p.HasEnumeratorCancellationAttribute)) 697method: method,
Lowering\AsyncRewriter\AsyncRewriter.cs (4)
144var instrumentations = F.ModuleBuilderOpt.GetMethodBodyInstrumentations(method); 221if (!AsyncMethodBuilderMemberCollection.TryCreate(F, method, null, out methodScopeAsyncMethodBuilderMemberCollection)) 267bodyBuilder.Add(method.IsAsyncReturningVoid() 280method: method,
Lowering\IteratorRewriter\IteratorRewriter.cs (2)
179var instrumentations = F.ModuleBuilderOpt.GetMethodBodyInstrumentations(method); 332method,
Lowering\StateMachineRewriter\StateMachineRewriter.cs (18)
119var variablesToHoist = IteratorAndAsyncCaptureWalker.Analyze(F.Compilation, method, body, isRuntimeAsync: false, diagnostics.DiagnosticBag); 201int syntaxOffset = method.CalculateLocalSyntaxOffset(LambdaUtilities.GetDeclaratorPosition(declaratorSyntax), declaratorSyntax.SyntaxTree); 243var containingType = method.ContainingType; 293F.CurrentFunction = method; 296var frameType = method.IsGenericMethod ? stateMachineType.Construct(method.TypeArgumentsWithAnnotations, unbound: false) : stateMachineType; 315if (!method.IsStatic) 317Debug.Assert((object)method.ThisParameter != null); 320if (proxies.TryGetValue(method.ThisParameter, out proxy)) 331foreach (var parameter in method.Parameters) 448if (method.IsStatic || method.ThisParameter.Type.IsReferenceType) 470if (!method.IsStatic) 474if (copyDest.TryGetValue(method.ThisParameter, out proxy)) 481var rightExpression = copySrc[method.ThisParameter].Replacement(F.Syntax, static (stateMachineType, F) => F.This(), F); 489foreach (var parameter in method.Parameters) 525Debug.Assert(!method.IsIterator || !method.IsAsync); // an override handles async-iterators