Skip to content

Commit

Permalink
test(es/quote): Fix doctests (swc-project#7038)
Browse files Browse the repository at this point in the history
  • Loading branch information
andersk authored and kdy1 committed Mar 9, 2023
1 parent 4fb147b commit 92f50d0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/swc_ecma_quote/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ swc_ecma_ast = { version = "0.98.2", path = "../swc_ecma_ast" }
swc_ecma_quote_macros = { version = "0.39.4", path = "../swc_ecma_quote_macros" }

[dev-dependencies]
swc_core = { path = "../swc_core", features = ["ecma_quote"] }
testing = { version = "0.31.37", path = "../testing" }
1 change: 1 addition & 0 deletions crates/swc_ecma_quote_macros/src/ctxt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ pub(super) fn prepare_vars(
"Ident" => VarPos::Ident,
"Expr" => VarPos::Expr,
"Pat" => VarPos::Pat,
"Str" => VarPos::Str,
_ => panic!("Invalid type: {}", segment.ident),
}
}
Expand Down

0 comments on commit 92f50d0

Please sign in to comment.