[eslint-parser] Represent static using a Keyword token#13751
[eslint-parser] Represent static using a Keyword token#13751nicolo-ribaudo merged 1 commit intobabel:mainfrom
static using a Keyword token#13751Conversation
|
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/48687/ |
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 1180b02:
|
JLHwung
left a comment
There was a problem hiding this comment.
Related: I am refactoring token storage. The goal is to use number ( const enum ) as token and then we can internally categorize other keyword-like names (await, async, type, from, get, set and static) as unique keyword token type. Of course the exposed tokens will still maintain Babel 7 compatibility but we could change the tokens layout in Babel 8, which should simplify the token conversion here.
This matches ESLint's behavior - https://astexplorer.net/#/gist/f9cf0a5789035bf20a616f3d2ef06699/latest