1 write to method
Microsoft.CodeAnalysis.CSharp (1)
Lowering\StateMachineRewriter\StateMachineRewriter.cs (1)
55
this.
method
= method;
26 references to method
Microsoft.CodeAnalysis.CSharp (26)
Lowering\AsyncRewriter\AsyncRewriter.AsyncIteratorRewriter.cs (2)
142
if (_isEnumerable && this.
method
.Parameters.Any(static p => p.IsSourceParameterWithEnumeratorCancellationAttribute()))
696
method:
method
,
Lowering\AsyncRewriter\AsyncRewriter.cs (4)
144
var instrumentations = F.ModuleBuilderOpt.GetMethodBodyInstrumentations(
method
);
221
if (!AsyncMethodBuilderMemberCollection.TryCreate(F,
method
, null, out methodScopeAsyncMethodBuilderMemberCollection))
267
bodyBuilder.Add(
method
.IsAsyncReturningVoid()
280
method:
method
,
Lowering\IteratorRewriter\IteratorRewriter.cs (2)
179
var instrumentations = F.ModuleBuilderOpt.GetMethodBodyInstrumentations(
method
);
332
method
,
Lowering\StateMachineRewriter\StateMachineRewriter.cs (18)
118
var variablesToHoist = IteratorAndAsyncCaptureWalker.Analyze(F.Compilation,
method
, body, diagnostics.DiagnosticBag);
197
int syntaxOffset =
method
.CalculateLocalSyntaxOffset(LambdaUtilities.GetDeclaratorPosition(declaratorSyntax), declaratorSyntax.SyntaxTree);
239
var containingType =
method
.ContainingType;
289
F.CurrentFunction =
method
;
292
var frameType =
method
.IsGenericMethod ? stateMachineType.Construct(
method
.TypeArgumentsWithAnnotations, unbound: false) : stateMachineType;
311
if (!
method
.IsStatic)
313
Debug.Assert((object)
method
.ThisParameter != null);
316
if (proxies.TryGetValue(
method
.ThisParameter, out proxy))
327
foreach (var parameter in
method
.Parameters)
444
if (
method
.IsStatic ||
method
.ThisParameter.Type.IsReferenceType)
466
if (!
method
.IsStatic)
470
if (copyDest.TryGetValue(
method
.ThisParameter, out proxy))
477
var rightExpression = copySrc[
method
.ThisParameter].Replacement(F.Syntax, static (stateMachineType, F) => F.This(), F);
485
foreach (var parameter in
method
.Parameters)
521
Debug.Assert(!
method
.IsIterator || !
method
.IsAsync); // an override handles async-iterators