feat(es/codegen): Expose more API (#2375)

swc_ecma_codegen:
 - `Emitter`: Make `emit_module_item` public.
This commit is contained in:
Yunfei He 2021-10-08 13:36:47 +08:00 committed by GitHub
parent 656f3e944d
commit 500dbf244b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

2
Cargo.lock generated
View File

@ -2575,7 +2575,7 @@ dependencies = [
[[package]]
name = "swc_ecma_codegen"
version = "0.74.0"
version = "0.74.1"
dependencies = [
"bitflags",
"memchr",

View File

@ -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"

View File

@ -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),