Flow & TypeScript should not have overlapping node types
jamiebuilds opened this issue · comments
Jamie Kyle commented
Right now both the flow plugin and the typescript plugin create these nodes:
- TypeParameterInstantiation
- TypeParameterDeclaration
- TypeParameter
And there is no way to tell the difference between them other than looking up the parserOpts
which is unreliable since there are places you can't access the parserOpts
.
It sucks that Flow node types aren't prefixed, but TypeScript ones should definitely all be.
Could we prefix these all with TS*
?
Jamie Kyle commented
I'm going to close this and move to #710