'Match \'.\' in tree parser has special meaning.  Skip node or
entire tree if node has children.  If children, scan until
corresponding UP node.'

def matchAny(self, ignore):

    self._state.errorRecovery = False
    look = self.input.LT(1)
    if (self.input.getTreeAdaptor().getChildCount(look) == 0):
        self.input.consume()
        return
    level = 0
    tokenType = self.input.getTreeAdaptor().getType(look)
    while ((tokenType != EOF) and (not ((tokenType == UP) and (level == 0)))):
        self.input.consume()
        look = self.input.LT(1)
        tokenType = self.input.getTreeAdaptor().getType(look)
        if (tokenType == DOWN):
            level += 1
        elif (tokenType == UP):
            level -= 1
    self.input.consume()
