Binder\Binder_Operators.cs (11)
1955var valueLeft = left.ConstantValueOpt;
1956var valueRight = right.ConstantValueOpt;
2100ConstantValue? leftConstant = leftConv.Operand.ConstantValueOpt;
2101ConstantValue? rightConstant = rightConv.Operand.ConstantValueOpt;
3252var value = operand.ConstantValueOpt;
3683if (operand.ConstantValueOpt == ConstantValue.Null ||
3725ReportIsOperatorDiagnostics(node, diagnostics, operandType, targetType, conversion.Kind, operand.ConstantValueOpt);
4221bool hasErrors = ReportAsOperatorConversionDiagnostics(node, diagnostics, this.Compilation, operandType, targetType, conversion.Kind, operand.ConstantValueOpt);
4798ConstantValue trueValue = trueExpr.ConstantValueOpt;
4804ConstantValue falseValue = falseExpr.ConstantValueOpt;
4810ConstantValue conditionValue = condition.ConstantValueOpt;
Operations\CSharpOperationFactory.cs (9)
307ConstantValue? constantValue = (boundNode as BoundExpression)?.ConstantValueOpt;
445ConstantValue? constantValue = boundCall.ConstantValueOpt;
516var objectCreationOperation = new ObjectCreationOperation(boundAttribute.Constructor.GetPublicSymbol(), initializer, DeriveArguments(boundAttribute), _semanticModel, boundAttribute.Syntax, boundAttribute.GetPublicTypeSymbol(), boundAttribute.ConstantValueOpt, isImplicit: true);
930ConstantValue? constantValue = boundCollectionElementInitializer.ConstantValueOpt;
1296ConstantValue? constantValue = ((BoundExpression)boundDefaultExpression).ConstantValueOpt;
1339ConstantValue? constantValue = boundAssignmentOperator.ConstantValueOpt;
1492ConstantValue? constantValue = boundBinaryOperator.ConstantValueOpt;
1591ConstantValue? constantValue = boundNullCoalescingOperator.ConstantValueOpt;
2489return new InvalidOperation(ImmutableArray<IOperation>.Empty, _semanticModel, syntax, type, placeholder.ConstantValueOpt, isImplicit);