Base:
property
ConstantValueOpt
Microsoft.CodeAnalysis.CSharp.BoundExpression.ConstantValueOpt
1 write to ConstantValueOpt
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
2017
this.
ConstantValueOpt
= constantValueOpt;
15 references to ConstantValueOpt
Microsoft.CodeAnalysis.CSharp (15)
CodeGen\EmitAddress.cs (1)
217
Debug.Assert(expr.
ConstantValueOpt
== null, "Constant value should have been emitted directly");
CodeGen\EmitExpression.cs (1)
3742
Debug.Assert(expr.
ConstantValueOpt
== null, "Constant value should have been emitted directly");
CodeGen\Optimizer.cs (1)
1470
return node.Update(node.IsRef, condition, consequence, alternative, node.
ConstantValueOpt
, node.NaturalTypeOpt, node.WasCompilerGenerated, node.Type);
Generated\BoundNodes.xml.Generated.cs (5)
2036
if (isRef != this.IsRef || condition != this.Condition || consequence != this.Consequence || alternative != this.Alternative || constantValueOpt != this.
ConstantValueOpt
|| !TypeSymbol.Equals(naturalTypeOpt, this.NaturalTypeOpt, TypeCompareKind.ConsiderEverything) || wasTargetTyped != this.WasTargetTyped || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
11094
return node.Update(node.IsRef, condition, consequence, alternative, node.
ConstantValueOpt
, naturalTypeOpt, node.WasTargetTyped, type);
12889
updatedNode = node.Update(node.IsRef, condition, consequence, alternative, node.
ConstantValueOpt
, naturalTypeOpt, node.WasTargetTyped, infoAndType.Type!);
12894
updatedNode = node.Update(node.IsRef, condition, consequence, alternative, node.
ConstantValueOpt
, naturalTypeOpt, node.WasTargetTyped, node.Type);
15405
new TreeDumperNode("constantValueOpt", node.
ConstantValueOpt
, null),
Lowering\LocalRewriter\LocalRewriter_ConditionalOperator.cs (3)
21
Debug.Assert(node.
ConstantValueOpt
== null);
29
return node.Update(node.IsRef, rewrittenCondition, rewrittenConsequence, rewrittenAlternative, node.
ConstantValueOpt
, node.NaturalTypeOpt, node.WasTargetTyped, node.Type);
37
node.
ConstantValueOpt
,
Lowering\LocalRewriter\LocalRewriter_DeconstructionAssignmentOperator.cs (1)
71
conditional.
ConstantValueOpt
,
Lowering\SpillSequenceSpiller.cs (2)
1117
return UpdateExpression(conditionBuilder, node.Update(node.IsRef, condition, consequence, alternative, node.
ConstantValueOpt
, node.NaturalTypeOpt, node.WasTargetTyped, node.Type));
1170
return conditionBuilder.Update(node.Update(node.IsRef, condition, consequence, alternative, node.
ConstantValueOpt
, node.NaturalTypeOpt, node.WasTargetTyped, node.Type));
Operations\CSharpOperationFactory.cs (1)
1580
ConstantValue? constantValue = boundConditionalOperator.
ConstantValueOpt
;