Binder\Binder_Operators.cs (11)
2776var valueLeft = left.ConstantValueOpt;
2777var valueRight = right.ConstantValueOpt;
2921ConstantValue? leftConstant = leftConv.Operand.ConstantValueOpt;
2922ConstantValue? rightConstant = rightConv.Operand.ConstantValueOpt;
4485var value = operand.ConstantValueOpt;
4968if (operand.ConstantValueOpt == ConstantValue.Null ||
5009ReportIsOperatorDiagnostics(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;
1371ConstantValue? constantValue = ((BoundExpression)boundDefaultExpression).ConstantValueOpt;
1414ConstantValue? constantValue = boundAssignmentOperator.ConstantValueOpt;
1567ConstantValue? constantValue = boundBinaryOperator.ConstantValueOpt;
1657ConstantValue? constantValue = boundNullCoalescingOperator.ConstantValueOpt;
2555return new InvalidOperation(ImmutableArray<IOperation>.Empty, _semanticModel, syntax, type, placeholder.ConstantValueOpt, isImplicit);