Esempio n. 1
0
 /// <inheritdoc />
 public override void VisitAnyCompoundValue(AnyCompoundValue value)
 {
     // Skip <see cref="AnyValue" />. The type is super-type of <see cref="AnyCompoundValue" />,
     // but it is concrete type and its visit method can contain code that is solving the same
     // problem as the previous visit methods. In this case, use additional method with shared code.
     VisitValue(value);
 }
Esempio n. 2
0
        /// <inheritdoc />
        public override void VisitAnyCompoundValue(AnyCompoundValue value)
        {
            isConcrete = false;

            integerIndex = null;
            stringIndex  = null;
            isNotConvertibleToInteger = true;
            isCompoundValue           = true;
        }
Esempio n. 3
0
        /// <inheritdoc />
        public override void VisitAnyCompoundValue(AnyCompoundValue value)
        {
            if (PerformCommonAnyOperandOperations())
            {
                return;
            }

            base.VisitAnyCompoundValue(value);
        }
Esempio n. 4
0
        /// <inheritdoc />
        public override void VisitAnyCompoundValue(AnyCompoundValue value)
        {
            result = Comparison.AbstractCompare(OutSet, operation);
            if (result != null)
            {
                // Ommitted warning message that object cannot be converted to integer
                return;
            }

            base.VisitAnyCompoundValue(value);
        }
Esempio n. 5
0
        /// <inheritdoc />
        public override void VisitAnyCompoundValue(AnyCompoundValue value)
        {
            if (operation == Operations.BitNegation)
            {
                // TODO: This must be fatal error
                SetWarning("Unsupported operand types: Bit negation of compound value");
                result = OutSet.AnyValue;
                return;
            }

            // AnyValue has its own implementation, thou must be skipped
            base.VisitAnyCompoundValue(value);
        }
Esempio n. 6
0
        /// <inheritdoc />
        public override void VisitAnyCompoundValue(AnyCompoundValue value)
        {
            switch (operation)
            {
            case Operations.Identical:
                result = OutSet.CreateBool(false);
                break;

            case Operations.NotIdentical:
                result = OutSet.CreateBool(true);
                break;

            default:
                base.VisitAnyCompoundValue(value);
                break;
            }
        }
Esempio n. 7
0
        /// <inheritdoc />
        public override void VisitAnyCompoundValue(AnyCompoundValue value)
        {
            switch (operation)
            {
            case Operations.Identical:
                result = OutSet.CreateBool(false);
                break;

            case Operations.NotIdentical:
                result = OutSet.CreateBool(true);
                break;

            default:
                result = Comparison.RightAlwaysGreater(OutSet, operation);
                if (result != null)
                {
                    break;
                }

                base.VisitAnyCompoundValue(value);
                break;
            }
        }
Esempio n. 8
0
 /// <inheritdoc />
 public override void VisitAnyCompoundValue(AnyCompoundValue value)
 {
     result = value;
 }
Esempio n. 9
0
 /// <inheritdoc />
 public override void VisitAnyCompoundValue(AnyCompoundValue value)
 {
     preservedValues.Add(value);
 }