Binder\Binder_Operators.cs (11)
2001var valueLeft = left.ConstantValueOpt;
2002var valueRight = right.ConstantValueOpt;
2146ConstantValue? leftConstant = leftConv.Operand.ConstantValueOpt;
2147ConstantValue? rightConstant = rightConv.Operand.ConstantValueOpt;
3298var value = operand.ConstantValueOpt;
3729if (operand.ConstantValueOpt == ConstantValue.Null ||
3771ReportIsOperatorDiagnostics(node, diagnostics, operandType, targetType, conversion.Kind, operand.ConstantValueOpt);
4267bool hasErrors = ReportAsOperatorConversionDiagnostics(node, diagnostics, this.Compilation, operandType, targetType, conversion.Kind, operand.ConstantValueOpt);
4844ConstantValue trueValue = trueExpr.ConstantValueOpt;
4850ConstantValue falseValue = falseExpr.ConstantValueOpt;
4856ConstantValue 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);