Binder\Binder_Operators.cs (11)
2653var valueLeft = left.ConstantValueOpt;
2654var valueRight = right.ConstantValueOpt;
2798ConstantValue? leftConstant = leftConv.Operand.ConstantValueOpt;
2799ConstantValue? rightConstant = rightConv.Operand.ConstantValueOpt;
4284var value = operand.ConstantValueOpt;
4715if (operand.ConstantValueOpt == ConstantValue.Null ||
4757ReportIsOperatorDiagnostics(node, diagnostics, operandType, targetType, conversion.Kind, operand.ConstantValueOpt);
5253bool hasErrors = ReportAsOperatorConversionDiagnostics(node, diagnostics, this.Compilation, operandType, targetType, conversion.Kind, operand.ConstantValueOpt);
5830ConstantValue trueValue = trueExpr.ConstantValueOpt;
5836ConstantValue falseValue = falseExpr.ConstantValueOpt;
5842ConstantValue 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);