libsyntax: Remove Mark into ExpnId
This commit is contained in:
parent
f9477a77c5
commit
31e10aec83
23 changed files with 183 additions and 182 deletions
|
|
@ -5,7 +5,7 @@ pub use UnsafeSource::*;
|
|||
pub use crate::symbol::{Ident, Symbol as Name};
|
||||
pub use crate::util::parser::ExprPrecedence;
|
||||
|
||||
use crate::ext::hygiene::{Mark, SyntaxContext};
|
||||
use crate::ext::hygiene::{ExpnId, SyntaxContext};
|
||||
use crate::parse::token::{self, DelimToken};
|
||||
use crate::print::pprust;
|
||||
use crate::ptr::P;
|
||||
|
|
@ -251,12 +251,12 @@ mod node_id_inner {
|
|||
pub use node_id_inner::NodeId;
|
||||
|
||||
impl NodeId {
|
||||
pub fn placeholder_from_mark(mark: Mark) -> Self {
|
||||
pub fn placeholder_from_mark(mark: ExpnId) -> Self {
|
||||
NodeId::from_u32(mark.as_u32())
|
||||
}
|
||||
|
||||
pub fn placeholder_to_mark(self) -> Mark {
|
||||
Mark::from_u32(self.as_u32())
|
||||
pub fn placeholder_to_mark(self) -> ExpnId {
|
||||
ExpnId::from_u32(self.as_u32())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue