예제 #1
0
        /// <summary>
        /// Asserts if the type of the token is as expected
        /// </summary>
        /// <param name="expectedType">The expected operand type</param>
        /// <param name="operandToken">The operand token containing the actual type value</param>
        private static void AssertTypeOfOperand(Operand expectedType, IOperandToken operandToken)
        {
            if (operandToken == null)
            {
                throw new Exception("no operand token was provided");
            }

            Assert.Equal(expectedType, operandToken.Type);
        }
예제 #2
0
 public int CompareTo(IOperandToken other)
 {
     throw new NotImplementedException();
 }
예제 #3
0
 public int CompareTo(IOperandToken other)
 {
     throw new NotImplementedException();
 }