Throw exception in visitor on unknown node type