internal: reduce visibility
This commit is contained in:
parent
a231da9d24
commit
87f827bfaf
1 changed files with 3 additions and 3 deletions
|
|
@ -35,7 +35,7 @@ pub enum TokenExpander {
|
|||
}
|
||||
|
||||
impl TokenExpander {
|
||||
pub fn expand(
|
||||
fn expand(
|
||||
&self,
|
||||
db: &dyn AstDatabase,
|
||||
id: LazyMacroId,
|
||||
|
|
@ -56,7 +56,7 @@ impl TokenExpander {
|
|||
}
|
||||
}
|
||||
|
||||
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),
|
||||
|
|
@ -66,7 +66,7 @@ impl TokenExpander {
|
|||
}
|
||||
}
|
||||
|
||||
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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue