resolve: Scope visiting doesn't need an Ident
This commit is contained in:
parent
bf5f30684a
commit
3ff866ed7c
6 changed files with 90 additions and 57 deletions
|
@ -622,6 +622,10 @@ impl SyntaxContext {
|
|||
pub fn dollar_crate_name(self) -> Symbol {
|
||||
HygieneData::with(|data| data.syntax_context_data[self.0 as usize].dollar_crate_name)
|
||||
}
|
||||
|
||||
pub fn edition(self) -> Edition {
|
||||
self.outer_expn_data().edition
|
||||
}
|
||||
}
|
||||
|
||||
impl fmt::Debug for SyntaxContext {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue