Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (14)
147bodyBuilder.Add(F.Assignment(F.Local(cachedState), F.Field(F.This(), stateField)));
167var stateDone = F.Assignment(F.Field(F.This(), stateField), F.Literal(StateMachineState.FinishedState));
280builder.Add(F.Assignment(F.Field(F.This(), hoistedLocal), F.NullOrDefault(hoistedLocal.Type)));
376F.Assignment(
395F.Assignment(resultPlace, getResultCall) :
484F.Assignment(
516F.Assignment(
523F.Assignment(F.Field(F.This(), awaiterField), F.NullOrDefault(awaiterField.Type)));
562F.Assignment(
569blockBuilder.Add(F.Assignment(F.Local(thisTemp), F.This()));
578F.Assignment(
589F.Assignment(
603F.Assignment(
662F.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)
117F.Assignment(F.Local(cachedState), F.Field(F.This(), stateField)),
122F.Assignment(F.Field(F.This(), stateField), F.Literal(StateMachineState.NotStartedOrRunningState)),
177F.Assignment(F.Local(stateLocal), F.Field(F.This(), stateField)),
205F.Assignment(this.F.Local(_methodValue), this.F.Literal(true)),
313F.Assignment(this.F.Local(_methodValue), result),
341F.Assignment(F.Field(F.This(), _current), rewrittenExpression),
342F.Assignment(F.Field(F.This(), stateField), F.Literal(stateNumber)),
346F.Assignment(F.Field(F.This(), stateField), F.Literal(_currentFinallyFrame.finalizeState)));
411F.Assignment(F.Field(F.This(), stateField), F.Literal(frame.parent.finalizeState)),
429bodyStatements.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))));