Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

TS 2.6.2: Error: Unknown AST_NODE_TYPE: "TSFirstContextualKeyword" #407

Closed
duailibe opened this issue Nov 29, 2017 · 0 comments
Closed

TS 2.6.2: Error: Unknown AST_NODE_TYPE: "TSFirstContextualKeyword" #407

duailibe opened this issue Nov 29, 2017 · 0 comments
Labels

Comments

@duailibe
Copy link
Contributor

What version of TypeScript are you using?
2.6.2

What version of typescript-eslint-parser are you using?
master (9.0.0)

What code were you trying to parse?

export private public protected static readonly abstract async enum X {}

What did you expect to happen?
AST should have a TSAbstractKeyword node in modifiers array

What happened?
AST does not have a TSAbstractKeyword node and errors with Error: Unknown AST_NODE_TYPE: "TSFirstContextualKeyword".

That's related to the lines in: TS source

I can get a PR for this if you think we should fix this here.

Thanks!

@duailibe duailibe changed the title TS 2.6.2 changed TSAbstractKeyword to TSFirstContextualKeyword TS 2.6.2: Error: Unknown AST_NODE_TYPE: "TSFirstContextualKeyword" Nov 29, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant