Binder\Binder_Operators.cs (11)
2786var valueLeft = left.ConstantValueOpt;
2787var valueRight = right.ConstantValueOpt;
2931ConstantValue? leftConstant = leftConv.Operand.ConstantValueOpt;
2932ConstantValue? rightConstant = rightConv.Operand.ConstantValueOpt;
4462var value = operand.ConstantValueOpt;
4893if (operand.ConstantValueOpt == ConstantValue.Null ||
4935ReportIsOperatorDiagnostics(node, diagnostics, operandType, targetType, conversion.Kind, operand.ConstantValueOpt);
5431bool hasErrors = ReportAsOperatorConversionDiagnostics(node, diagnostics, this.Compilation, operandType, targetType, conversion.Kind, operand.ConstantValueOpt);
6006ConstantValue trueValue = trueExpr.ConstantValueOpt;
6012ConstantValue falseValue = falseExpr.ConstantValueOpt;
6018ConstantValue 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;
1582ConstantValue? constantValue = boundNullCoalescingOperator.ConstantValueOpt;
2480return new InvalidOperation(ImmutableArray<IOperation>.Empty, _semanticModel, syntax, type, placeholder.ConstantValueOpt, isImplicit);