17 references to CanChangeValueBetweenReads
Microsoft.CodeAnalysis.CSharp (17)
CodeGen\EmitExpression.cs (1)
442LocalRewriter.CanChangeValueBetweenReads(receiver, localsMayBeAssignedOrCaptured: false) ||
CodeGen\EmitStatement.cs (1)
535LocalRewriter.CanChangeValueBetweenReads(receiver, localsMayBeAssignedOrCaptured: false) ||
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (1)
1492if (CanChangeValueBetweenReads(operand))
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (8)
77if (CanChangeValueBetweenReads(loweredRight)) 184if (receiverOpt == null || propertyOrEvent.IsStatic || !CanChangeValueBetweenReads(receiverOpt)) 229if (!CanChangeValueBetweenReads(memberAccess.Receiver)) 298captureReceiverMode: CanChangeValueBetweenReads(receiverOpt) ? 470if (!CanChangeValueBetweenReads(receiver)) 505if (CanChangeValueBetweenReads(indexerAccess.Receiver)) 523if (CanChangeValueBetweenReads(arguments[i])) 791if (CanChangeValueBetweenReads(loweredIndices[i]))
Lowering\LocalRewriter\LocalRewriter_ConditionalAccess.cs (1)
62else if (CanChangeValueBetweenReads(loweredReceiver))
Lowering\LocalRewriter\LocalRewriter_DeconstructionAssignmentOperator.cs (2)
346if (CanChangeValueBetweenReads(expression, localsMayBeAssignedOrCaptured: true)) 424if (CanChangeValueBetweenReads(loweredArg, localsMayBeAssignedOrCaptured: true, structThisCanChangeValueBetweenReads: true))
Lowering\LocalRewriter\LocalRewriter_Event.cs (1)
92if (!eventSymbol.IsStatic && CanChangeValueBetweenReads(rewrittenReceiverOpt!))
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (2)
452if (CanChangeValueBetweenReads(rewrittenIndex)) 639if (CanChangeValueBetweenReads(arg))