fix(es/utils): Use $crate for quote_ident!() (#9309)

**Related issue:**

  - Closes https://github.com/swc-project/swc/issues/9299
This commit is contained in:
Donny/강동윤 2024-07-22 16:48:13 +09:00 committed by GitHub
parent 9d983c3864
commit bdaaf47cb4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 1 deletions

View File

@ -0,0 +1,6 @@
---
swc_ecma_utils: patch
swc_core: patch
---
fix(es/utils): Use `$crate` for `quote_ident!()`

View File

@ -1,6 +1,7 @@
name: CI
on:
merge_group:
pull_request:
types: ["opened", "reopened", "synchronize"]
push:

View File

@ -24,7 +24,7 @@ macro_rules! quote_ident {
($ctxt:expr, $s:expr) => {{
let sym: $crate::swc_atoms::Atom = $s.into();
let id: $crate::swc_ecma_ast::Ident =
$crate::swc_ecma_ast::Ident::new(sym, DUMMY_SP, $ctxt);
$crate::swc_ecma_ast::Ident::new(sym, $crate::swc_common::DUMMY_SP, $ctxt);
id
}};