mirror of
https://github.com/swc-project/swc.git
synced 2024-12-01 09:52:57 +03:00
feat(es/codegen): Expose more API (#2375)
swc_ecma_codegen: - `Emitter`: Make `emit_module_item` public.
This commit is contained in:
parent
656f3e944d
commit
500dbf244b
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -2575,7 +2575,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "swc_ecma_codegen"
|
||||
version = "0.74.0"
|
||||
version = "0.74.1"
|
||||
dependencies = [
|
||||
"bitflags",
|
||||
"memchr",
|
||||
|
@ -7,7 +7,7 @@ include = ["Cargo.toml", "src/**/*.rs"]
|
||||
license = "Apache-2.0/MIT"
|
||||
name = "swc_ecma_codegen"
|
||||
repository = "https://github.com/swc-project/swc.git"
|
||||
version = "0.74.0"
|
||||
version = "0.74.1"
|
||||
|
||||
[dependencies]
|
||||
bitflags = "1"
|
||||
|
@ -107,7 +107,7 @@ where
|
||||
}
|
||||
|
||||
#[emitter]
|
||||
fn emit_module_item(&mut self, node: &ModuleItem) -> Result {
|
||||
pub fn emit_module_item(&mut self, node: &ModuleItem) -> Result {
|
||||
match *node {
|
||||
ModuleItem::Stmt(ref stmt) => emit!(stmt),
|
||||
ModuleItem::ModuleDecl(ref decl) => emit!(decl),
|
||||
|
Loading…
Reference in New Issue
Block a user