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); 197int syntaxOffset = method.CalculateLocalSyntaxOffset(LambdaUtilities.GetDeclaratorPosition(declaratorSyntax), declaratorSyntax.SyntaxTree); 239var containingType = method.ContainingType; 289F.CurrentFunction = method; 292var frameType = method.IsGenericMethod ? stateMachineType.Construct(method.TypeArgumentsWithAnnotations, unbound: false) : stateMachineType; 311if (!method.IsStatic) 313Debug.Assert((object)method.ThisParameter != null); 316if (proxies.TryGetValue(method.ThisParameter, out proxy)) 327foreach (var parameter in method.Parameters) 444if (method.IsStatic || method.ThisParameter.Type.IsReferenceType) 466if (!method.IsStatic) 470if (copyDest.TryGetValue(method.ThisParameter, out proxy)) 477var rightExpression = copySrc[method.ThisParameter].Replacement(F.Syntax, static (stateMachineType, F) => F.This(), F); 485foreach (var parameter in method.Parameters) 521Debug.Assert(!method.IsIterator || !method.IsAsync); // an override handles async-iterators