-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
fix(typescript-estree): correct issues in AST definition #3083
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Thanks for the PR, @armano2! typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community. The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately. Thanks again! 🙏 Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently on https://opencollective.com/typescript-eslint. As a thank you, your profile/company logo will be added to our main README which receives thousands of unique visitors per day. |
1121cd7
to
34b9d6a
Compare
Codecov Report
@@ Coverage Diff @@
## master #3083 +/- ##
=======================================
Coverage 92.83% 92.83%
=======================================
Files 314 314
Lines 10671 10672 +1
Branches 3027 3027
=======================================
+ Hits 9906 9907 +1
Misses 348 348
Partials 417 417
Flags with carried forward coverage won't be shown. Click here to find out more.
|
} | ||
|
||
export interface TSModuleDeclaration extends BaseNode { | ||
type: AST_NODE_TYPES.TSModuleDeclaration; | ||
id: Identifier | Literal; | ||
body?: TSModuleBlock; | ||
body?: TSModuleBlock | TSModuleDeclaration; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we really need to fix this - #2573
Those changes has been extracted from #3078
fixes #2912
ProgramStatement
andStatement
nodes can contain same set of nodesLeftHandSideExpression
can be aAwaitExpression
TryStatement
finalizer can benull
RegExpLiteral
value can benull
if regexp is invalid or unsupported by envgood example in this case can be any proposal that has not been accepted yet
eg. https://github.com/tc39/proposal-regexp-match-indices
JSXOpeningElement
attributes can be aJSXSpreadAttribute
TSModuleDeclaration
body can beTSModuleDeclaration