diff options
author | Aleksey Kladov <[email protected]> | 2021-05-04 18:29:30 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2021-05-04 18:29:30 +0100 |
commit | 87f827bfafc28669e896904bd162e3864350aeed (patch) | |
tree | 8d548f771611c24a4aeae07b68c292faaa7f2d7e /crates | |
parent | a231da9d245dc280b082f2d8795f8e6bf16e409a (diff) |
internal: reduce visibility
Diffstat (limited to 'crates')
-rw-r--r-- | crates/hir_expand/src/db.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/hir_expand/src/db.rs b/crates/hir_expand/src/db.rs index 1e4b0cc19..43f787b34 100644 --- a/crates/hir_expand/src/db.rs +++ b/crates/hir_expand/src/db.rs | |||
@@ -35,7 +35,7 @@ pub enum TokenExpander { | |||
35 | } | 35 | } |
36 | 36 | ||
37 | impl TokenExpander { | 37 | impl TokenExpander { |
38 | pub fn expand( | 38 | fn expand( |
39 | &self, | 39 | &self, |
40 | db: &dyn AstDatabase, | 40 | db: &dyn AstDatabase, |
41 | id: LazyMacroId, | 41 | id: LazyMacroId, |
@@ -56,7 +56,7 @@ impl TokenExpander { | |||
56 | } | 56 | } |
57 | } | 57 | } |
58 | 58 | ||
59 | pub fn map_id_down(&self, id: tt::TokenId) -> tt::TokenId { | 59 | pub(crate) fn map_id_down(&self, id: tt::TokenId) -> tt::TokenId { |
60 | match self { | 60 | match self { |
61 | TokenExpander::MacroRules(it) => it.map_id_down(id), | 61 | TokenExpander::MacroRules(it) => it.map_id_down(id), |
62 | TokenExpander::MacroDef(it) => it.map_id_down(id), | 62 | TokenExpander::MacroDef(it) => it.map_id_down(id), |
@@ -66,7 +66,7 @@ impl TokenExpander { | |||
66 | } | 66 | } |
67 | } | 67 | } |
68 | 68 | ||
69 | pub fn map_id_up(&self, id: tt::TokenId) -> (tt::TokenId, mbe::Origin) { | 69 | pub(crate) fn map_id_up(&self, id: tt::TokenId) -> (tt::TokenId, mbe::Origin) { |
70 | match self { | 70 | match self { |
71 | TokenExpander::MacroRules(it) => it.map_id_up(id), | 71 | TokenExpander::MacroRules(it) => it.map_id_up(id), |
72 | TokenExpander::MacroDef(it) => it.map_id_up(id), | 72 | TokenExpander::MacroDef(it) => it.map_id_up(id), |