mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 14:43:33 +03:00
Fix hygiene
This commit is contained in:
parent
6e028696a5
commit
165a2091f9
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "swc_common"
|
||||
version = "0.5.7"
|
||||
version = "0.5.8"
|
||||
authors = ["강동윤 <kdy1997.dev@gmail.com>"]
|
||||
license = "Apache-2.0/MIT"
|
||||
repository = "https://github.com/swc-project/swc.git"
|
||||
|
@ -130,13 +130,19 @@ impl Mark {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Default)]
|
||||
#[derive(Debug)]
|
||||
pub(crate) struct HygieneData {
|
||||
marks: Vec<MarkData>,
|
||||
syntax_contexts: Vec<SyntaxContextData>,
|
||||
markings: HashMap<(SyntaxContext, Mark), SyntaxContext>,
|
||||
}
|
||||
|
||||
impl Default for HygieneData {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl HygieneData {
|
||||
pub(crate) fn new() -> Self {
|
||||
HygieneData {
|
||||
|
Loading…
Reference in New Issue
Block a user