82 references to StoreToTemp
Microsoft.CodeAnalysis.CSharp (82)
Compiler\AnonymousTypeMethodBodySynthesizer.cs (1)
118BoundLocal boundLocal = F.StoreToTemp(F.As(F.Parameter(_parameters[0]), anonymousType), out assignmentToTemp);
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (1)
567temp = _factory.StoreToTemp(invocation, out var store);
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (12)
84var boundTemp = _factory.StoreToTemp(loweredLeft, out tempAssignment); 655var local = _factory.StoreToTemp(loweredLeft, out assignment); 1029BoundLocal boundTempX = _factory.StoreToTemp(xNonNull ?? loweredLeft, out BoundAssignmentOperator tempAssignmentX); 1030BoundLocal boundTempY = _factory.StoreToTemp(yNonNull ?? loweredRight, out BoundAssignmentOperator tempAssignmentY); 1201BoundLocal boundTempX = _factory.StoreToTemp(xNonNull ?? loweredLeft, out tempAssignmentX); 1203BoundLocal boundTempY = _factory.StoreToTemp(yNonNull ?? loweredRight, out tempAssignmentY); 1495var tempAccess = _factory.StoreToTemp(operand, out tempAssignment, kind: kind); 1719BoundLocal boundTemp = _factory.StoreToTemp(notAlwaysNull, out tempAssignment); 1776BoundLocal boundTempX = _factory.StoreToTemp(leftNonNull ?? left, out tempAssignmentX); 1778BoundLocal boundTempY = _factory.StoreToTemp(rightNonNull ?? right, out tempAssignmentY); 1830BoundLocal boundTempX = _factory.StoreToTemp(loweredLeft, out tempAssignmentX); 1832BoundLocal boundTempY = _factory.StoreToTemp(loweredRight, out tempAssignmentY);
Lowering\LocalRewriter\LocalRewriter_Call.cs (3)
295var receiverTemp = _factory.StoreToTemp(receiverOpt, out var assignmentToTemp); 715receiverTemp = _factory.StoreToTemp(rewrittenReceiver, out assignmentToTemp, refKind); 1639BoundLocal boundTemp = _factory.StoreToTemp(argument, out boundAssignmentToTemp);
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (11)
343BoundLocal temp = _factory.StoreToTemp(rewrittenReceiver, out assignmentToTemp); 565var temp = _factory.StoreToTemp(element, out var assignment); 581BoundLocal inlineArrayLocal = _factory.StoreToTemp(new BoundDefaultExpression(syntax, inlineArrayType), out assignmentToTemp); 765BoundLocal indexTemp = _factory.StoreToTemp( 772BoundLocal arrayTemp = _factory.StoreToTemp( 1003spreadOperandAsSpan = _factory.StoreToTemp(spreadOperandAsSpan, out var assignmentToTemp); 1066knownLengthTemp = _factory.StoreToTemp(knownLengthExpression, out assignmentToTemp); 1087BoundLocal listTemp = _factory.StoreToTemp(rewrittenReceiver, out assignmentToTemp); 1103BoundLocal spanTemp = _factory.StoreToTemp(_factory.Call(receiver: null, asSpan, listTemp), out assignmentToTemp); 1111BoundLocal indexTemp = _factory.StoreToTemp( 1222BoundLocal temp = _factory.StoreToTemp(rewrittenExpression, out assignmentToTemp);
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (14)
65var isEvent = _factory.StoreToTemp(_dynamicFactory.MakeDynamicIsEventTest(memberAccess.Name, memberAccess.Receiver).ToExpression(), out BoundAssignmentOperator isEventAssignment); 70lhsRead = _factory.StoreToTemp(lhsRead, out BoundAssignmentOperator receiverAssignment); 72var storeNonEvent = _factory.StoreToTemp(_factory.Conditional(_factory.Not(isEvent), receiverAssignment, _factory.Null(receiverAssignment.Type), receiverAssignment.Type), out BoundAssignmentOperator nonEventStore); 79loweredRight = _factory.StoreToTemp(loweredRight, out BoundAssignmentOperator possibleHandlerAssignment); 205var receiverTemp = _factory.StoreToTemp(rewrittenReceiver, out assignmentToTemp, refKind: variableRepresentsLocation ? RefKind.Ref : RefKind.None); 237var receiverTemp = _factory.StoreToTemp(rewrittenReceiver, out assignmentToTemp); 357var boundTemp = _factory.StoreToTemp(array, out storeToTemp); 448var variableTemp = _factory.StoreToTemp(arrayAccess, out assignmentToTemp, refKind: RefKind.Ref); 495var receiverTemp = _factory.StoreToTemp(rewrittenReceiver, out assignmentToTemp); 508var temp = _factory.StoreToTemp(VisitExpression(indexerAccess.Receiver), out assignmentToTemp); 526var temp = _factory.StoreToTemp(VisitExpression(arguments[i]), out assignmentToTemp, indexerAccess.ArgumentRefKindsOpt.RefKinds(i) != RefKind.None ? RefKind.Ref : RefKind.None); 754var variableTemp = _factory.StoreToTemp(rewrittenVariable, out assignmentToTemp2, refKind: RefKind.Ref); 783var arrayTemp = _factory.StoreToTemp(loweredExpression, out assignmentToArrayTemp); 794var temp = _factory.StoreToTemp(loweredIndices[i], out assignmentToTemp);
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (3)
963var savedTuple = _factory.StoreToTemp(rewrittenOperand, out assignmentToTemp); 1166var boundTemp = _factory.StoreToTemp(operand, out tempAssignment); 1434BoundLocal boundTemp = _factory.StoreToTemp(rewrittenOperand, out tempAssignment);
Lowering\LocalRewriter\LocalRewriter_DeconstructionAssignmentOperator.cs (2)
349BoundLocal savedTuple = _factory.StoreToTemp(expression, out assignmentToTemp); 427var temp = _factory.StoreToTemp(loweredArg, out store);
Lowering\LocalRewriter\LocalRewriter_Event.cs (1)
94boundTemp = _factory.StoreToTemp(rewrittenReceiverOpt!, out tempAssignment);
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (1)
340nullableBoundTemp = factory.StoreToTemp(initializerExpr, out nullableTempAssignment);
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (1)
754BoundLocal boundLocal = rewriter._factory.StoreToTemp(rewrittenExpression, out BoundAssignmentOperator? valueStore);
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (16)
212rewrittenReceiver = _factory.StoreToTemp(rewrittenReceiver, out receiverStore); 501var receiverLocal = F.StoreToTemp( 541makeOffsetInput = F.StoreToTemp(makeOffsetInput, out BoundAssignmentOperator inputStore); 601var integerTemp = F.StoreToTemp(integerArgument, out BoundAssignmentOperator integerStore); 615var integerTemp = F.StoreToTemp(integerArgument, out BoundAssignmentOperator integerStore); 803var receiverLocal = F.StoreToTemp( 926startMakeOffsetInput = F.StoreToTemp(startMakeOffsetInput, out BoundAssignmentOperator inputStore); 937endMakeOffsetInput = F.StoreToTemp(endMakeOffsetInput, out BoundAssignmentOperator inputStore); 952var lengthLocal = F.StoreToTemp(lengthAccess, out var lengthStore); 965var startLocal = F.StoreToTemp(startExpr, out var startStore); 970var rangeSizeLocal = F.StoreToTemp(rangeSizeExpr, out var rangeSizeStore); 1015var startLocal = F.StoreToTemp(startExpr, out var startStore); 1031var rangeLocal = F.StoreToTemp(rewrittenRangeArg, out var rangeStore); 1037var lengthLocal = F.StoreToTemp(lengthAccess, out var lengthStore); 1043var startLocal = F.StoreToTemp( 1054var rangeSizeLocal = F.StoreToTemp(
Lowering\LocalRewriter\LocalRewriter_NullCoalescingAssignmentOperator.cs (2)
96var lhsTemp = _factory.StoreToTemp(lhsRead, out var store); 103var tmp = _factory.StoreToTemp(BoundCall.Synthesized(leftOperand.Syntax, lhsRead, initialBindingReceiverIsSubjectToCloning: ThreeState.Unknown, getValueOrDefault),
Lowering\LocalRewriter\LocalRewriter_NullCoalescingOperator.cs (1)
160BoundLocal boundTemp = _factory.StoreToTemp(rewrittenLeft, out tempAssignment);
Lowering\LocalRewriter\LocalRewriter_ObjectCreationExpression.cs (3)
167BoundLocal oldValue = _factory.StoreToTemp(rewrittenReceiver, out BoundAssignmentOperator boundAssignmentToTemp); 213BoundLocal valueTemp = _factory.StoreToTemp(rewrittenRight, out BoundAssignmentOperator boundAssignmentToTemp); 266BoundLocal value = _factory.StoreToTemp(rewrittenExpression, out boundAssignmentToTemp, isKnownToReferToTempIfReferenceType: true);
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (3)
423var rangeTemp = _factory.StoreToTemp(rangeArgument, out BoundAssignmentOperator rangeStore); 455var temp = _factory.StoreToTemp(rewrittenIndex, out store); 642var temp = _factory.StoreToTemp(arg, out store, refKind);
Lowering\LocalRewriter\LocalRewriter_StackAlloc.cs (1)
81var tempAccess = _factory.StoreToTemp(constructorCall, out BoundAssignmentOperator tempAssignment, syntaxOpt: stackAllocNode.Syntax);
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (2)
541var temp = factory.StoreToTemp(arg, out var tempAssignment); 727var temp = _factory.StoreToTemp(expr, out var store);
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (1)
418BoundLocal temp = _factory.StoreToTemp(loweredExpression, out BoundAssignmentOperator assignmentToTemp);
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (2)
203BoundLocal boundTemp = _factory.StoreToTemp(loweredOperand, out tempAssignment); 669BoundLocal boundTemp = _factory.StoreToTemp(rewrittenArgument, out tempAssignment);
Lowering\MethodToClassRewriter.cs (1)
529BoundLocal tempLocal = factory.StoreToTemp(rewrittenRight, out tempAssignment);