WIP: hold `local_names` during conversion to AST