aboutsummaryrefslogtreecommitdiff
path: root/crates/proc_macro_api
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2020-12-11 13:24:02 +0000
committerJonas Schievink <[email protected]>2020-12-27 14:29:47 +0000
commit798968e1e3a7d9eafa0c27c857571cdc347c34a7 (patch)
tree79e82b07d8486f2d9b710706e5aacc07f25ddbb9 /crates/proc_macro_api
parent0fd75c98ac81c9f6581712ec8802940e547315e3 (diff)
Move TokenExpander to base_db and rename it
It's only used to break the dependency to proc_macro_api
Diffstat (limited to 'crates/proc_macro_api')
-rw-r--r--crates/proc_macro_api/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/proc_macro_api/src/lib.rs b/crates/proc_macro_api/src/lib.rs
index 0d061fd53..a61afbbd6 100644
--- a/crates/proc_macro_api/src/lib.rs
+++ b/crates/proc_macro_api/src/lib.rs
@@ -39,7 +39,7 @@ impl PartialEq for ProcMacroProcessExpander {
39 } 39 }
40} 40}
41 41
42impl tt::TokenExpander for ProcMacroProcessExpander { 42impl base_db::ProcMacroExpander for ProcMacroProcessExpander {
43 fn expand( 43 fn expand(
44 &self, 44 &self,
45 subtree: &Subtree, 45 subtree: &Subtree,
@@ -90,7 +90,7 @@ impl ProcMacroClient {
90 ProcMacroKind::FuncLike => base_db::ProcMacroKind::FuncLike, 90 ProcMacroKind::FuncLike => base_db::ProcMacroKind::FuncLike,
91 ProcMacroKind::Attr => base_db::ProcMacroKind::Attr, 91 ProcMacroKind::Attr => base_db::ProcMacroKind::Attr,
92 }; 92 };
93 let expander: Arc<dyn tt::TokenExpander> = Arc::new(ProcMacroProcessExpander { 93 let expander = Arc::new(ProcMacroProcessExpander {
94 process: self.process.clone(), 94 process: self.process.clone(),
95 name: name.clone(), 95 name: name.clone(),
96 dylib_path: dylib_path.into(), 96 dylib_path: dylib_path.into(),