Binder\Binder_Operators.cs (11)
1774var valueLeft = left.ConstantValueOpt;
1775var valueRight = right.ConstantValueOpt;
1919ConstantValue? leftConstant = leftConv.Operand.ConstantValueOpt;
1920ConstantValue? rightConstant = rightConv.Operand.ConstantValueOpt;
2814var value = operand.ConstantValueOpt;
3245if (operand.ConstantValueOpt == ConstantValue.Null ||
3287ReportIsOperatorDiagnostics(node, diagnostics, operandType, targetType, conversion.Kind, operand.ConstantValueOpt);
3754bool hasErrors = ReportAsOperatorConversionDiagnostics(node, diagnostics, this.Compilation, operandType, targetType, conversion.Kind, operand.ConstantValueOpt);
4331ConstantValue trueValue = trueExpr.ConstantValueOpt;
4337ConstantValue falseValue = falseExpr.ConstantValueOpt;
4343ConstantValue conditionValue = condition.ConstantValueOpt;
Operations\CSharpOperationFactory.cs (9)
304ConstantValue? constantValue = (boundNode as BoundExpression)?.ConstantValueOpt;
442ConstantValue? constantValue = boundCall.ConstantValueOpt;
513var objectCreationOperation = new ObjectCreationOperation(boundAttribute.Constructor.GetPublicSymbol(), initializer, DeriveArguments(boundAttribute), _semanticModel, boundAttribute.Syntax, boundAttribute.GetPublicTypeSymbol(), boundAttribute.ConstantValueOpt, isImplicit: true);
924ConstantValue? constantValue = boundCollectionElementInitializer.ConstantValueOpt;
1229ConstantValue? constantValue = ((BoundExpression)boundDefaultExpression).ConstantValueOpt;
1272ConstantValue? constantValue = boundAssignmentOperator.ConstantValueOpt;
1425ConstantValue? constantValue = boundBinaryOperator.ConstantValueOpt;
1524ConstantValue? constantValue = boundNullCoalescingOperator.ConstantValueOpt;
2372return new InvalidOperation(ImmutableArray<IOperation>.Empty, _semanticModel, syntax, type, placeholder.ConstantValueOpt, isImplicit);