Binder\Binder_Operators.cs (11)
1805var valueLeft = left.ConstantValueOpt;
1806var valueRight = right.ConstantValueOpt;
1950ConstantValue? leftConstant = leftConv.Operand.ConstantValueOpt;
1951ConstantValue? rightConstant = rightConv.Operand.ConstantValueOpt;
2857var value = operand.ConstantValueOpt;
3288if (operand.ConstantValueOpt == ConstantValue.Null ||
3330ReportIsOperatorDiagnostics(node, diagnostics, operandType, targetType, conversion.Kind, operand.ConstantValueOpt);
3826bool hasErrors = ReportAsOperatorConversionDiagnostics(node, diagnostics, this.Compilation, operandType, targetType, conversion.Kind, operand.ConstantValueOpt);
4403ConstantValue trueValue = trueExpr.ConstantValueOpt;
4409ConstantValue falseValue = falseExpr.ConstantValueOpt;
4415ConstantValue 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);