Binder\Binder_Operators.cs (11)
1810var valueLeft = left.ConstantValueOpt;
1811var valueRight = right.ConstantValueOpt;
1955ConstantValue? leftConstant = leftConv.Operand.ConstantValueOpt;
1956ConstantValue? rightConstant = rightConv.Operand.ConstantValueOpt;
2862var value = operand.ConstantValueOpt;
3293if (operand.ConstantValueOpt == ConstantValue.Null ||
3335ReportIsOperatorDiagnostics(node, diagnostics, operandType, targetType, conversion.Kind, operand.ConstantValueOpt);
3831bool hasErrors = ReportAsOperatorConversionDiagnostics(node, diagnostics, this.Compilation, operandType, targetType, conversion.Kind, operand.ConstantValueOpt);
4408ConstantValue trueValue = trueExpr.ConstantValueOpt;
4414ConstantValue falseValue = falseExpr.ConstantValueOpt;
4420ConstantValue 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);