refactor(AstParser): make AstParser private, no more injectable

follow up for #788

Closes #818