Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (14)
145bodyBuilder.Add(F.Assignment(F.Local(cachedState), F.Field(F.This(), stateField)));
165var stateDone = F.Assignment(F.Field(F.This(), stateField), F.Literal(StateMachineState.FinishedState));
277builder.Add(F.Assignment(F.Field(F.This(), hoistedLocal), F.NullOrDefault(hoistedLocal.Type)));
367F.Assignment(
386F.Assignment(resultPlace, getResultCall) :
470F.Assignment(
502F.Assignment(
509F.Assignment(F.Field(F.This(), awaiterField), F.NullOrDefault(awaiterField.Type)));
548F.Assignment(
555blockBuilder.Add(F.Assignment(F.Local(thisTemp), F.This()));
564F.Assignment(
575F.Assignment(
589F.Assignment(
648F.Assignment(F.Local(_exprRetValue), (BoundExpression)Visit(node.ExpressionOpt)),
Lowering\AsyncRewriter\AsyncRewriter.AsyncIteratorRewriter.cs (15)
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)));
193return F.Assignment(
205F.Assignment(
238thenClause: F.Assignment(resultParameter, tokenParameter),
245thenClause: F.Assignment(resultParameter, parameterProxy),
248F.Assignment(combinedTokens, F.StaticCall(WellKnownMember.System_Threading_CancellationTokenSource__CreateLinkedTokenSource, parameterProxy, tokenParameter)),
250F.Assignment(resultParameter, F.Property(combinedTokens, WellKnownMember.System_Threading_CancellationTokenSource__Token)))));
256result = F.Assignment(resultParameter, parameterProxy);
338var versionInit = F.Assignment(versionLocal, F.Call(F.Field(F.This(), _promiseOfValueOrEndField), promise_get_Version));
390instAssignment = F.Assignment(instLocal, F.This());
462F.Assignment(F.InstanceField(_disposeModeField), F.Literal(true)), // disposeMode = true;
670F.Assignment(F.Field(F.This(), stateField), F.Literal(initialState)));
678F.Assignment(F.InstanceField(_disposeModeField), F.Literal(false)));
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.cs (10)
116F.Assignment(F.Local(cachedState), F.Field(F.This(), stateField)),
121F.Assignment(F.Field(F.This(), stateField), F.Literal(StateMachineState.NotStartedOrRunningState)),
172F.Assignment(F.Local(stateLocal), F.Field(F.This(), stateField)),
199F.Assignment(this.F.Local(_methodValue), this.F.Literal(true)),
307F.Assignment(this.F.Local(_methodValue), result),
335F.Assignment(F.Field(F.This(), _current), rewrittenExpression),
336F.Assignment(F.Field(F.This(), stateField), F.Literal(stateNumber)),
340F.Assignment(F.Field(F.This(), stateField), F.Literal(_currentFinallyFrame.finalizeState)));
405F.Assignment(F.Field(F.This(), stateField), F.Literal(frame.parent.finalizeState)),
423bodyStatements.Add(F.Assignment(F.Field(F.This(), stateField), F.Literal(frame.finalizeState)));
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (8)
39cleanup[i] = _factory.Assignment(_factory.Local(pinnedTemp), _factory.Null(pinnedTemp.Type));
44cleanup[i] = _factory.Assignment(_factory.Local(pinnedTemp), _factory.NullRef(pinnedTemp.TypeWithAnnotations), isRef: true);
272BoundStatement pinnedTempInit = factory.Assignment(factory.Local(pinnedTemp), initializerExpr, isRef: true);
285factory.Assignment(factory.Local(localSymbol), pointerValue));
421BoundStatement localInit = InstrumentLocalDeclarationIfNecessary(localDecl, localSymbol, factory.Assignment(factory.Local(localSymbol), pinAndGetPtr));
460BoundStatement stringTempInit = factory.Assignment(factory.Local(pinnedTemp), initializerExpr);
471factory.Assignment(factory.Local(localSymbol), convertedStringTemp));
487BoundStatement conditionalAdd = factory.If(notNullCheck, factory.Assignment(factory.Local(localSymbol), addition));
Lowering\SpillSequenceSpiller.cs (9)
998leftBuilder.AddStatement(_F.Assignment(_F.Local(tmp), left));
1001UpdateStatement(builder, _F.Assignment(_F.Local(tmp), right))));
1140UpdateStatement(consequenceBuilder, _F.Assignment(_F.Local(tmp), consequence)),
1141UpdateStatement(alternativeBuilder, _F.Assignment(_F.Local(tmp), alternative))));
1153conditionBuilder.AddStatement(_F.Assignment(_F.Local(tmp), condition));
1252leftBuilder.AddStatement(_F.Assignment(_F.Local(tmp), left));
1255UpdateStatement(builder, _F.Assignment(_F.Local(tmp), right))));
1337var whenNotNullStatement = UpdateStatement(whenNotNullBuilder, _F.Assignment(_F.Local(tmp), whenNotNull));
1346UpdateStatement(whenNullBuilder, _F.Assignment(_F.Local(tmp), whenNullOpt))));