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