Avoid keeping track of two lists of nodes during parsing.