Do not use lookahead when parsing declare module or declare module.exports in flow (#9985)
Do not use lookahead when parsing declare module or declare module.exports in flow (#9985)

* Do not use lookahead when parsing declare module or declare module.exports in flow

* Improve code

hzoo/babel,hzoo/babel,jridgewell/babel,kaicataldo/babel,kaicataldo/babel,hzoo/babel,babel/babel,babel/babel,kaicataldo/babel,babel/babel,kaicataldo/babel,jridgewell/babel,jridgewell/babel,babel/babel,jridgewell/babel,hzoo/babel