This repository has been archived by the owner on Dec 4, 2018. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 71
Reported line numbers are sometimes incorrect #138
Closed
TEHEK opened this issue
Nov 22, 2015
· 4 comments
· May be fixed by electrode-io/electrode-docgen#7 or yashwanth-t/node#2
Closed
Reported line numbers are sometimes incorrect #138
TEHEK opened this issue
Nov 22, 2015
· 4 comments
· May be fixed by electrode-io/electrode-docgen#7 or yashwanth-t/node#2
Comments
A little experiment:
Prints:
I suspect that |
The line number should be 5 because you have an initial newline right after the back tick. So "@constructor" is actually on line 5. That said, "@param" should be on line 6, so this looks like parameter parsing is the root problem. |
Yes, there's a new line, but that shouldn't count as it is outside the jsdoc comment. |
Ah, good point! |
TEHEK
pushed a commit
to TEHEK/doctrine
that referenced
this issue
Nov 24, 2015
…ed when parsing tags resulting in sometimes incorrect reported lineNumber. (fixes eslint#138)
TEHEK
pushed a commit
to TEHEK/doctrine
that referenced
this issue
Nov 25, 2015
Fixing issue where input was not consumed via advance() but was skipped when parsing tags resulting in sometimes incorrect reported lineNumber.
TEHEK
pushed a commit
to TEHEK/doctrine
that referenced
this issue
Nov 25, 2015
Fixing issue where input was not consumed via advance() but was skipped when parsing tags resulting in sometimes incorrect reported lineNumber.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Constructor's lineNumber is 5, but should be 4.
Param's lineNumber is 7. Should be 5
Also, notice the param's description.
The text was updated successfully, but these errors were encountered: