aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_expand/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/hir_expand/src')
-rw-r--r--crates/hir_expand/src/db.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/hir_expand/src/db.rs b/crates/hir_expand/src/db.rs
index b77795b2e..2eaab1efb 100644
--- a/crates/hir_expand/src/db.rs
+++ b/crates/hir_expand/src/db.rs
@@ -40,7 +40,7 @@ pub enum TokenExpander {
40} 40}
41 41
42impl TokenExpander { 42impl TokenExpander {
43 pub fn expand( 43 fn expand(
44 &self, 44 &self,
45 db: &dyn AstDatabase, 45 db: &dyn AstDatabase,
46 id: LazyMacroId, 46 id: LazyMacroId,
@@ -61,7 +61,7 @@ impl TokenExpander {
61 } 61 }
62 } 62 }
63 63
64 pub fn map_id_down(&self, id: tt::TokenId) -> tt::TokenId { 64 pub(crate) fn map_id_down(&self, id: tt::TokenId) -> tt::TokenId {
65 match self { 65 match self {
66 TokenExpander::MacroRules(it) => it.map_id_down(id), 66 TokenExpander::MacroRules(it) => it.map_id_down(id),
67 TokenExpander::MacroDef(it) => it.map_id_down(id), 67 TokenExpander::MacroDef(it) => it.map_id_down(id),
@@ -71,7 +71,7 @@ impl TokenExpander {
71 } 71 }
72 } 72 }
73 73
74 pub fn map_id_up(&self, id: tt::TokenId) -> (tt::TokenId, mbe::Origin) { 74 pub(crate) fn map_id_up(&self, id: tt::TokenId) -> (tt::TokenId, mbe::Origin) {
75 match self { 75 match self {
76 TokenExpander::MacroRules(it) => it.map_id_up(id), 76 TokenExpander::MacroRules(it) => it.map_id_up(id),
77 TokenExpander::MacroDef(it) => it.map_id_up(id), 77 TokenExpander::MacroDef(it) => it.map_id_up(id),