-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Not properly generating JSDoc documentation. #5798
Comments
Would be super awesome if you could get that working, but it's probably going to be somewhat challenging because of variable hoisting. But a first pass with no hoisting support would already be great. Ref #4516 |
@mattd3v Definitely a bug - we need to add a test case for this situation.
Correct, this situation is still not handled. Here's documentation for AST node for Named exports should be parsed and then. based on collected specifiers, proper declarations from module body should be extracted. |
I'm getting much more comfortable with the However, @bartlomieju I noticed the CLI automatically calls /**
* Print a custom greeting
* by providing a name.
*
* @param {string} name
*/
export function greet(name) {
console.log(`Hello, ${name}`);
} Running the $ deno doc greet.js
function greet(name)
Print a custom greeting by providing a name. |
@mattd3v I'm not sure, I think that was added by @lucacasonato to save some space in terminal (to replicate how |
@bartlomieju can this be closed, or are there any other changes you know need to be made? |
A few things seem off about the documentation generator.
This example code was run with Deno v1.0.2 on MacOS Catalina:
The documentation text for the
isTrue
function actually contains the file header comment.Also, when using
export { isTrue, isFalse }
the doc command yields no output, as if the exports weren't even there.I have spent some time now familiarizing myself with the
cli/doc
source code, and can help out here. However, pointers from @bartlomieju and @lucacasonato would be much appreciated!The text was updated successfully, but these errors were encountered: