Binder\Binder_Operators.cs (11)
2776var valueLeft = left.ConstantValueOpt;
2777var valueRight = right.ConstantValueOpt;
2921ConstantValue? leftConstant = leftConv.Operand.ConstantValueOpt;
2922ConstantValue? rightConstant = rightConv.Operand.ConstantValueOpt;
4460var value = operand.ConstantValueOpt;
4941if (operand.ConstantValueOpt == ConstantValue.Null ||
4982ReportIsOperatorDiagnostics(node, diagnostics, inputType, targetType, conversion.Kind, operand.ConstantValueOpt);
5479bool hasErrors = ReportAsOperatorConversionDiagnostics(node, diagnostics, this.Compilation, operandType, targetType, conversion.Kind, operand.ConstantValueOpt);
6052ConstantValue trueValue = trueExpr.ConstantValueOpt;
6058ConstantValue falseValue = falseExpr.ConstantValueOpt;
6064ConstantValue 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);