Binder\Binder_Operators.cs (11)
2785var valueLeft = left.ConstantValueOpt;
2786var valueRight = right.ConstantValueOpt;
2930ConstantValue? leftConstant = leftConv.Operand.ConstantValueOpt;
2931ConstantValue? rightConstant = rightConv.Operand.ConstantValueOpt;
4461var value = operand.ConstantValueOpt;
4892if (operand.ConstantValueOpt == ConstantValue.Null ||
4934ReportIsOperatorDiagnostics(node, diagnostics, operandType, targetType, conversion.Kind, operand.ConstantValueOpt);
5430bool hasErrors = ReportAsOperatorConversionDiagnostics(node, diagnostics, this.Compilation, operandType, targetType, conversion.Kind, operand.ConstantValueOpt);
6003ConstantValue trueValue = trueExpr.ConstantValueOpt;
6009ConstantValue falseValue = falseExpr.ConstantValueOpt;
6015ConstantValue conditionValue = condition.ConstantValueOpt;
Operations\CSharpOperationFactory.cs (9)
306ConstantValue? constantValue = (boundNode as BoundExpression)?.ConstantValueOpt;
452ConstantValue? constantValue = boundCall.ConstantValueOpt;
523var objectCreationOperation = new ObjectCreationOperation(boundAttribute.Constructor.GetPublicSymbol(), initializer, DeriveArguments(boundAttribute), _semanticModel, boundAttribute.Syntax, boundAttribute.GetPublicTypeSymbol(), boundAttribute.ConstantValueOpt, isImplicit: true);
945ConstantValue? constantValue = boundCollectionElementInitializer.ConstantValueOpt;
1346ConstantValue? constantValue = ((BoundExpression)boundDefaultExpression).ConstantValueOpt;
1389ConstantValue? constantValue = boundAssignmentOperator.ConstantValueOpt;
1542ConstantValue? constantValue = boundBinaryOperator.ConstantValueOpt;
1632ConstantValue? constantValue = boundNullCoalescingOperator.ConstantValueOpt;
2530return new InvalidOperation(ImmutableArray<IOperation>.Empty, _semanticModel, syntax, type, placeholder.ConstantValueOpt, isImplicit);