This translation code doesn't belong in the `Parser` class. The library currently expects to be able build an AST of the LESS file, and then print it out as LESS again if the `translation` mode is disabled. You should move this translation work to a new visitor, similar to the `FlattenNestedRuleSets` visitor that already exists. You may even be able to update that one, as the work you need to do is similar.