void PushValueFromToken() { TokenWithValue t = CurrentNode.getToken() as TokenWithValue; Debug.Assert(t != null, "Can't convert current node to TokenWithValue: " + CurrentNode); PushValue(t.getValue()); }
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()); }