summaryrefslogtreecommitdiff
path: root/cli/doc/parser.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-04-08 17:03:42 +0200
committerGitHub <noreply@github.com>2020-04-08 17:03:42 +0200
commit491b8e1cea76753397bdeb0aeb1598bc78d22c8f (patch)
tree2eadbbcd2efe744c222c0d1b161a0131e498848b /cli/doc/parser.rs
parentfe17496831a0b3dcd252d097c82df529d665aad5 (diff)
feat(doc): handle function params and type params (#4672)
Diffstat (limited to 'cli/doc/parser.rs')
-rw-r--r--cli/doc/parser.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/cli/doc/parser.rs b/cli/doc/parser.rs
index 7c67f8d09..4b37c5fae 100644
--- a/cli/doc/parser.rs
+++ b/cli/doc/parser.rs
@@ -347,7 +347,7 @@ impl DocParser {
return None;
}
let (name, function_def) =
- super::function::get_doc_for_fn_decl(self, fn_decl);
+ super::function::get_doc_for_fn_decl(fn_decl);
let (js_doc, location) = self.details_for_span(fn_decl.function.span);
Some(DocNode {
kind: DocNodeKind::Function,
@@ -367,8 +367,7 @@ impl DocParser {
if !var_decl.declare {
return None;
}
- let (name, var_def) =
- super::variable::get_doc_for_var_decl(self, var_decl);
+ let (name, var_def) = super::variable::get_doc_for_var_decl(var_decl);
let (js_doc, location) = self.details_for_span(var_decl.span);
Some(DocNode {
kind: DocNodeKind::Variable,