We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I noticed that ReturnStatement nodes doesn’t have leadingComments and trailingComments attached in some cases.
ReturnStatement
leadingComments
trailingComments
The following code example fails and doen’t have leadingComments or trailingComments:
function a() { /* before */ return; /* after */ }
The following code examples work:
Without ReturnStatement:
function a() { /* before */ b(); /* after */ }
Only one leading comment:
function a() { /* before */ return; }
Only one trailing comment:
function a() { return; /* after */ }
Same problem with the debugger statement.
debugger
Esprima bug: https://code.google.com/p/esprima/issues/detail?id=609
The text was updated successfully, but these errors were encountered:
Fix: Ensure comments are attached for return (fixes #2)
f8db2b0
8f93f0e
Merge pull request #18 from eslint/issue2
620579d
No branches or pull requests
I noticed that
ReturnStatement
nodes doesn’t haveleadingComments
andtrailingComments
attached in some cases.The following code example fails and doen’t have
leadingComments
ortrailingComments
:The following code examples work:
Without
ReturnStatement
:Only one leading comment:
Only one trailing comment:
Same problem with the
debugger
statement.Esprima bug: https://code.google.com/p/esprima/issues/detail?id=609
The text was updated successfully, but these errors were encountered: