Add namespaces to AST in the token handler