Move docs to Function

This commit is contained in:
Jeremy Kolb 2019-01-22 08:55:05 -05:00
parent b77d780f0e
commit b540451483
3 changed files with 18 additions and 13 deletions

View file

@ -2,7 +2,7 @@ mod scope;
use std::sync::Arc;
use ra_syntax::{TreeArc, ast::{self, NameOwner, DocCommentsOwner}};
use ra_syntax::{TreeArc, ast::{self, NameOwner}};
use crate::{
DefId, HirDatabase, Name, AsName, Function, FnSignature, Module,
@ -73,14 +73,11 @@ impl FnSignature {
TypeRef::unit()
};
let comments = node.doc_comment_text();
let sig = FnSignature {
name,
params,
ret_type,
has_self_param,
documentation: comments,
};
Arc::new(sig)
}