-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[promise-function-async] Error line offset when using decorators #751
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
Comments
This is working as expected. As far as the AST is concerned (and typescript), the decorator is considered to be owned by the method, and as such it is included within its bounds. AST ExampleNote in the following example that the method definition has the
|
Hello! Behaviour, when Node range include decorators range - default Typescript AST behaviour, is inconsistent with babel-parser behaviour, for example you can see this issue babel/babel#6676 Maybe when converting we need to reset ranges? |
please file a new issue instead of commenting on an old, closed issue. |
Uh oh!
There was an error while loading. Please reload this page.
Repro
Expected Result
Actual Result
Additional Info
Repository for reproduction: https://github.com/RecuencoJones/typescript-eslint-issue-751
Versions
@typescript-eslint/eslint-plugin
1.11.0
@typescript-eslint/parser
1.11.0
TypeScript
3.4.3
ESLint
5.16.0
node
10.15.0
npm
6.7.0
The text was updated successfully, but these errors were encountered: