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