'Helper for visiting compound statements.
Python compound statements serve as containers for other statements. Thus,
when we encounter a new compound statement we start a new unwrapped line.
Arguments:
node: the node to visit.
substatement_names: set of node names. A compound statement will be
recognized as a NAME node with a name in this set.'

def _VisitCompoundStatement(self, node, substatement_names):

    for child in node.children:
        if ((child.type == grammar_token.NAME) and (child.value in substatement_names)):
            self._StartNewLine()
        self.Visit(child)
