8726: internal: reduce visibility r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
bors[bot] 2021-05-04 17:29:55 +00:00 committed by GitHub
commit 5e87f84211
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,7 +40,7 @@ pub enum TokenExpander {
}
impl TokenExpander {
pub fn expand(
fn expand(
&self,
db: &dyn AstDatabase,
id: LazyMacroId,
@ -61,7 +61,7 @@ pub fn expand(
}
}
pub fn map_id_down(&self, id: tt::TokenId) -> tt::TokenId {
pub(crate) fn map_id_down(&self, id: tt::TokenId) -> tt::TokenId {
match self {
TokenExpander::MacroRules(it) => it.map_id_down(id),
TokenExpander::MacroDef(it) => it.map_id_down(id),
@ -71,7 +71,7 @@ pub fn map_id_down(&self, id: tt::TokenId) -> tt::TokenId {
}
}
pub fn map_id_up(&self, id: tt::TokenId) -> (tt::TokenId, mbe::Origin) {
pub(crate) fn map_id_up(&self, id: tt::TokenId) -> (tt::TokenId, mbe::Origin) {
match self {
TokenExpander::MacroRules(it) => it.map_id_up(id),
TokenExpander::MacroDef(it) => it.map_id_up(id),