diff options
author | Jeremy Kolb <[email protected]> | 2019-01-22 13:55:05 +0000 |
---|---|---|
committer | Jeremy Kolb <[email protected]> | 2019-01-22 13:55:05 +0000 |
commit | b5404514834a27c682dc22d86bc5585c0cae3076 (patch) | |
tree | 38c6f5d9abb55d335894a69e2db3f6df31573dcf /crates/ra_hir/src/code_model_impl | |
parent | b77d780f0e9e7902695b949a25588fcb66bb5982 (diff) |
Move docs to Function
Diffstat (limited to 'crates/ra_hir/src/code_model_impl')
-rw-r--r-- | crates/ra_hir/src/code_model_impl/function.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/crates/ra_hir/src/code_model_impl/function.rs b/crates/ra_hir/src/code_model_impl/function.rs index c848f7a82..c68c6bfbf 100644 --- a/crates/ra_hir/src/code_model_impl/function.rs +++ b/crates/ra_hir/src/code_model_impl/function.rs | |||
@@ -2,7 +2,7 @@ mod scope; | |||
2 | 2 | ||
3 | use std::sync::Arc; | 3 | use std::sync::Arc; |
4 | 4 | ||
5 | use ra_syntax::{TreeArc, ast::{self, NameOwner, DocCommentsOwner}}; | 5 | use ra_syntax::{TreeArc, ast::{self, NameOwner}}; |
6 | 6 | ||
7 | use crate::{ | 7 | use crate::{ |
8 | DefId, HirDatabase, Name, AsName, Function, FnSignature, Module, | 8 | DefId, HirDatabase, Name, AsName, Function, FnSignature, Module, |
@@ -73,14 +73,11 @@ impl FnSignature { | |||
73 | TypeRef::unit() | 73 | TypeRef::unit() |
74 | }; | 74 | }; |
75 | 75 | ||
76 | let comments = node.doc_comment_text(); | ||
77 | |||
78 | let sig = FnSignature { | 76 | let sig = FnSignature { |
79 | name, | 77 | name, |
80 | params, | 78 | params, |
81 | ret_type, | 79 | ret_type, |
82 | has_self_param, | 80 | has_self_param, |
83 | documentation: comments, | ||
84 | }; | 81 | }; |
85 | Arc::new(sig) | 82 | Arc::new(sig) |
86 | } | 83 | } |