mirror of
https://github.com/swc-project/swc.git
synced 2024-12-23 13:51:19 +03:00
fix(es/ast): Remove TsSignatureDecl (#1531)
This commit is contained in:
parent
dcaea5fd31
commit
f1792708b4
18
Cargo.toml
18
Cargo.toml
@ -11,7 +11,7 @@ edition = "2018"
|
||||
license = "Apache-2.0/MIT"
|
||||
name = "swc"
|
||||
repository = "https://github.com/swc-project/swc.git"
|
||||
version = "0.13.0"
|
||||
version = "0.14.0"
|
||||
|
||||
[lib]
|
||||
name = "swc"
|
||||
@ -29,12 +29,12 @@ serde_json = "1"
|
||||
sourcemap = "6"
|
||||
swc_atoms = {version = "0.2", path = "./atoms"}
|
||||
swc_common = {version = "0.10.10", path = "./common", features = ["sourcemap", "concurrent"]}
|
||||
swc_ecma_ast = {version = "0.42.0", path = "./ecmascript/ast"}
|
||||
swc_ecma_codegen = {version = "0.50.0", path = "./ecmascript/codegen"}
|
||||
swc_ecma_ext_transforms = {version = "0.10.0", path = "./ecmascript/ext-transforms"}
|
||||
swc_ecma_parser = {version = "0.52.0", path = "./ecmascript/parser"}
|
||||
swc_ecma_preset_env = {version = "0.13.0", path = "./ecmascript/preset_env"}
|
||||
swc_ecma_transforms = {version = "0.43.0", path = "./ecmascript/transforms", features = [
|
||||
swc_ecma_ast = {version = "0.43.0", path = "./ecmascript/ast"}
|
||||
swc_ecma_codegen = {version = "0.51.0", path = "./ecmascript/codegen"}
|
||||
swc_ecma_ext_transforms = {version = "0.11.0", path = "./ecmascript/ext-transforms"}
|
||||
swc_ecma_parser = {version = "0.53.0", path = "./ecmascript/parser"}
|
||||
swc_ecma_preset_env = {version = "0.14.0", path = "./ecmascript/preset_env"}
|
||||
swc_ecma_transforms = {version = "0.44.0", path = "./ecmascript/transforms", features = [
|
||||
"compat",
|
||||
"module",
|
||||
"optimization",
|
||||
@ -42,8 +42,8 @@ swc_ecma_transforms = {version = "0.43.0", path = "./ecmascript/transforms", fea
|
||||
"react",
|
||||
"typescript",
|
||||
]}
|
||||
swc_ecma_utils = {version = "0.33.0", path = "./ecmascript/utils"}
|
||||
swc_ecma_visit = {version = "0.28.0", path = "./ecmascript/visit"}
|
||||
swc_ecma_utils = {version = "0.34.0", path = "./ecmascript/utils"}
|
||||
swc_ecma_visit = {version = "0.29.0", path = "./ecmascript/visit"}
|
||||
swc_visit = {version = "0.2.3", path = "./visit"}
|
||||
|
||||
[dev-dependencies]
|
||||
|
@ -9,7 +9,7 @@ include = ["Cargo.toml", "build.rs", "src/**/*.rs", "src/**/*.js"]
|
||||
license = "Apache-2.0/MIT"
|
||||
name = "swc_bundler"
|
||||
repository = "https://github.com/swc-project/swc.git"
|
||||
version = "0.30.0"
|
||||
version = "0.31.0"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
[features]
|
||||
@ -32,19 +32,19 @@ relative-path = "1.2"
|
||||
retain_mut = "0.1.2"
|
||||
swc_atoms = {version = "0.2.4", path = "../atoms"}
|
||||
swc_common = {version = "0.10.10", path = "../common"}
|
||||
swc_ecma_ast = {version = "0.42.0", path = "../ecmascript/ast"}
|
||||
swc_ecma_codegen = {version = "0.50.0", path = "../ecmascript/codegen"}
|
||||
swc_ecma_parser = {version = "0.52.0", path = "../ecmascript/parser"}
|
||||
swc_ecma_transforms = {version = "0.43.0", path = "../ecmascript/transforms", features = ["optimization"]}
|
||||
swc_ecma_utils = {version = "0.33.0", path = "../ecmascript/utils"}
|
||||
swc_ecma_visit = {version = "0.28.0", path = "../ecmascript/visit"}
|
||||
swc_ecma_ast = {version = "0.43.0", path = "../ecmascript/ast"}
|
||||
swc_ecma_codegen = {version = "0.51.0", path = "../ecmascript/codegen"}
|
||||
swc_ecma_parser = {version = "0.53.0", path = "../ecmascript/parser"}
|
||||
swc_ecma_transforms = {version = "0.44.0", path = "../ecmascript/transforms", features = ["optimization"]}
|
||||
swc_ecma_utils = {version = "0.34.0", path = "../ecmascript/utils"}
|
||||
swc_ecma_visit = {version = "0.29.0", path = "../ecmascript/visit"}
|
||||
|
||||
[dev-dependencies]
|
||||
hex = "0.4"
|
||||
ntest = "0.7.2"
|
||||
reqwest = {version = "0.10.8", features = ["blocking"]}
|
||||
sha-1 = "0.9"
|
||||
swc_ecma_transforms = {version = "0.43.0", path = "../ecmascript/transforms", features = ["react", "typescript"]}
|
||||
swc_ecma_transforms = {version = "0.44.0", path = "../ecmascript/transforms", features = ["react", "typescript"]}
|
||||
tempfile = "3.1.0"
|
||||
testing = {version = "0.10.3", path = "../testing"}
|
||||
url = "2.1.1"
|
||||
|
@ -6,7 +6,7 @@ edition = "2018"
|
||||
license = "Apache-2.0/MIT"
|
||||
name = "swc_ecmascript"
|
||||
repository = "https://github.com/swc-project/swc.git"
|
||||
version = "0.29.1"
|
||||
version = "0.30.0"
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
all-features = true
|
||||
@ -27,12 +27,12 @@ react = ["swc_ecma_transforms/react"]
|
||||
typescript = ["swc_ecma_transforms/typescript"]
|
||||
|
||||
[dependencies]
|
||||
swc_ecma_ast = {version = "0.42.0", path = "./ast"}
|
||||
swc_ecma_codegen = {version = "0.50.0", path = "./codegen", optional = true}
|
||||
swc_ecma_dep_graph = {version = "0.20.0", path = "./dep-graph", optional = true}
|
||||
swc_ecma_parser = {version = "0.52.1", path = "./parser", optional = true}
|
||||
swc_ecma_transforms = {version = "0.43.0", path = "./transforms", optional = true}
|
||||
swc_ecma_utils = {version = "0.33.0", path = "./utils", optional = true}
|
||||
swc_ecma_visit = {version = "0.28.0", path = "./visit", optional = true}
|
||||
swc_ecma_ast = {version = "0.43.0", path = "./ast"}
|
||||
swc_ecma_codegen = {version = "0.51.0", path = "./codegen", optional = true}
|
||||
swc_ecma_dep_graph = {version = "0.21.0", path = "./dep-graph", optional = true}
|
||||
swc_ecma_parser = {version = "0.53.0", path = "./parser", optional = true}
|
||||
swc_ecma_transforms = {version = "0.44.0", path = "./transforms", optional = true}
|
||||
swc_ecma_utils = {version = "0.34.0", path = "./utils", optional = true}
|
||||
swc_ecma_visit = {version = "0.29.0", path = "./visit", optional = true}
|
||||
|
||||
[dev-dependencies]
|
||||
|
@ -6,7 +6,7 @@ edition = "2018"
|
||||
license = "Apache-2.0/MIT"
|
||||
name = "swc_ecma_ast"
|
||||
repository = "https://github.com/swc-project/swc.git"
|
||||
version = "0.42.0"
|
||||
version = "0.43.0"
|
||||
|
||||
[features]
|
||||
default = []
|
||||
|
@ -58,11 +58,10 @@ pub use self::{
|
||||
TsModuleDecl, TsModuleName, TsModuleRef, TsNamespaceBody, TsNamespaceDecl,
|
||||
TsNamespaceExportDecl, TsNonNullExpr, TsOptionalType, TsParamProp, TsParamPropParam,
|
||||
TsParenthesizedType, TsPropertySignature, TsQualifiedName, TsRestType, TsSetterSignature,
|
||||
TsSignatureDecl, TsThisType, TsThisTypeOrIdent, TsTplLitType, TsTupleElement, TsTupleType,
|
||||
TsType, TsTypeAliasDecl, TsTypeAnn, TsTypeAssertion, TsTypeElement, TsTypeLit,
|
||||
TsTypeOperator, TsTypeOperatorOp, TsTypeParam, TsTypeParamDecl, TsTypeParamInstantiation,
|
||||
TsTypePredicate, TsTypeQuery, TsTypeQueryExpr, TsTypeRef, TsUnionOrIntersectionType,
|
||||
TsUnionType,
|
||||
TsThisType, TsThisTypeOrIdent, TsTplLitType, TsTupleElement, TsTupleType, TsType,
|
||||
TsTypeAliasDecl, TsTypeAnn, TsTypeAssertion, TsTypeElement, TsTypeLit, TsTypeOperator,
|
||||
TsTypeOperatorOp, TsTypeParam, TsTypeParamDecl, TsTypeParamInstantiation, TsTypePredicate,
|
||||
TsTypeQuery, TsTypeQueryExpr, TsTypeRef, TsUnionOrIntersectionType, TsUnionType,
|
||||
},
|
||||
};
|
||||
use serde::Deserialize;
|
||||
|
@ -107,26 +107,6 @@ pub enum TsEntityName {
|
||||
Ident(Ident),
|
||||
}
|
||||
|
||||
#[ast_node]
|
||||
#[derive(Eq, Hash, Is, EqIgnoreSpan)]
|
||||
#[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))]
|
||||
pub enum TsSignatureDecl {
|
||||
#[tag("TsCallSignatureDeclaration")]
|
||||
TsCallSignatureDecl(TsCallSignatureDecl),
|
||||
|
||||
#[tag("TsConstructSignatureDeclaration")]
|
||||
TsConstructSignatureDecl(TsConstructSignatureDecl),
|
||||
|
||||
#[tag("TsMethodSignature")]
|
||||
TsMethodSignature(TsMethodSignature),
|
||||
|
||||
#[tag("TsFunctionType")]
|
||||
TsFnType(TsFnType),
|
||||
|
||||
#[tag("TsConstructorType")]
|
||||
TsConstructorType(TsConstructorType),
|
||||
}
|
||||
|
||||
// ================
|
||||
// TypeScript type members (for type literal / interface / class)
|
||||
// ================
|
||||
|
@ -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.50.3"
|
||||
version = "0.51.0"
|
||||
|
||||
[dependencies]
|
||||
bitflags = "1"
|
||||
@ -15,9 +15,9 @@ num-bigint = {version = "0.2", features = ["serde"]}
|
||||
sourcemap = "6"
|
||||
swc_atoms = {version = "0.2", path = "../../atoms"}
|
||||
swc_common = {version = "0.10.10", path = "../../common"}
|
||||
swc_ecma_ast = {version = "0.42.0", path = "../ast"}
|
||||
swc_ecma_ast = {version = "0.43.0", path = "../ast"}
|
||||
swc_ecma_codegen_macros = {version = "0.5.2", path = "./macros"}
|
||||
swc_ecma_parser = {version = "0.52.0", path = "../parser"}
|
||||
swc_ecma_parser = {version = "0.53.0", path = "../parser"}
|
||||
|
||||
[dev-dependencies]
|
||||
swc_common = {version = "0.10.10", path = "../../common", features = ["sourcemap"]}
|
||||
|
@ -697,29 +697,6 @@ impl<'a> Emitter<'a> {
|
||||
emit!(n.type_ann);
|
||||
}
|
||||
|
||||
#[emitter]
|
||||
fn emit_ts_signature_decl(&mut self, n: &TsSignatureDecl) -> Result {
|
||||
self.emit_leading_comments_of_pos(n.span().lo(), false)?;
|
||||
|
||||
match n {
|
||||
TsSignatureDecl::TsCallSignatureDecl(n) => {
|
||||
emit!(n);
|
||||
}
|
||||
TsSignatureDecl::TsConstructSignatureDecl(n) => {
|
||||
emit!(n);
|
||||
}
|
||||
TsSignatureDecl::TsMethodSignature(n) => {
|
||||
emit!(n);
|
||||
}
|
||||
TsSignatureDecl::TsFnType(n) => {
|
||||
emit!(n);
|
||||
}
|
||||
TsSignatureDecl::TsConstructorType(n) => {
|
||||
emit!(n);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[emitter]
|
||||
fn emit_ts_this_type(&mut self, n: &TsThisType) -> Result {
|
||||
self.emit_leading_comments_of_pos(n.span().lo(), false)?;
|
||||
|
@ -6,14 +6,14 @@ edition = "2018"
|
||||
license = "Apache-2.0/MIT"
|
||||
name = "swc_ecma_dep_graph"
|
||||
repository = "https://github.com/swc-project/swc.git"
|
||||
version = "0.20.0"
|
||||
version = "0.21.0"
|
||||
|
||||
[dependencies]
|
||||
swc_atoms = {version = "0.2", path = "../../atoms"}
|
||||
swc_common = {version = "0.10.10", path = "../../common"}
|
||||
swc_ecma_ast = {version = "0.42.0", path = "../ast"}
|
||||
swc_ecma_visit = {version = "0.28.0", path = "../visit"}
|
||||
swc_ecma_ast = {version = "0.43.0", path = "../ast"}
|
||||
swc_ecma_visit = {version = "0.29.0", path = "../visit"}
|
||||
|
||||
[dev-dependencies]
|
||||
swc_ecma_parser = {version = "0.52.0", path = "../parser"}
|
||||
swc_ecma_parser = {version = "0.53.0", path = "../parser"}
|
||||
testing = {version = "0.10.3", path = "../../testing"}
|
||||
|
@ -5,7 +5,7 @@ documentation = "https://rustdoc.swc.rs/swc_ecma_ext_transforms/"
|
||||
edition = "2018"
|
||||
license = "Apache-2.0/MIT"
|
||||
name = "swc_ecma_ext_transforms"
|
||||
version = "0.10.0"
|
||||
version = "0.11.0"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
@ -13,7 +13,7 @@ version = "0.10.0"
|
||||
phf = {version = "0.8.0", features = ["macros"]}
|
||||
swc_atoms = {version = "0.2", path = "../../atoms"}
|
||||
swc_common = {version = "0.10.10", path = "../../common"}
|
||||
swc_ecma_ast = {version = "0.42.0", path = "../ast"}
|
||||
swc_ecma_parser = {version = "0.52.0", path = "../parser"}
|
||||
swc_ecma_utils = {version = "0.33.0", path = "../utils"}
|
||||
swc_ecma_visit = {version = "0.28.0", path = "../visit"}
|
||||
swc_ecma_ast = {version = "0.43.0", path = "../ast"}
|
||||
swc_ecma_parser = {version = "0.53.0", path = "../parser"}
|
||||
swc_ecma_utils = {version = "0.34.0", path = "../utils"}
|
||||
swc_ecma_visit = {version = "0.29.0", path = "../visit"}
|
||||
|
@ -5,7 +5,7 @@ documentation = "https://rustdoc.swc.rs/jsdoc/"
|
||||
edition = "2018"
|
||||
license = "Apache-2.0/MIT"
|
||||
name = "jsdoc"
|
||||
version = "0.20.0"
|
||||
version = "0.21.0"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
@ -18,7 +18,7 @@ swc_common = {version = "0.10.10", path = "../../common"}
|
||||
[dev-dependencies]
|
||||
anyhow = "1"
|
||||
dashmap = "3"
|
||||
swc_ecma_ast = {version = "0.42.0", path = "../ast"}
|
||||
swc_ecma_parser = {version = "0.52.0", path = "../parser"}
|
||||
swc_ecma_ast = {version = "0.43.0", path = "../ast"}
|
||||
swc_ecma_parser = {version = "0.53.0", path = "../parser"}
|
||||
testing = {version = "0.10.3", path = "../../testing"}
|
||||
walkdir = "2"
|
||||
|
@ -6,15 +6,15 @@ edition = "2018"
|
||||
license = "Apache-2.0/MIT"
|
||||
name = "swc_ecma_loader"
|
||||
repository = "https://github.com/swc-project/swc.git"
|
||||
version = "0.3.0"
|
||||
version = "0.4.0"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
swc_atoms = {version = "0.2.3", path = "../../atoms"}
|
||||
swc_common = {version = "0.10.10", path = "../../common"}
|
||||
swc_ecma_ast = {version = "0.42.0", path = "../ast"}
|
||||
swc_ecma_visit = {version = "0.28.0", path = "../visit"}
|
||||
swc_ecma_ast = {version = "0.43.0", path = "../ast"}
|
||||
swc_ecma_visit = {version = "0.29.0", path = "../visit"}
|
||||
|
||||
[dev-dependencies]
|
||||
testing = {version = "0.10.3", path = "../../testing"}
|
||||
|
@ -7,7 +7,7 @@ include = ["Cargo.toml", "src/**/*.rs", "examples/**/*.rs"]
|
||||
license = "Apache-2.0/MIT"
|
||||
name = "swc_ecma_parser"
|
||||
repository = "https://github.com/swc-project/swc.git"
|
||||
version = "0.52.2"
|
||||
version = "0.53.0"
|
||||
|
||||
[features]
|
||||
default = []
|
||||
@ -22,8 +22,8 @@ serde = {version = "1", features = ["derive"]}
|
||||
smallvec = "1"
|
||||
swc_atoms = {version = "0.2.3", path = "../../atoms"}
|
||||
swc_common = {version = "0.10.10", path = "../../common"}
|
||||
swc_ecma_ast = {version = "0.42.0", path = "../ast"}
|
||||
swc_ecma_visit = {version = "0.28.0", path = "../visit"}
|
||||
swc_ecma_ast = {version = "0.43.0", path = "../ast"}
|
||||
swc_ecma_visit = {version = "0.29.0", path = "../visit"}
|
||||
unicode-xid = "0.2"
|
||||
|
||||
[dev-dependencies]
|
||||
|
@ -821,10 +821,6 @@ impl Visit for Shower<'_> {
|
||||
self.show("TsRestType", n);
|
||||
n.visit_children_with(self)
|
||||
}
|
||||
fn visit_ts_signature_decl(&mut self, n: &TsSignatureDecl, _parent: &dyn Node) {
|
||||
self.show("TsSignatureDecl", n);
|
||||
n.visit_children_with(self)
|
||||
}
|
||||
fn visit_ts_this_type(&mut self, n: &TsThisType, _parent: &dyn Node) {
|
||||
self.show("TsThisType", n);
|
||||
n.visit_children_with(self)
|
||||
|
@ -5,7 +5,7 @@ documentation = "https://rustdoc.swc.rs/swc_ecma_preset_env/"
|
||||
edition = "2018"
|
||||
license = "Apache-2.0/MIT"
|
||||
name = "swc_ecma_preset_env"
|
||||
version = "0.13.0"
|
||||
version = "0.14.0"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
@ -20,14 +20,14 @@ st-map = "0.1.2"
|
||||
string_enum = {version = "0.3.1", path = "../../macros/string_enum"}
|
||||
swc_atoms = {version = "0.2", path = "../../atoms"}
|
||||
swc_common = {version = "0.10.10", path = "../../common"}
|
||||
swc_ecma_ast = {version = "0.42.0", path = "../ast"}
|
||||
swc_ecma_transforms = {version = "0.43.0", path = "../transforms", features = ["compat", "proposal"]}
|
||||
swc_ecma_utils = {version = "0.33.0", path = "../utils"}
|
||||
swc_ecma_visit = {version = "0.28.0", path = "../visit"}
|
||||
swc_ecma_ast = {version = "0.43.0", path = "../ast"}
|
||||
swc_ecma_transforms = {version = "0.44.0", path = "../transforms", features = ["compat", "proposal"]}
|
||||
swc_ecma_utils = {version = "0.34.0", path = "../utils"}
|
||||
swc_ecma_visit = {version = "0.29.0", path = "../visit"}
|
||||
walkdir = "2"
|
||||
|
||||
[dev-dependencies]
|
||||
pretty_assertions = "0.6"
|
||||
swc_ecma_codegen = {version = "0.50.0", path = "../codegen"}
|
||||
swc_ecma_parser = {version = "0.52.0", path = "../parser"}
|
||||
swc_ecma_codegen = {version = "0.51.0", path = "../codegen"}
|
||||
swc_ecma_parser = {version = "0.53.0", path = "../parser"}
|
||||
testing = {version = "0.10.3", path = "../../testing"}
|
||||
|
@ -6,7 +6,7 @@ edition = "2018"
|
||||
license = "Apache-2.0/MIT"
|
||||
name = "swc_ecma_transforms"
|
||||
repository = "https://github.com/swc-project/swc.git"
|
||||
version = "0.43.0"
|
||||
version = "0.44.0"
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
all-features = true
|
||||
@ -23,24 +23,24 @@ typescript = ["swc_ecma_transforms_typescript"]
|
||||
[dependencies]
|
||||
swc_atoms = {version = "0.2.0", path = "../../atoms"}
|
||||
swc_common = {version = "0.10.10", path = "../../common"}
|
||||
swc_ecma_ast = {version = "0.42.0", path = "../ast"}
|
||||
swc_ecma_parser = {version = "0.52.0", path = "../parser"}
|
||||
swc_ecma_transforms_base = {version = "0.10.0", path = "./base"}
|
||||
swc_ecma_transforms_compat = {version = "0.11.0", path = "./compat", optional = true}
|
||||
swc_ecma_transforms_module = {version = "0.11.0", path = "./module", optional = true}
|
||||
swc_ecma_transforms_optimization = {version = "0.13.0", path = "./optimization", optional = true}
|
||||
swc_ecma_transforms_proposal = {version = "0.11.0", path = "./proposal", optional = true}
|
||||
swc_ecma_transforms_react = {version = "0.12.0", path = "./react", optional = true}
|
||||
swc_ecma_transforms_typescript = {version = "0.12.0", path = "./typescript", optional = true}
|
||||
swc_ecma_utils = {version = "0.33.0", path = "../utils"}
|
||||
swc_ecma_visit = {version = "0.28.0", path = "../visit"}
|
||||
swc_ecma_ast = {version = "0.43.0", path = "../ast"}
|
||||
swc_ecma_parser = {version = "0.53.0", path = "../parser"}
|
||||
swc_ecma_transforms_base = {version = "0.11.0", path = "./base"}
|
||||
swc_ecma_transforms_compat = {version = "0.12.0", path = "./compat", optional = true}
|
||||
swc_ecma_transforms_module = {version = "0.12.0", path = "./module", optional = true}
|
||||
swc_ecma_transforms_optimization = {version = "0.14.0", path = "./optimization", optional = true}
|
||||
swc_ecma_transforms_proposal = {version = "0.12.0", path = "./proposal", optional = true}
|
||||
swc_ecma_transforms_react = {version = "0.13.0", path = "./react", optional = true}
|
||||
swc_ecma_transforms_typescript = {version = "0.13.0", path = "./typescript", optional = true}
|
||||
swc_ecma_utils = {version = "0.34.0", path = "../utils"}
|
||||
swc_ecma_visit = {version = "0.29.0", path = "../visit"}
|
||||
unicode-xid = "0.2"
|
||||
|
||||
[dev-dependencies]
|
||||
pretty_assertions = "0.6"
|
||||
sourcemap = "6"
|
||||
swc_ecma_codegen = {version = "0.50.0", path = "../codegen"}
|
||||
swc_ecma_transforms_testing = {version = "0.10.0", path = "./testing"}
|
||||
swc_ecma_codegen = {version = "0.51.0", path = "../codegen"}
|
||||
swc_ecma_transforms_testing = {version = "0.11.0", path = "./testing"}
|
||||
tempfile = "3"
|
||||
testing = {version = "0.10.3", path = "../../testing"}
|
||||
walkdir = "2"
|
||||
|
@ -6,7 +6,7 @@ edition = "2018"
|
||||
license = "Apache-2.0/MIT"
|
||||
name = "swc_ecma_transforms_base"
|
||||
repository = "https://github.com/swc-project/swc.git"
|
||||
version = "0.10.1"
|
||||
version = "0.11.0"
|
||||
|
||||
[dependencies]
|
||||
fxhash = "0.2.1"
|
||||
@ -16,11 +16,11 @@ scoped-tls = "1.0.0"
|
||||
smallvec = "1.6.0"
|
||||
swc_atoms = {version = "0.2", path = "../../../atoms"}
|
||||
swc_common = {version = "0.10.10", path = "../../../common"}
|
||||
swc_ecma_ast = {version = "0.42.0", path = "../../ast"}
|
||||
swc_ecma_parser = {version = "0.52.0", path = "../../parser"}
|
||||
swc_ecma_utils = {version = "0.33.0", path = "../../utils"}
|
||||
swc_ecma_visit = {version = "0.28.0", path = "../../visit"}
|
||||
swc_ecma_ast = {version = "0.43.0", path = "../../ast"}
|
||||
swc_ecma_parser = {version = "0.53.0", path = "../../parser"}
|
||||
swc_ecma_utils = {version = "0.34.0", path = "../../utils"}
|
||||
swc_ecma_visit = {version = "0.29.0", path = "../../visit"}
|
||||
|
||||
[dev-dependencies]
|
||||
swc_ecma_codegen = {version = "0.50.0", path = "../../codegen"}
|
||||
swc_ecma_codegen = {version = "0.51.0", path = "../../codegen"}
|
||||
testing = {version = "0.10.3", path = "../../../testing"}
|
||||
|
@ -421,7 +421,6 @@ impl<'a> VisitMut for Resolver<'a> {
|
||||
typed!(visit_mut_ts_parenthesized_type, TsParenthesizedType);
|
||||
typed!(visit_mut_ts_type_lit, TsTypeLit);
|
||||
typed!(visit_mut_ts_type_element, TsTypeElement);
|
||||
typed!(visit_mut_ts_signature_decl, TsSignatureDecl);
|
||||
typed!(visit_mut_ts_module_block, TsModuleBlock);
|
||||
typed!(visit_mut_ts_namespace_body, TsNamespaceBody);
|
||||
typed!(visit_mut_ts_optional_type, TsOptionalType);
|
||||
|
@ -6,7 +6,7 @@ edition = "2018"
|
||||
license = "Apache-2.0/MIT"
|
||||
name = "swc_ecma_transforms_compat"
|
||||
repository = "https://github.com/swc-project/swc.git"
|
||||
version = "0.11.0"
|
||||
version = "0.12.0"
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
@ -20,13 +20,13 @@ serde = {version = "1.0.118", features = ["derive"]}
|
||||
smallvec = "1.6.0"
|
||||
swc_atoms = {version = "0.2.5", path = "../../../atoms"}
|
||||
swc_common = {version = "0.10.10", path = "../../../common"}
|
||||
swc_ecma_ast = {version = "0.42.0", path = "../../ast"}
|
||||
swc_ecma_transforms_base = {version = "0.10.0", path = "../base"}
|
||||
swc_ecma_ast = {version = "0.43.0", path = "../../ast"}
|
||||
swc_ecma_transforms_base = {version = "0.11.0", path = "../base"}
|
||||
swc_ecma_transforms_macros = {version = "0.2.1", path = "../macros"}
|
||||
swc_ecma_utils = {version = "0.33.0", path = "../../utils"}
|
||||
swc_ecma_visit = {version = "0.28.0", path = "../../visit"}
|
||||
swc_ecma_utils = {version = "0.34.0", path = "../../utils"}
|
||||
swc_ecma_visit = {version = "0.29.0", path = "../../visit"}
|
||||
|
||||
[dev-dependencies]
|
||||
swc_ecma_parser = {version = "0.52.0", path = "../../parser"}
|
||||
swc_ecma_transforms_testing = {version = "0.10.0", path = "../testing"}
|
||||
swc_ecma_parser = {version = "0.53.0", path = "../../parser"}
|
||||
swc_ecma_transforms_testing = {version = "0.11.0", path = "../testing"}
|
||||
testing = {version = "0.10.3", path = "../../../testing"}
|
||||
|
@ -6,7 +6,7 @@ edition = "2018"
|
||||
license = "Apache-2.0/MIT"
|
||||
name = "swc_ecma_transforms_module"
|
||||
repository = "https://github.com/swc-project/swc.git"
|
||||
version = "0.11.0"
|
||||
version = "0.12.0"
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
@ -16,13 +16,13 @@ indexmap = "1.6.1"
|
||||
serde = {version = "1.0.118", features = ["derive"]}
|
||||
swc_atoms = {version = "0.2", path = "../../../atoms"}
|
||||
swc_common = {version = "0.10.10", path = "../../../common"}
|
||||
swc_ecma_ast = {version = "0.42.0", path = "../../ast"}
|
||||
swc_ecma_parser = {version = "0.52.0", path = "../../parser"}
|
||||
swc_ecma_transforms_base = {version = "0.10.0", path = "../base"}
|
||||
swc_ecma_utils = {version = "0.33.0", path = "../../utils"}
|
||||
swc_ecma_visit = {version = "0.28.0", path = "../../visit"}
|
||||
swc_ecma_ast = {version = "0.43.0", path = "../../ast"}
|
||||
swc_ecma_parser = {version = "0.53.0", path = "../../parser"}
|
||||
swc_ecma_transforms_base = {version = "0.11.0", path = "../base"}
|
||||
swc_ecma_utils = {version = "0.34.0", path = "../../utils"}
|
||||
swc_ecma_visit = {version = "0.29.0", path = "../../visit"}
|
||||
|
||||
[dev-dependencies]
|
||||
swc_ecma_transforms_compat = {version = "0.11.0", path = "../compat"}
|
||||
swc_ecma_transforms_testing = {version = "0.10.0", path = "../testing/"}
|
||||
swc_ecma_transforms_compat = {version = "0.12.0", path = "../compat"}
|
||||
swc_ecma_transforms_testing = {version = "0.11.0", path = "../testing/"}
|
||||
testing = {version = "0.10.3", path = "../../../testing/"}
|
||||
|
@ -6,7 +6,7 @@ edition = "2018"
|
||||
license = "Apache-2.0/MIT"
|
||||
name = "swc_ecma_transforms_optimization"
|
||||
repository = "https://github.com/swc-project/swc.git"
|
||||
version = "0.13.0"
|
||||
version = "0.14.0"
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
@ -19,17 +19,17 @@ retain_mut = "0.1.2"
|
||||
serde_json = "1.0.61"
|
||||
swc_atoms = {version = "0.2", path = "../../../atoms"}
|
||||
swc_common = {version = "0.10.10", path = "../../../common"}
|
||||
swc_ecma_ast = {version = "0.42.0", path = "../../ast"}
|
||||
swc_ecma_parser = {version = "0.52.0", path = "../../parser"}
|
||||
swc_ecma_transforms_base = {version = "0.10.0", path = "../base"}
|
||||
swc_ecma_utils = {version = "0.33.0", path = "../../utils"}
|
||||
swc_ecma_visit = {version = "0.28.0", path = "../../visit"}
|
||||
swc_ecma_ast = {version = "0.43.0", path = "../../ast"}
|
||||
swc_ecma_parser = {version = "0.53.0", path = "../../parser"}
|
||||
swc_ecma_transforms_base = {version = "0.11.0", path = "../base"}
|
||||
swc_ecma_utils = {version = "0.34.0", path = "../../utils"}
|
||||
swc_ecma_visit = {version = "0.29.0", path = "../../visit"}
|
||||
|
||||
[dev-dependencies]
|
||||
swc_ecma_transforms_compat = {version = "0.11.0", path = "../compat"}
|
||||
swc_ecma_transforms_module = {version = "0.11.0", path = "../module"}
|
||||
swc_ecma_transforms_proposal = {version = "0.11.0", path = "../proposal"}
|
||||
swc_ecma_transforms_react = {version = "0.12.0", path = "../react"}
|
||||
swc_ecma_transforms_testing = {version = "0.10.0", path = "../testing"}
|
||||
swc_ecma_transforms_typescript = {version = "0.12.0", path = "../typescript"}
|
||||
swc_ecma_transforms_compat = {version = "0.12.0", path = "../compat"}
|
||||
swc_ecma_transforms_module = {version = "0.12.0", path = "../module"}
|
||||
swc_ecma_transforms_proposal = {version = "0.12.0", path = "../proposal"}
|
||||
swc_ecma_transforms_react = {version = "0.13.0", path = "../react"}
|
||||
swc_ecma_transforms_testing = {version = "0.11.0", path = "../testing"}
|
||||
swc_ecma_transforms_typescript = {version = "0.13.0", path = "../typescript"}
|
||||
testing = {version = "0.10.0", path = "../../../testing"}
|
||||
|
@ -6,7 +6,7 @@ edition = "2018"
|
||||
license = "Apache-2.0/MIT"
|
||||
name = "swc_ecma_transforms_proposal"
|
||||
repository = "https://github.com/swc-project/swc.git"
|
||||
version = "0.11.0"
|
||||
version = "0.12.0"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
@ -21,14 +21,14 @@ serde = {version = "1.0.118", features = ["derive"]}
|
||||
smallvec = "1.6.0"
|
||||
swc_atoms = {version = "0.2", path = "../../../atoms"}
|
||||
swc_common = {version = "0.10.10", path = "../../../common"}
|
||||
swc_ecma_ast = {version = "0.42.0", path = "../../ast"}
|
||||
swc_ecma_loader = {version = "0.3.0", path = "../../loader", optional = true}
|
||||
swc_ecma_parser = {version = "0.52.0", path = "../../parser"}
|
||||
swc_ecma_transforms_base = {version = "0.10.0", path = "../base"}
|
||||
swc_ecma_utils = {version = "0.33.0", path = "../../utils"}
|
||||
swc_ecma_visit = {version = "0.28.0", path = "../../visit"}
|
||||
swc_ecma_ast = {version = "0.43.0", path = "../../ast"}
|
||||
swc_ecma_loader = {version = "0.4.0", path = "../../loader", optional = true}
|
||||
swc_ecma_parser = {version = "0.53.0", path = "../../parser"}
|
||||
swc_ecma_transforms_base = {version = "0.11.0", path = "../base"}
|
||||
swc_ecma_utils = {version = "0.34.0", path = "../../utils"}
|
||||
swc_ecma_visit = {version = "0.29.0", path = "../../visit"}
|
||||
|
||||
[dev-dependencies]
|
||||
swc_ecma_transforms_compat = {version = "0.11.0", path = "../compat"}
|
||||
swc_ecma_transforms_module = {version = "0.11.0", path = "../module"}
|
||||
swc_ecma_transforms_testing = {version = "0.10.0", path = "../testing"}
|
||||
swc_ecma_transforms_compat = {version = "0.12.0", path = "../compat"}
|
||||
swc_ecma_transforms_module = {version = "0.12.0", path = "../module"}
|
||||
swc_ecma_transforms_testing = {version = "0.11.0", path = "../testing"}
|
||||
|
@ -7,7 +7,7 @@ include = ["Cargo.toml", "src/**/*.rs"]
|
||||
license = "Apache-2.0/MIT"
|
||||
name = "swc_ecma_transforms_react"
|
||||
repository = "https://github.com/swc-project/swc.git"
|
||||
version = "0.12.1"
|
||||
version = "0.13.0"
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
@ -21,14 +21,14 @@ sha-1 = "0.9.4"
|
||||
string_enum = {version = "0.3.1", path = "../../../macros/string_enum"}
|
||||
swc_atoms = {version = "0.2", path = "../../../atoms"}
|
||||
swc_common = {version = "0.10.10", path = "../../../common"}
|
||||
swc_ecma_ast = {version = "0.42.0", path = "../../ast"}
|
||||
swc_ecma_parser = {version = "0.52.0", path = "../../parser"}
|
||||
swc_ecma_transforms_base = {version = "0.10.0", path = "../base"}
|
||||
swc_ecma_utils = {version = "0.33.0", path = "../../utils"}
|
||||
swc_ecma_visit = {version = "0.28.0", path = "../../visit"}
|
||||
swc_ecma_ast = {version = "0.43.0", path = "../../ast"}
|
||||
swc_ecma_parser = {version = "0.53.0", path = "../../parser"}
|
||||
swc_ecma_transforms_base = {version = "0.11.0", path = "../base"}
|
||||
swc_ecma_utils = {version = "0.34.0", path = "../../utils"}
|
||||
swc_ecma_visit = {version = "0.29.0", path = "../../visit"}
|
||||
|
||||
[dev-dependencies]
|
||||
swc_ecma_transforms_compat = {version = "0.11.0", path = "../compat/"}
|
||||
swc_ecma_transforms_module = {version = "0.11.0", path = "../module"}
|
||||
swc_ecma_transforms_testing = {version = "0.10.0", path = "../testing/"}
|
||||
swc_ecma_transforms_compat = {version = "0.12.0", path = "../compat/"}
|
||||
swc_ecma_transforms_module = {version = "0.12.0", path = "../module"}
|
||||
swc_ecma_transforms_testing = {version = "0.11.0", path = "../testing/"}
|
||||
testing = {version = "0.10.3", path = "../../../testing"}
|
||||
|
@ -6,7 +6,7 @@ edition = "2018"
|
||||
license = "Apache-2.0/MIT"
|
||||
name = "swc_ecma_transforms_testing"
|
||||
repository = "https://github.com/swc-project/swc.git"
|
||||
version = "0.10.0"
|
||||
version = "0.11.0"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
@ -15,11 +15,11 @@ ansi_term = "0.12.1"
|
||||
serde = "1"
|
||||
serde_json = "1"
|
||||
swc_common = {version = "0.10.10", path = "../../../common"}
|
||||
swc_ecma_ast = {version = "0.42.0", path = "../../ast"}
|
||||
swc_ecma_codegen = {version = "0.50.0", path = "../../codegen"}
|
||||
swc_ecma_parser = {version = "0.52.0", path = "../../parser"}
|
||||
swc_ecma_transforms_base = {version = "0.10.0", path = "../base"}
|
||||
swc_ecma_utils = {version = "0.33.0", path = "../../utils"}
|
||||
swc_ecma_visit = {version = "0.28.0", path = "../../visit"}
|
||||
swc_ecma_ast = {version = "0.43.0", path = "../../ast"}
|
||||
swc_ecma_codegen = {version = "0.51.0", path = "../../codegen"}
|
||||
swc_ecma_parser = {version = "0.53.0", path = "../../parser"}
|
||||
swc_ecma_transforms_base = {version = "0.11.0", path = "../base"}
|
||||
swc_ecma_utils = {version = "0.34.0", path = "../../utils"}
|
||||
swc_ecma_visit = {version = "0.29.0", path = "../../visit"}
|
||||
tempfile = "3.1.0"
|
||||
testing = {version = "0.10.3", path = "../../../testing"}
|
||||
|
@ -6,7 +6,7 @@ edition = "2018"
|
||||
license = "Apache-2.0/MIT"
|
||||
name = "swc_ecma_transforms_typescript"
|
||||
repository = "https://github.com/swc-project/swc.git"
|
||||
version = "0.12.1"
|
||||
version = "0.13.0"
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
@ -14,17 +14,17 @@ fxhash = "0.2.1"
|
||||
serde = {version = "1.0.118", features = ["derive"]}
|
||||
swc_atoms = {version = "0.2", path = "../../../atoms"}
|
||||
swc_common = {version = "0.10.10", path = "../../../common"}
|
||||
swc_ecma_ast = {version = "0.42.0", path = "../../ast"}
|
||||
swc_ecma_parser = {version = "0.52.0", path = "../../parser"}
|
||||
swc_ecma_transforms_base = {version = "0.10.0", path = "../base"}
|
||||
swc_ecma_utils = {version = "0.33.0", path = "../../utils"}
|
||||
swc_ecma_visit = {version = "0.28.0", path = "../../visit"}
|
||||
swc_ecma_ast = {version = "0.43.0", path = "../../ast"}
|
||||
swc_ecma_parser = {version = "0.53.0", path = "../../parser"}
|
||||
swc_ecma_transforms_base = {version = "0.11.0", path = "../base"}
|
||||
swc_ecma_utils = {version = "0.34.0", path = "../../utils"}
|
||||
swc_ecma_visit = {version = "0.29.0", path = "../../visit"}
|
||||
|
||||
[dev-dependencies]
|
||||
swc_ecma_codegen = {version = "0.50.0", path = "../../codegen"}
|
||||
swc_ecma_transforms_compat = {version = "0.11.0", path = "../compat"}
|
||||
swc_ecma_transforms_module = {version = "0.11.0", path = "../module"}
|
||||
swc_ecma_transforms_proposal = {version = "0.11.0", path = "../proposal/"}
|
||||
swc_ecma_transforms_testing = {version = "0.10.0", path = "../testing"}
|
||||
swc_ecma_codegen = {version = "0.51.0", path = "../../codegen"}
|
||||
swc_ecma_transforms_compat = {version = "0.12.0", path = "../compat"}
|
||||
swc_ecma_transforms_module = {version = "0.12.0", path = "../module"}
|
||||
swc_ecma_transforms_proposal = {version = "0.12.0", path = "../proposal/"}
|
||||
swc_ecma_transforms_testing = {version = "0.11.0", path = "../testing"}
|
||||
testing = {version = "0.10.3", path = "../../../testing"}
|
||||
walkdir = "2.3.1"
|
||||
|
@ -6,7 +6,7 @@ edition = "2018"
|
||||
license = "Apache-2.0/MIT"
|
||||
name = "swc_ecma_utils"
|
||||
repository = "https://github.com/swc-project/swc.git"
|
||||
version = "0.33.0"
|
||||
version = "0.34.0"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
@ -15,8 +15,8 @@ once_cell = "1"
|
||||
scoped-tls = "1"
|
||||
swc_atoms = {version = "0.2.0", path = "../../atoms"}
|
||||
swc_common = {version = "0.10.10", path = "../../common"}
|
||||
swc_ecma_ast = {version = "0.42.0", path = "../ast"}
|
||||
swc_ecma_visit = {version = "0.28.0", path = "../visit"}
|
||||
swc_ecma_ast = {version = "0.43.0", path = "../ast"}
|
||||
swc_ecma_visit = {version = "0.29.0", path = "../visit"}
|
||||
unicode-xid = "0.2"
|
||||
|
||||
[dev-dependencies]
|
||||
|
@ -6,11 +6,11 @@ edition = "2018"
|
||||
license = "Apache-2.0/MIT"
|
||||
name = "swc_ecma_visit"
|
||||
repository = "https://github.com/swc-project/swc.git"
|
||||
version = "0.28.0"
|
||||
version = "0.29.0"
|
||||
|
||||
[dependencies]
|
||||
num-bigint = {version = "0.2", features = ["serde"]}
|
||||
swc_atoms = {version = "0.2", path = "../../atoms"}
|
||||
swc_common = {version = "0.10.10", path = "../../common"}
|
||||
swc_ecma_ast = {version = "0.42.0", path = "../ast"}
|
||||
swc_ecma_ast = {version = "0.43.0", path = "../ast"}
|
||||
swc_visit = {version = "0.2.3", path = "../../visit"}
|
||||
|
@ -229,7 +229,6 @@ macro_rules! noop_fold_type {
|
||||
noop_fold_type!(fold_ts_property_signature, TsPropertySignature);
|
||||
noop_fold_type!(fold_ts_qualified_name, TsQualifiedName);
|
||||
noop_fold_type!(fold_ts_rest_type, TsRestType);
|
||||
noop_fold_type!(fold_ts_signature_decl, TsSignatureDecl);
|
||||
noop_fold_type!(fold_ts_this_type, TsThisType);
|
||||
noop_fold_type!(fold_ts_this_type_or_ident, TsThisTypeOrIdent);
|
||||
noop_fold_type!(fold_ts_tuple_type, TsTupleType);
|
||||
@ -305,7 +304,6 @@ macro_rules! noop_visit_type {
|
||||
noop_visit_type!(visit_ts_property_signature, TsPropertySignature);
|
||||
noop_visit_type!(visit_ts_qualified_name, TsQualifiedName);
|
||||
noop_visit_type!(visit_ts_rest_type, TsRestType);
|
||||
noop_visit_type!(visit_ts_signature_decl, TsSignatureDecl);
|
||||
noop_visit_type!(visit_ts_this_type, TsThisType);
|
||||
noop_visit_type!(visit_ts_this_type_or_ident, TsThisTypeOrIdent);
|
||||
noop_visit_type!(visit_ts_tuple_type, TsTupleType);
|
||||
@ -384,7 +382,6 @@ macro_rules! noop_visit_mut_type {
|
||||
noop_visit_mut_type!(visit_mut_ts_property_signature, TsPropertySignature);
|
||||
noop_visit_mut_type!(visit_mut_ts_qualified_name, TsQualifiedName);
|
||||
noop_visit_mut_type!(visit_mut_ts_rest_type, TsRestType);
|
||||
noop_visit_mut_type!(visit_mut_ts_signature_decl, TsSignatureDecl);
|
||||
noop_visit_mut_type!(visit_mut_ts_this_type, TsThisType);
|
||||
noop_visit_mut_type!(visit_mut_ts_this_type_or_ident, TsThisTypeOrIdent);
|
||||
noop_visit_mut_type!(visit_mut_ts_tuple_type, TsTupleType);
|
||||
@ -1298,13 +1295,6 @@ define!({
|
||||
TsQualifiedName(Box<TsQualifiedName>),
|
||||
Ident(Ident),
|
||||
}
|
||||
pub enum TsSignatureDecl {
|
||||
TsCallSignatureDecl(TsCallSignatureDecl),
|
||||
TsConstructSignatureDecl(TsConstructSignatureDecl),
|
||||
TsMethodSignature(TsMethodSignature),
|
||||
TsFnType(TsFnType),
|
||||
TsConstructorType(TsConstructorType),
|
||||
}
|
||||
pub enum TsTypeElement {
|
||||
TsCallSignatureDecl(TsCallSignatureDecl),
|
||||
TsConstructSignatureDecl(TsConstructSignatureDecl),
|
||||
|
@ -1709,13 +1709,6 @@ export interface TsQualifiedName extends Node {
|
||||
|
||||
export type TsEntityName = TsQualifiedName | Identifier;
|
||||
|
||||
export type TsSignatureDeclaration =
|
||||
| TsCallSignatureDeclaration
|
||||
| TsConstructSignatureDeclaration
|
||||
| TsMethodSignature
|
||||
| TsFunctionType
|
||||
| TsConstructorType;
|
||||
|
||||
export type TsTypeElement =
|
||||
| TsCallSignatureDeclaration
|
||||
| TsConstructSignatureDeclaration
|
||||
|
Loading…
Reference in New Issue
Block a user