121 references to Assignment
Microsoft.CodeAnalysis.CSharp (121)
Compiler\AnonymousTypeMethodBodySynthesizer.cs (1)
57F.Assignment(F.Field(F.This(), anonymousType.Properties[index].BackingField), F.Parameter(_parameters[index]));
Compiler\MethodBodySynthesizer.Lowered.cs (8)
89F.Assignment(F.Local(hashCode), F.Literal((uint)2166136261)), 90F.Assignment(F.Local(i), F.Literal(0)), 93F.Assignment( 105F.Assignment( 176F.Assignment(F.Local(hashCode), F.Literal((uint)2166136261)), 177F.Assignment(F.Local(i), F.Literal(0)), 180F.Assignment( 194F.Assignment(
Compiler\MethodCompiler.cs (1)
1236initializers.Add(factory.Assignment(factory.Field(factory.This(), field), factory.Parameter(parameter)));
Emitter\Model\SynthesizedPrivateImplementationDetailsStaticConstructor.cs (2)
53factory.Assignment( 62factory.Assignment(
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (9)
225statements.Add(_F.Assignment(_F.Local(pendingExceptionLocal), _F.Default(pendingExceptionLocal.Type))); 227statements.Add(_F.Assignment(_F.Local(pendingBranchVar), _F.Default(pendingBranchVar.Type))); 290bodyStatements.Add(_F.Assignment(_F.Local(pendingBranchVar), _F.Literal(i))); 346_F.Assignment( 391_F.Assignment( 408var objInit = _F.Assignment(_F.Local(obj), _F.Local(pendingExceptionLocal)); 436var assignment = _F.Assignment( 504_F.Assignment( 562var setPendingCatchNum = _F.Assignment(
Lowering\AsyncRewriter\AsyncIteratorMethodToStateMachineRewriter.cs (4)
150return F.Assignment(F.InstanceField(currentField), F.Default(currentField.Type)); 176F.Assignment(combinedTokens, F.Null(combinedTokensType))))); 284F.Assignment(F.InstanceField(_asyncIteratorInfo.CurrentField), rewrittenExpression)); 349return F.Assignment(F.InstanceField(_asyncIteratorInfo.DisposeModeField), F.Literal(value));
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\AsyncRewriter\AsyncRewriter.cs (4)
208F.Assignment( 230F.Assignment( 240F.Assignment( 249F.Assignment(
Lowering\ClosureConversion\ClosureConversion.cs (2)
559F.Assignment( 1724_addedStatements.Add(F.Assignment(cache, F.Null(type)));
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (3)
225return methodBodyFactory.Assignment( 262_methodBodyFactory.Assignment( 520return statementFactory.Assignment(payloadCell, statementFactory.Literal(true));
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (1)
345_factory.Assignment(_factory.Local(_scope.ContextVariable), _factory.Call(receiver: null, entryLogger, entryArgs)) : _factory.NoOp(NoOpStatementFlavor.Default);
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.cs (12)
117F.Assignment(F.Local(cachedState), F.Field(F.This(), stateField)), 122F.Assignment(F.Field(F.This(), stateField), F.Literal(StateMachineState.NotStartedOrRunningState)), 166F.Assignment(F.Field(F.This(), stateField), F.Literal(StateMachineState.FinishedState)), 178F.Assignment(F.Local(stateLocal), F.Field(F.This(), stateField)), 181F.Assignment(F.Field(F.This(), stateField), F.Literal(StateMachineState.FinishedState)), 207F.Assignment(this.F.Local(_methodValue), this.F.Literal(true)), 315F.Assignment(this.F.Local(_methodValue), result), 343F.Assignment(F.Field(F.This(), _current), rewrittenExpression), 344F.Assignment(F.Field(F.This(), stateField), F.Literal(stateNumber)), 348F.Assignment(F.Field(F.This(), stateField), F.Literal(_currentFinallyFrame.finalizeState))); 413F.Assignment(F.Field(F.This(), stateField), F.Literal(frame.parent.finalizeState)), 431bodyStatements.Add(F.Assignment(F.Field(F.This(), stateField), F.Literal(frame.finalizeState)));
Lowering\IteratorRewriter\IteratorRewriter.cs (4)
282bodyBuilder.Add(F.Assignment(F.Field(F.This(), stateField), F.Parameter(F.CurrentFunction.Parameters[0]))); // this.state = state; 287bodyBuilder.Add(F.Assignment(F.Field(F.This(), initialThreadIdField), managedThreadId)); 293bodyBuilder.Add(F.Assignment(F.InstanceField(instanceIdField), F.Call(receiver: null, getId))); 307F.Assignment(
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (3)
362result.Add(_factory.Assignment(inputTemp, loweredSwitchGoverningExpression)); 1071sectionBuilder.Add(_factory.Assignment(_factory.Local(_whenNodeIdentifierLocal), _factory.Literal(whenNodeInfo.WhenNodeIdentifier))); 1188sectionBuilder.Add(_factory.Assignment(left, right));
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\LocalRewriter\LocalRewriter_IsPatternOperator.cs (2)
127resultBuilder.Add(_factory.Assignment(_factory.Local(resultTemp), _factory.Literal(true))); 130resultBuilder.Add(_factory.Assignment(_factory.Local(resultTemp), _factory.Literal(false)));
Lowering\LocalRewriter\LocalRewriter_SwitchExpression.cs (1)
101sectionBuilder.Add(_factory.Assignment(_factory.Local(resultTemp), loweredValue));
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))));
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (2)
938return F.Assignment(F.Field(F.This(), stateField), F.AssignmentExpression(F.Local(cachedState), F.Literal(stateNumber))); 948return F.Assignment(F.Local(this.cachedThis), fetchThis);
Lowering\StateMachineRewriter\StateMachineRewriter.cs (7)
323bodyBuilder.Add(F.Assignment(leftExpression, F.This())); 337bodyBuilder.Add(F.Assignment(leftExpression, F.Parameter(parameter))); 429BoundStatement makeIterator = F.Assignment(F.Local(resultVariable), F.New(stateMachineType.Constructor, F.Literal(initialState))); 442F.Assignment(F.Local(resultVariable), F.This())); 479bodyBuilder.Add(F.Assignment(leftExpression, rightExpression)); 516F.Assignment(F.Field(F.This(), stateField), F.Literal(initialState))); 524return F.Assignment(resultParameter, parameterProxy);
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListConstructor.cs (1)
37f.Assignment(f.Field(f.This(), field), f.Parameter(parameter)),
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorConstructor.cs (1)
37f.Assignment(f.Field(f.This(), field), f.Parameter(parameter)),
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (1)
102return f.Block(f.Assignment(moveNextCalledFieldReference, f.Literal(false)), f.Return());
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (1)
614statement = f.Assignment(
Symbols\Synthesized\Records\SynthesizedRecordCopyCtor.cs (1)
54statements.Add(F.Assignment(F.Field(F.This(), field), F.Field(param, field)));
Symbols\Synthesized\Records\SynthesizedRecordDeconstruct.cs (2)
85statementsBuilder.Add(F.Assignment(F.Parameter(parameter), F.Property(F.This(), property))); 89statementsBuilder.Add(F.Assignment(F.Parameter(parameter), F.Field(F.This(), field)));
Symbols\Synthesized\Records\SynthesizedRecordToString.cs (1)
63block.Add(F.Assignment(builderLocal, F.New(stringBuilderCtor)));
Symbols\Synthesized\SynthesizedHotReloadExceptionConstructorSymbol.cs (1)
61factory.Assignment(factory.Field(factory.This(), containingType.CodeField), factory.Parameter(CodeParameter)),