mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-14 06:15:27 +00:00
Move TokenExpander to base_db and rename it
It's only used to break the dependency to proc_macro_api
This commit is contained in:
parent
0fd75c98ac
commit
798968e1e3
4 changed files with 12 additions and 12 deletions
|
@ -39,7 +39,7 @@ impl PartialEq for ProcMacroProcessExpander {
|
|||
}
|
||||
}
|
||||
|
||||
impl tt::TokenExpander for ProcMacroProcessExpander {
|
||||
impl base_db::ProcMacroExpander for ProcMacroProcessExpander {
|
||||
fn expand(
|
||||
&self,
|
||||
subtree: &Subtree,
|
||||
|
@ -90,7 +90,7 @@ impl ProcMacroClient {
|
|||
ProcMacroKind::FuncLike => base_db::ProcMacroKind::FuncLike,
|
||||
ProcMacroKind::Attr => base_db::ProcMacroKind::Attr,
|
||||
};
|
||||
let expander: Arc<dyn tt::TokenExpander> = Arc::new(ProcMacroProcessExpander {
|
||||
let expander = Arc::new(ProcMacroProcessExpander {
|
||||
process: self.process.clone(),
|
||||
name: name.clone(),
|
||||
dylib_path: dylib_path.into(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue