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
[javascript] CPD: Added support for decorator notation #4673
Conversation
This is to resolve the following error on a typescript file: [main] ERROR net.sourceforge.pmd.cli - Error while tokenizing: Lexical error in file '.\TableList.js' at line 67, column 1: "@" (64), after : "" (in lexical state DEFAULT)
I'll add a unit test too. |
Generated by 🚫 Danger |
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.
Thanks!
I'll change the grammar myself before merging.
In case, someone wonders: Decorators are an experimental feature of ecmascript not yet part of the standard, see https://github.com/tc39/proposal-decorators and tc39/ecma262#2417
See https://arai-a.github.io/ecma262-compare/snapshot.html?pr=2417#sec-decorators for the proposed standard document.
Describe the PR
This is to resolve the following error on a javascript file:
[main] ERROR net.sourceforge.pmd.cli - Error while tokenizing: Lexical error in file '.\TableList.js' at
line 67, column 1: "@" (64), after : "" (in lexical state DEFAULT)
Ready?
./mvnw clean verify
passes (checked automatically by github actions)