getValue() public method

public getValue ( ) : object
return object
Example #1
0
        void PushValueFromToken()
        {
            TokenWithValue t = CurrentNode.getToken() as TokenWithValue;

            Debug.Assert(t != null, "Can't convert current node to TokenWithValue: " + CurrentNode);
            PushValue(t.getValue());
        }
Example #2
0
        void PushValueFromToken()
        {
            /*#if DEBUG
             * if (CurrentNode == null) {
             *      throw new Exception("Current node is null");
             * }
             #endif*/

            TokenWithValue t = CurrentNode.getToken() as TokenWithValue;

            if (t == null)
            {
                throw new Exception("Can't convert current node to TokenWithValue: " + CurrentNode + ", it's of type " + CurrentNode.getTokenType());
            }
            PushValue(t.getValue());
        }