Base:
property
ConstantValueOpt
Microsoft.CodeAnalysis.CSharp.BoundExpression.ConstantValueOpt
2 writes to ConstantValueOpt
Microsoft.CodeAnalysis.CSharp (2)
Generated\BoundNodes.xml.Generated.cs (2)
4192
this.
ConstantValueOpt
= constantValueOpt;
4198
this.
ConstantValueOpt
= constantValueOpt;
18 references to ConstantValueOpt
Microsoft.CodeAnalysis.CSharp (18)
Binder\Binder_Expressions.cs (1)
6651
if (boundLeft.Kind == BoundKind.Literal && ((BoundLiteral)boundLeft).
ConstantValueOpt
== ConstantValue.Null)
Binder\Binder_InterpolatedString.cs (3)
784
Debug.Assert(boundLiteral.
ConstantValueOpt
!= null && boundLiteral.
ConstantValueOpt
.IsString);
785
var literalText = boundLiteral.
ConstantValueOpt
.StringValue;
BoundTree\BoundNode_Source.cs (2)
223
var value = literal.
ConstantValueOpt
?.Value?.ToString();
229
switch (literal.
ConstantValueOpt
?.Discriminator)
BoundTree\Formatting.cs (1)
39
get { return
ConstantValueOpt
?.IsNull == true ? MessageID.IDS_NULL.Localize() : base.Display; }
FlowAnalysis\NullableWalker.cs (1)
10675
SetResultType(node, TypeWithState.Create(node.Type, node.Type?.CanContainNull() != false && node.
ConstantValueOpt
?.IsNull == true ? NullableFlowState.MaybeDefault : NullableFlowState.NotNull));
Generated\BoundNodes.xml.Generated.cs (4)
4208
if (constantValueOpt != this.
ConstantValueOpt
|| !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
11049
return node.Update(node.
ConstantValueOpt
, type);
13012
BoundLiteral updatedNode = node.Update(node.
ConstantValueOpt
, infoAndType.Type);
15384
new TreeDumperNode("constantValueOpt", node.
ConstantValueOpt
, null),
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
488
return Constant(literal.Update(literal.
ConstantValueOpt
, promotedType));
Lowering\LocalRewriter\LocalRewriter_Literal.cs (2)
19
Debug.Assert(node.
ConstantValueOpt
is { });
20
return MakeLiteral(node.Syntax, node.
ConstantValueOpt
, node.Type, oldNodeOpt: node);
Lowering\LocalRewriter\LocalRewriter_StringInterpolation.cs (2)
230
Debug.Assert(fillin.Format.
ConstantValueOpt
is { });
231
stringBuilder.Append(':').Append(fillin.Format.
ConstantValueOpt
.StringValue);
Operations\CSharpOperationFactory.cs (1)
675
ConstantValue? constantValue = boundLiteral.
ConstantValueOpt
;