26 references to InstanceField
Microsoft.CodeAnalysis.CSharp (26)
Lowering\AsyncRewriter\AsyncIteratorMethodToStateMachineRewriter.cs (6)
130
BoundFieldAccess promiseField = F.
InstanceField
(_asyncIteratorInfo.PromiseOfValueOrEndField);
139
return F.Assignment(F.
InstanceField
(currentField), F.Default(currentField.Type));
184
F.
InstanceField
(_asyncIteratorInfo.PromiseOfValueOrEndField),
196
F.
InstanceField
(_asyncIteratorInfo.DisposeModeField),
273
F.Assignment(F.
InstanceField
(_asyncIteratorInfo.CurrentField), rewrittenExpression));
322
return F.Assignment(F.
InstanceField
(_asyncIteratorInfo.DisposeModeField), F.Literal(value));
Lowering\AsyncRewriter\AsyncRewriter.AsyncIteratorRewriter.cs (19)
169
bodyBuilder.Add(F.Assignment(F.
InstanceField
(stateField), F.Parameter(F.CurrentFunction.Parameters[0]))); // this.state = state;
175
bodyBuilder.Add(F.Assignment(F.
InstanceField
(initialThreadIdField), managedThreadId));
182
bodyBuilder.Add(F.Assignment(F.
InstanceField
(instanceIdField), F.Call(receiver: null, getId)));
194
F.
InstanceField
(_builderField),
331
F.IntEqual(F.
InstanceField
(stateField), F.Literal(StateMachineState.FinishedState)),
377
BoundFieldAccess promiseField = F.
InstanceField
(_promiseOfValueOrEndField);
395
F.
InstanceField
(_builderField),
441
F.IntGreaterThanOrEqual(F.
InstanceField
(stateField), F.Literal(StateMachineState.NotStartedOrRunningState)),
447
F.IntEqual(F.
InstanceField
(stateField), F.Literal(StateMachineState.FinishedState)),
456
var returnStatement = F.Return(F.New(valueTask_ctor, F.This(), F.Call(F.
InstanceField
(_promiseOfValueOrEndField), promise_get_Version)));
462
F.Assignment(F.
InstanceField
(_disposeModeField), F.Literal(true)), // disposeMode = true;
487
F.CloseMethod(F.Block(F.Return(F.
InstanceField
(_currentField))));
512
F.Call(F.
InstanceField
(_promiseOfValueOrEndField), promise_GetResult, F.Parameter(IValueTaskSourceOfBool_GetResult.Parameters[0]))));
537
F.Call(F.
InstanceField
(_promiseOfValueOrEndField), promise_GetStatus, F.Parameter(IValueTaskSourceOfBool_GetStatus.Parameters[0]))));
564
F.Call(F.
InstanceField
(_promiseOfValueOrEndField), promise_OnCompleted,
590
F.ExpressionStatement(F.Call(F.
InstanceField
(_promiseOfValueOrEndField), promise_GetResult, F.Parameter(IValueTaskSource_GetResult.Parameters[0]))),
614
F.Call(F.
InstanceField
(_promiseOfValueOrEndField), promise_GetStatus, F.Parameter(IValueTaskSource_GetStatus.Parameters[0]))));
637
F.Call(F.
InstanceField
(_promiseOfValueOrEndField), promise_OnCompleted,
678
F.Assignment(F.
InstanceField
(_disposeModeField), F.Literal(false)));
Lowering\IteratorRewriter\IteratorRewriter.cs (1)
293
bodyBuilder.Add(F.Assignment(F.
InstanceField
(instanceIdField), F.Call(receiver: null, getId)));