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.IsSourceParameterWithEnumeratorCancellationAttribute())) 696method: 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)
118var variablesToHoist = IteratorAndAsyncCaptureWalker.Analyze(F.Compilation, method, body, diagnostics.DiagnosticBag); 195int syntaxOffset = method.CalculateLocalSyntaxOffset(LambdaUtilities.GetDeclaratorPosition(declaratorSyntax), declaratorSyntax.SyntaxTree); 236var containingType = method.ContainingType; 285F.CurrentFunction = method; 288var frameType = method.IsGenericMethod ? stateMachineType.Construct(method.TypeArgumentsWithAnnotations, unbound: false) : stateMachineType; 307if (!method.IsStatic) 309Debug.Assert((object)method.ThisParameter != null); 312if (proxies.TryGetValue(method.ThisParameter, out proxy)) 323foreach (var parameter in method.Parameters) 440if (method.IsStatic || method.ThisParameter.Type.IsReferenceType) 462if (!method.IsStatic) 466if (copyDest.TryGetValue(method.ThisParameter, out proxy)) 473var rightExpression = copySrc[method.ThisParameter].Replacement(F.Syntax, static (stateMachineType, F) => F.This(), F); 481foreach (var parameter in method.Parameters) 517Debug.Assert(!method.IsIterator || !method.IsAsync); // an override handles async-iterators