diff options
author | Valentin Anger <syrupthinker@gryphno.de> | 2020-07-12 14:16:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-12 14:16:33 +0200 |
commit | 3374c73fba3a96df22d0c04e6c17078ca8cce45b (patch) | |
tree | 91d996554a2e276724a86ecb3bff19ea5411238b /cli/doc/module.rs | |
parent | 871f9255e37b4d2e63439c84da8e9bed6b388034 (diff) |
feat(doc): Improve terminal printer (#6594)
- Add more support for generics
- Add the --private flag - displays documentation for
not exported and private nodes
- Display more attributes like abstract, static and readonly
- Display type aliases
- Refactor module to use the Display trait
- Use a bit more color
Diffstat (limited to 'cli/doc/module.rs')
-rw-r--r-- | cli/doc/module.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/doc/module.rs b/cli/doc/module.rs index 2de9c7ca8..79b1b92be 100644 --- a/cli/doc/module.rs +++ b/cli/doc/module.rs @@ -35,7 +35,8 @@ pub fn get_doc_node_for_export_decl( } } Decl::Fn(fn_decl) => { - let (name, function_def) = super::function::get_doc_for_fn_decl(fn_decl); + let (name, function_def) = + super::function::get_doc_for_fn_decl(doc_parser, fn_decl); DocNode { kind: DocNodeKind::Function, name, |