aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/display
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-07-16 12:00:56 +0100
committerAleksey Kladov <[email protected]>2020-07-16 17:03:04 +0100
commitff0312fa32715ce42f134fd9f049c4df5956d042 (patch)
treeb514e34d3486a650fef35e29396a810ee7741cd1 /crates/ra_ide/src/display
parent9210fcc076808e53e9bde84be26307fc0dc7d688 (diff)
Semantical call info
Diffstat (limited to 'crates/ra_ide/src/display')
-rw-r--r--crates/ra_ide/src/display/function_signature.rs21
1 files changed, 0 insertions, 21 deletions
diff --git a/crates/ra_ide/src/display/function_signature.rs b/crates/ra_ide/src/display/function_signature.rs
index 1d39544d3..709a85f65 100644
--- a/crates/ra_ide/src/display/function_signature.rs
+++ b/crates/ra_ide/src/display/function_signature.rs
@@ -149,27 +149,6 @@ impl FunctionSignature {
149 has_self_param: false, 149 has_self_param: false,
150 }) 150 })
151 } 151 }
152
153 pub(crate) fn from_macro(db: &RootDatabase, macro_def: hir::MacroDef) -> Option<Self> {
154 let node: ast::MacroCall = macro_def.source(db).value;
155
156 let params = vec![];
157
158 Some(FunctionSignature {
159 kind: CallableKind::Macro,
160 visibility: None,
161 qualifier: Default::default(),
162 name: node.name().map(|n| n.text().to_string()),
163 ret_type: None,
164 parameters: params,
165 parameter_names: vec![],
166 parameter_types: vec![],
167 generic_parameters: vec![],
168 where_predicates: vec![],
169 doc: macro_def.docs(db),
170 has_self_param: false,
171 })
172 }
173} 152}
174 153
175impl From<&'_ ast::FnDef> for FunctionSignature { 154impl From<&'_ ast::FnDef> for FunctionSignature {