From f4e78a5f4e7601df09b579fae56a0e31b1bd3604 Mon Sep 17 00:00:00 2001 From: Edwin Cheng Date: Sat, 23 Nov 2019 01:11:33 +0800 Subject: Add TestDB --- crates/ra_hir_expand/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crates/ra_hir_expand/src/lib.rs') diff --git a/crates/ra_hir_expand/src/lib.rs b/crates/ra_hir_expand/src/lib.rs index 126d12fbb..f514a15e4 100644 --- a/crates/ra_hir_expand/src/lib.rs +++ b/crates/ra_hir_expand/src/lib.rs @@ -26,6 +26,9 @@ use ra_syntax::{ use crate::ast_id_map::FileAstId; use crate::builtin_macro::BuiltinExpander; +#[cfg(test)] +mod test_db; + /// Input to the analyzer is a set of files, where each file is identified by /// `FileId` and contains source code. However, another source of source code in /// Rust are macros: each macro can be thought of as producing a "temporary -- cgit v1.2.3 From 6940ae9eab9ec8ea5fe81c8b30ccada4a62aebde Mon Sep 17 00:00:00 2001 From: Edwin Cheng Date: Sat, 23 Nov 2019 21:54:39 +0800 Subject: Rename BuiltinExpander to BuiltinFnLikeExpander --- crates/ra_hir_expand/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_hir_expand/src/lib.rs') diff --git a/crates/ra_hir_expand/src/lib.rs b/crates/ra_hir_expand/src/lib.rs index f514a15e4..4f3ccf1d0 100644 --- a/crates/ra_hir_expand/src/lib.rs +++ b/crates/ra_hir_expand/src/lib.rs @@ -24,7 +24,7 @@ use ra_syntax::{ }; use crate::ast_id_map::FileAstId; -use crate::builtin_macro::BuiltinExpander; +use crate::builtin_macro::BuiltinFnLikeExpander; #[cfg(test)] mod test_db; @@ -138,7 +138,7 @@ pub struct MacroDefId { #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] pub enum MacroDefKind { Declarative, - BuiltIn(BuiltinExpander), + BuiltIn(BuiltinFnLikeExpander), } #[derive(Debug, Clone, PartialEq, Eq, Hash)] -- cgit v1.2.3