You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm reporting this bug specifically due to this issue causing a compatibility issue with sphinx_js documentation generator, and after reviewing what's going on, this does not seems like correct behavior.
The "Constructor" node should include the same "sources" node as a "Function" node does, being that it's a specialized type of function and logically has a source file location. For example, a function node appears as; I would expect the Constructor to have the same source info:
Run typedoc on any file containing a class with a constructor. This problem seems to be universal and I have never seen a constructor node generated with the correct file/line information. For example:
Thanks for the bug report! Yeah... that broke in 0.20. I thought constructorNode.getChildren().find(ts.isConstructorDeclaration) would get the constructor declaration, but that apparently wasn't right.
Search terms
json, sources, constructor
Expected Behavior
I'm reporting this bug specifically due to this issue causing a compatibility issue with sphinx_js documentation generator, and after reviewing what's going on, this does not seems like correct behavior.
The "Constructor" node should include the same "sources" node as a "Function" node does, being that it's a specialized type of function and logically has a source file location. For example, a function node appears as; I would expect the Constructor to have the same source info:
Corollary
The HTML documentation generated for constructors displays an incorrect line number (while functions have correct line numbers).
Actual Behavior
Steps to reproduce the bug
Run typedoc on any file containing a class with a constructor. This problem seems to be universal and I have never seen a constructor node generated with the correct file/line information. For example:
src/test/test.ts
tsconfig.json
Environment
The text was updated successfully, but these errors were encountered: