Binder\Binder_Operators.cs (11)
2776var valueLeft = left.ConstantValueOpt;
2777var valueRight = right.ConstantValueOpt;
2921ConstantValue? leftConstant = leftConv.Operand.ConstantValueOpt;
2922ConstantValue? rightConstant = rightConv.Operand.ConstantValueOpt;
4488var value = operand.ConstantValueOpt;
4898if (operand.ConstantValueOpt == ConstantValue.Null ||
4939ReportIsOperatorDiagnostics(node, diagnostics, inputType, targetType, conversion.Kind, operand.ConstantValueOpt);
5506bool hasErrors = ReportAsOperatorConversionDiagnostics(node, diagnostics, this.Compilation, operandType, targetType, conversion.Kind, operand.ConstantValueOpt);
6079ConstantValue trueValue = trueExpr.ConstantValueOpt;
6085ConstantValue falseValue = falseExpr.ConstantValueOpt;
6091ConstantValue 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;
1390ConstantValue? constantValue = ((BoundExpression)boundDefaultExpression).ConstantValueOpt;
1433ConstantValue? constantValue = boundAssignmentOperator.ConstantValueOpt;
1586ConstantValue? constantValue = boundBinaryOperator.ConstantValueOpt;
1676ConstantValue? constantValue = boundNullCoalescingOperator.ConstantValueOpt;
2574return new InvalidOperation(ImmutableArray<IOperation>.Empty, _semanticModel, syntax, type, placeholder.ConstantValueOpt, isImplicit);