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