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
Throw errors for invalid TSEmptyBodyFunctionExpression
node
#12982
Conversation
throwErrorForInvalidDecorator(tsNode, esTreeNode, tsNodeToESTreeNodeMap); | ||
throwErrorForInvalidAbstractProperty(tsNode, esTreeNode); | ||
}); | ||
} | ||
|
||
module.exports = { throwErrorForInvalidNodes }; | ||
module.exports = { throwErrorForInvalidNodes, throwSyntaxError }; |
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.
Can we move throwSyntaxError
to other file like a parse/postprocess/throw-syntax-error.js
?
throwErrorForInvalidDecorator(tsNode, esTreeNode, tsNodeToESTreeNodeMap); | ||
throwErrorForInvalidAbstractProperty(tsNode, esTreeNode); | ||
}); | ||
} | ||
|
||
module.exports = { throwErrorForInvalidNodes }; | ||
module.exports = { throwErrorForInvalidNodes, throwSyntaxError }; |
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.
Can we move throwSyntaxError
to other file like a parse/postprocess/throw-syntax-error.js
?
Description
Fixes #12963
Checklist
docs/
directory).changelog_unreleased/*/XXXX.md
file followingchangelog_unreleased/TEMPLATE.md
.✨Try the playground for this PR✨