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