Skip to content

Commit

Permalink
fix(es/utils): Use $crate for quote_ident!() (#9309)
Browse files Browse the repository at this point in the history
**Related issue:**

  - Closes #9299
  • Loading branch information
kdy1 authored Jul 22, 2024
1 parent 9d983c3 commit bdaaf47
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/unlucky-planets-laugh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
swc_ecma_utils: patch
swc_core: patch
---

fix(es/utils): Use `$crate` for `quote_ident!()`
1 change: 1 addition & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: CI

on:
merge_group:
pull_request:
types: ["opened", "reopened", "synchronize"]
push:
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_ecma_utils/src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}};
Expand Down

0 comments on commit bdaaf47

Please sign in to comment.