Base:
property
ConstantValueOpt
Microsoft.CodeAnalysis.CSharp.BoundExpression.ConstantValueOpt
13 references to ConstantValueOpt
Microsoft.CodeAnalysis.CSharp (13)
Binder\Binder_InterpolatedString.cs (2)
459if (binaryOperator.ConstantValueOpt is not null) 546original.ConstantValueOpt,
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
2915node is BoundUnconvertedInterpolatedString { ConstantValueOpt: null } or BoundBinaryOperator { IsUnconvertedInterpolatedStringAddition: true, ConstantValueOpt: null })
CodeGen\EmitStatement.cs (1)
421Debug.Assert(binOp.ConstantValueOpt is null);
CodeGen\Optimizer.cs (3)
1527left = binary.Update(binary.OperatorKind, binary.ConstantValueOpt, binary.Method, binary.ConstrainedToType, binary.ResultKind, left, right, type); 1561return node.Update(node.OperatorKind, node.ConstantValueOpt, node.Method, node.ConstrainedToType, node.ResultKind, left, right, node.Type); 2102left = binary.Update(binary.OperatorKind, binary.ConstantValueOpt, binary.Method, binary.ConstrainedToType, binary.ResultKind, left, right, type);
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (3)
135for (BoundBinaryOperator? current = node; current != null && current.ConstantValueOpt == null; current = current.Left as BoundBinaryOperator) 533oldNode.Update(operatorKind, oldNode.ConstantValueOpt, oldNode.Method, oldNode.ConstrainedToType, oldNode.ResultKind, loweredLeft, loweredRight, type) : 1999return oldNode.Update(operatorKind, oldNode.ConstantValueOpt, oldNode.Method, oldNode.ConstrainedToType, oldNode.ResultKind, loweredLeft, loweredRight, type);
Lowering\MethodToClassRewriter.cs (1)
272node.ConstantValueOpt,
Lowering\SpillSequenceSpiller.cs (1)
1013return UpdateExpression(builder, node.Update(node.OperatorKind, node.ConstantValueOpt, node.Method, node.ConstrainedToType, node.ResultKind, left, right, node.Type));
Operations\CSharpOperationFactory.cs (1)
1524ConstantValue? constantValue = boundBinaryOperator.ConstantValueOpt;