Beispiel #1
0
        /// <summary>
        /// Validates number types. If not valid, adds an error.
        /// </summary>
        /// <param name="errorList">The list of errors found.</param>
        public void ValidateNumberType(IErrorList errorList)
        {
            foreach (IConditional Conditional in ConditionalList)
            {
                Conditional.ValidateNumberType(errorList);
            }

            if (ElseInstructions.IsAssigned)
            {
                ((IScope)ElseInstructions.Item).ValidateNumberType(errorList);
            }
        }
Beispiel #2
0
        /// <summary>
        /// Check number types.
        /// </summary>
        /// <param name="isChanged">True upon return if a number type was changed.</param>
        public void CheckNumberType(ref bool isChanged)
        {
            foreach (IConditional Conditional in ConditionalList)
            {
                Conditional.CheckNumberType(ref isChanged);
            }

            if (ElseInstructions.IsAssigned)
            {
                ((IScope)ElseInstructions.Item).CheckNumberType(ref isChanged);
            }
        }