diff --git a/.cargo/config.toml b/.cargo/config.toml index 29544d3d4a25..9d71e7f2c6b9 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,5 +1,6 @@ [alias] -xtask = "run --package xtask --" +codegen = "run --package generate-code --" +xtask = "run --package xtask --" [build] diff --git a/Cargo.lock b/Cargo.lock index 5521aad221bc..4b3b0b4173bd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -562,7 +562,7 @@ dependencies = [ "clap_lex 0.2.4", "indexmap 1.9.3", "once_cell", - "strsim", + "strsim 0.10.0", "termcolor", "terminal_size", "textwrap", @@ -570,24 +570,24 @@ dependencies = [ [[package]] name = "clap" -version = "4.4.18" +version = "4.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e578d6ec4194633722ccf9544794b71b1385c3c027efe0c55db226fc880865c" +checksum = "64acc1846d54c1fe936a78dc189c34e28d3f5afc348403f28ecf53660b9b8462" dependencies = [ "clap_builder", - "clap_derive 4.4.7", + "clap_derive 4.5.8", ] [[package]] name = "clap_builder" -version = "4.4.18" +version = "4.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4df4df40ec50c46000231c914968278b1eb05098cf8f1b3a518a95030e71d1c7" +checksum = "6fb8393d67ba2e7bfaf28a23458e4e2b543cc73a99595511eb207fdb8aede942" dependencies = [ "anstream", "anstyle", - "clap_lex 0.6.0", - "strsim", + "clap_lex 0.7.1", + "strsim 0.11.1", ] [[package]] @@ -605,11 +605,11 @@ dependencies = [ [[package]] name = "clap_derive" -version = "4.4.7" +version = "4.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf9804afaaf59a91e75b022a30fb7229a7901f60c755489cc61c9b423b836442" +checksum = "2bac35c6dafb060fd4d275d9a4ffae97917c13a6327903a8be2153cd964f7085" dependencies = [ - "heck 0.4.1", + "heck 0.5.0", "proc-macro2", "quote", "syn 2.0.55", @@ -626,9 +626,9 @@ dependencies = [ [[package]] name = "clap_lex" -version = "0.6.0" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "702fc72eb24e5a1e48ce58027a675bc24edd52096d5397d4aea7c6dd9eca0bd1" +checksum = "4b82cf0babdbd58558212896d1a4272303a57bdb245c2bf1147185fb45640e70" [[package]] name = "codspeed" @@ -892,7 +892,7 @@ dependencies = [ "anes", "cast", "ciborium", - "clap 4.4.18", + "clap 4.5.9", "criterion-plot", "is-terminal", "itertools 0.10.5", @@ -1024,7 +1024,7 @@ dependencies = [ "ident_case", "proc-macro2", "quote", - "strsim", + "strsim 0.10.0", "syn 1.0.109", ] @@ -1495,6 +1495,19 @@ dependencies = [ "byteorder", ] +[[package]] +name = "generate-code" +version = "0.1.0" +dependencies = [ + "Inflector", + "anyhow", + "clap 4.5.9", + "proc-macro2", + "quote", + "syn 2.0.55", + "walkdir", +] + [[package]] name = "generic-array" version = "0.14.7" @@ -1651,6 +1664,12 @@ version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" +[[package]] +name = "heck" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" + [[package]] name = "hermit-abi" version = "0.1.19" @@ -3621,6 +3640,12 @@ version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" +[[package]] +name = "strsim" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" + [[package]] name = "swc" version = "0.281.0" @@ -6901,7 +6926,7 @@ dependencies = [ "anyhow", "cargo_metadata", "chrono", - "clap 4.4.18", + "clap 4.5.9", "semver 1.0.21", "serde", "serde_derive", diff --git a/Cargo.toml b/Cargo.toml index e3f57b61e957..08e84c3ef6b3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,12 +26,15 @@ members = [ "crates/swc_transform_common", "crates/swc_typescript", "crates/swc_fast_ts_strip", + "tools/generate-code", ] resolver = "2" [workspace.package] + license = "Apache-2.0" repository = "https://github.com/swc-project/swc.git" + [workspace.dependencies] # bytecheck version should be in sync with rkyv version. Do not bump individually. bytecheck = "0.6.10" diff --git a/bindings/Cargo.lock b/bindings/Cargo.lock index 630b6511e1f5..1b410f08b04c 100644 --- a/bindings/Cargo.lock +++ b/bindings/Cargo.lock @@ -230,7 +230,7 @@ dependencies = [ "path-clean 0.1.0", "serde", "serde_json", - "swc_core 0.98.0", + "swc_core", "swc_malloc", "tracing", "tracing-chrome", @@ -246,7 +246,7 @@ dependencies = [ "getrandom", "serde", "serde-wasm-bindgen", - "swc_core 0.98.0", + "swc_core", "tracing", "wasm-bindgen", ] @@ -263,10 +263,10 @@ dependencies = [ "once_cell", "serde", "serde-wasm-bindgen", - "swc 0.281.0", + "swc", "swc_common", "swc_ecma_ast", - "swc_ecma_transforms 0.234.0", + "swc_ecma_transforms", "swc_ecma_visit", "wasm-bindgen", "wasm-bindgen-futures", @@ -286,9 +286,9 @@ dependencies = [ "serde", "serde_json", "sourcemap", - "swc_compiler_base 0.14.0", + "swc_compiler_base", "swc_config", - "swc_core 0.98.0", + "swc_core", "swc_error_reporters", "swc_malloc", "swc_nodejs_common", @@ -306,7 +306,7 @@ dependencies = [ "getrandom", "serde", "serde-wasm-bindgen", - "swc_core 0.98.0", + "swc_core", "tracing", "wasm-bindgen", ] @@ -2886,59 +2886,6 @@ version = "2.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" -[[package]] -name = "swc" -version = "0.280.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fca6045a275a36311c84ff269e1909070dc738d5078a872140f03e702da2acf" -dependencies = [ - "anyhow", - "base64", - "dashmap", - "either", - "indexmap 2.2.6", - "jsonc-parser", - "lru", - "once_cell", - "parking_lot", - "pathdiff", - "regex", - "rustc-hash", - "serde", - "serde_json", - "sourcemap", - "swc_atoms", - "swc_cached", - "swc_common", - "swc_compiler_base 0.13.0", - "swc_config", - "swc_ecma_ast", - "swc_ecma_codegen 0.152.1", - "swc_ecma_ext_transforms 0.117.0", - "swc_ecma_lints 0.96.0", - "swc_ecma_loader", - "swc_ecma_minifier 0.198.1", - "swc_ecma_parser", - "swc_ecma_preset_env 0.211.0", - "swc_ecma_transforms 0.233.0", - "swc_ecma_transforms_base 0.141.1", - "swc_ecma_transforms_compat 0.167.0", - "swc_ecma_transforms_optimization 0.202.1", - "swc_ecma_utils 0.131.0", - "swc_ecma_visit", - "swc_error_reporters", - "swc_node_comments", - "swc_plugin_proxy", - "swc_plugin_runner", - "swc_timer", - "swc_transform_common", - "swc_typescript 0.2.0", - "swc_visit", - "tokio", - "tracing", - "url", -] - [[package]] name = "swc" version = "0.281.0" @@ -2965,21 +2912,21 @@ dependencies = [ "swc_atoms", "swc_cached", "swc_common", - "swc_compiler_base 0.14.0", + "swc_compiler_base", "swc_config", "swc_ecma_ast", - "swc_ecma_codegen 0.153.0", - "swc_ecma_ext_transforms 0.118.0", - "swc_ecma_lints 0.97.0", + "swc_ecma_codegen", + "swc_ecma_ext_transforms", + "swc_ecma_lints", "swc_ecma_loader", - "swc_ecma_minifier 0.199.0", + "swc_ecma_minifier", "swc_ecma_parser", - "swc_ecma_preset_env 0.212.0", - "swc_ecma_transforms 0.234.0", - "swc_ecma_transforms_base 0.142.0", - "swc_ecma_transforms_compat 0.168.0", - "swc_ecma_transforms_optimization 0.203.0", - "swc_ecma_utils 0.132.0", + "swc_ecma_preset_env", + "swc_ecma_transforms", + "swc_ecma_transforms_base", + "swc_ecma_transforms_compat", + "swc_ecma_transforms_optimization", + "swc_ecma_utils", "swc_ecma_visit", "swc_error_reporters", "swc_node_comments", @@ -2987,7 +2934,7 @@ dependencies = [ "swc_plugin_runner", "swc_timer", "swc_transform_common", - "swc_typescript 0.3.0", + "swc_typescript", "swc_visit", "tokio", "tracing", @@ -3040,12 +2987,12 @@ dependencies = [ "swc_atoms", "swc_common", "swc_ecma_ast", - "swc_ecma_codegen 0.153.0", + "swc_ecma_codegen", "swc_ecma_loader", "swc_ecma_parser", - "swc_ecma_transforms_base 0.142.0", - "swc_ecma_transforms_optimization 0.203.0", - "swc_ecma_utils 0.132.0", + "swc_ecma_transforms_base", + "swc_ecma_transforms_optimization", + "swc_ecma_utils", "swc_ecma_visit", "swc_fast_graph", "swc_graph_analyzer", @@ -3076,9 +3023,9 @@ dependencies = [ [[package]] name = "swc_cli_impl" -version = "0.15.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a0ad139e9ea9f2b37ca41981cade18644872ce7d559333b09bd072bbf4d60bc2" +checksum = "98122f820bbdf54d10f59ecf3560768de44b13acecada3f141332d6ec2539429" dependencies = [ "anyhow", "atty", @@ -3090,7 +3037,7 @@ dependencies = [ "serde", "serde_json", "sourcemap", - "swc_core 0.97.5", + "swc_core", "tracing", "tracing-chrome", "tracing-futures", @@ -3130,31 +3077,6 @@ dependencies = [ "url", ] -[[package]] -name = "swc_compiler_base" -version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "318b5d461f1535238bd1a40c2a78efdad7a9045edd34dd46f2de71da634cc984" -dependencies = [ - "anyhow", - "base64", - "once_cell", - "pathdiff", - "rustc-hash", - "serde", - "serde_json", - "sourcemap", - "swc_atoms", - "swc_common", - "swc_config", - "swc_ecma_ast", - "swc_ecma_codegen 0.152.1", - "swc_ecma_minifier 0.198.1", - "swc_ecma_parser", - "swc_ecma_visit", - "swc_timer", -] - [[package]] name = "swc_compiler_base" version = "0.14.0" @@ -3175,8 +3097,8 @@ dependencies = [ "swc_common", "swc_config", "swc_ecma_ast", - "swc_ecma_codegen 0.153.0", - "swc_ecma_minifier 0.199.0", + "swc_ecma_codegen", + "swc_ecma_minifier", "swc_ecma_parser", "swc_ecma_visit", "swc_timer", @@ -3209,23 +3131,6 @@ dependencies = [ "syn 2.0.48", ] -[[package]] -name = "swc_core" -version = "0.97.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22e1e88bd5479eac72b74594f041078095b80d3c83656c8806ba2ee033850dcf" -dependencies = [ - "swc 0.280.0", - "swc_allocator", - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_plugin_proxy", - "swc_plugin_runner", - "swc_trace_macro", - "vergen", -] - [[package]] name = "swc_core" version = "0.98.0" @@ -3233,23 +3138,24 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0a3203a4eb0513e62018401024f5816bc12eaff78da17d4098e80a0ad1b34642" dependencies = [ "binding_macros", - "swc 0.281.0", + "swc", "swc_allocator", "swc_atoms", "swc_bundler", "swc_common", "swc_ecma_ast", - "swc_ecma_codegen 0.153.0", + "swc_ecma_codegen", "swc_ecma_loader", - "swc_ecma_minifier 0.199.0", + "swc_ecma_minifier", "swc_ecma_parser", - "swc_ecma_transforms_base 0.142.0", + "swc_ecma_transforms_base", "swc_ecma_visit", "swc_malloc", "swc_node_bundler", "swc_nodejs_common", "swc_plugin_proxy", "swc_plugin_runner", + "swc_trace_macro", "vergen", ] @@ -3273,25 +3179,6 @@ dependencies = [ "unicode-id-start", ] -[[package]] -name = "swc_ecma_codegen" -version = "0.152.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5987634c4d593a4b67e8a8c5f983f0d93cbd81bd3d5364db029f1e87bf5ddc56" -dependencies = [ - "memchr", - "num-bigint", - "once_cell", - "rustc-hash", - "serde", - "sourcemap", - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_codegen_macros", - "tracing", -] - [[package]] name = "swc_ecma_codegen" version = "0.153.0" @@ -3323,23 +3210,6 @@ dependencies = [ "syn 2.0.48", ] -[[package]] -name = "swc_ecma_compat_bugfixes" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4504f58f58c5806df2609f07736526a32da3c81e657e7231dbae8f6214f01baa" -dependencies = [ - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_compat_es2015 0.8.1", - "swc_ecma_transforms_base 0.141.1", - "swc_ecma_utils 0.131.0", - "swc_ecma_visit", - "swc_trace_macro", - "tracing", -] - [[package]] name = "swc_ecma_compat_bugfixes" version = "0.9.0" @@ -3349,27 +3219,14 @@ dependencies = [ "swc_atoms", "swc_common", "swc_ecma_ast", - "swc_ecma_compat_es2015 0.9.0", - "swc_ecma_transforms_base 0.142.0", - "swc_ecma_utils 0.132.0", + "swc_ecma_compat_es2015", + "swc_ecma_transforms_base", + "swc_ecma_utils", "swc_ecma_visit", "swc_trace_macro", "tracing", ] -[[package]] -name = "swc_ecma_compat_common" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c9ac5837d8f763f1dade90afaecc20e22e543bdbdcecfce8501fceb35913daf" -dependencies = [ - "swc_common", - "swc_ecma_ast", - "swc_ecma_utils 0.131.0", - "swc_ecma_visit", - "swc_trace_macro", -] - [[package]] name = "swc_ecma_compat_common" version = "0.9.0" @@ -3378,35 +3235,9 @@ checksum = "8fcb8561e17e49d398a00acd78a9ca328f8d861ff3136384311e3d0564a81f07" dependencies = [ "swc_common", "swc_ecma_ast", - "swc_ecma_utils 0.132.0", - "swc_ecma_visit", - "swc_trace_macro", -] - -[[package]] -name = "swc_ecma_compat_es2015" -version = "0.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "906168a4ff01b9f0cf0064b5cd5843a66cca7019691cb8d755774caf5f401b5f" -dependencies = [ - "arrayvec", - "indexmap 2.2.6", - "is-macro", - "serde", - "serde_derive", - "smallvec", - "swc_atoms", - "swc_common", - "swc_config", - "swc_ecma_ast", - "swc_ecma_compat_common 0.8.0", - "swc_ecma_transforms_base 0.141.1", - "swc_ecma_transforms_classes 0.130.0", - "swc_ecma_transforms_macros", - "swc_ecma_utils 0.131.0", + "swc_ecma_utils", "swc_ecma_visit", "swc_trace_macro", - "tracing", ] [[package]] @@ -3425,28 +3256,11 @@ dependencies = [ "swc_common", "swc_config", "swc_ecma_ast", - "swc_ecma_compat_common 0.9.0", - "swc_ecma_transforms_base 0.142.0", - "swc_ecma_transforms_classes 0.131.0", - "swc_ecma_transforms_macros", - "swc_ecma_utils 0.132.0", - "swc_ecma_visit", - "swc_trace_macro", - "tracing", -] - -[[package]] -name = "swc_ecma_compat_es2016" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8d125c3b1cf2298497c33da736946bb5c96767dc892c14c8105b18b784b383b" -dependencies = [ - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_transforms_base 0.141.1", + "swc_ecma_compat_common", + "swc_ecma_transforms_base", + "swc_ecma_transforms_classes", "swc_ecma_transforms_macros", - "swc_ecma_utils 0.131.0", + "swc_ecma_utils", "swc_ecma_visit", "swc_trace_macro", "tracing", @@ -3461,27 +3275,9 @@ dependencies = [ "swc_atoms", "swc_common", "swc_ecma_ast", - "swc_ecma_transforms_base 0.142.0", + "swc_ecma_transforms_base", "swc_ecma_transforms_macros", - "swc_ecma_utils 0.132.0", - "swc_ecma_visit", - "swc_trace_macro", - "tracing", -] - -[[package]] -name = "swc_ecma_compat_es2017" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29220224361bee3be154d28263ce758a2c780da73154c37ce2faea6b8398ec5c" -dependencies = [ - "serde", - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_transforms_base 0.141.1", - "swc_ecma_transforms_macros", - "swc_ecma_utils 0.131.0", + "swc_ecma_utils", "swc_ecma_visit", "swc_trace_macro", "tracing", @@ -3497,28 +3293,9 @@ dependencies = [ "swc_atoms", "swc_common", "swc_ecma_ast", - "swc_ecma_transforms_base 0.142.0", - "swc_ecma_transforms_macros", - "swc_ecma_utils 0.132.0", - "swc_ecma_visit", - "swc_trace_macro", - "tracing", -] - -[[package]] -name = "swc_ecma_compat_es2018" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94529aea2ad2ed3c1823df039e3a663059b57b4ca1a870f5d1346961ebfe25ef" -dependencies = [ - "serde", - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_compat_common 0.8.0", - "swc_ecma_transforms_base 0.141.1", + "swc_ecma_transforms_base", "swc_ecma_transforms_macros", - "swc_ecma_utils 0.131.0", + "swc_ecma_utils", "swc_ecma_visit", "swc_trace_macro", "tracing", @@ -3534,26 +3311,10 @@ dependencies = [ "swc_atoms", "swc_common", "swc_ecma_ast", - "swc_ecma_compat_common 0.9.0", - "swc_ecma_transforms_base 0.142.0", + "swc_ecma_compat_common", + "swc_ecma_transforms_base", "swc_ecma_transforms_macros", - "swc_ecma_utils 0.132.0", - "swc_ecma_visit", - "swc_trace_macro", - "tracing", -] - -[[package]] -name = "swc_ecma_compat_es2019" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38eb70eadebadea19fbea565a629992bbd715a53ef4947bd54c51de4cbb8b668" -dependencies = [ - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_transforms_base 0.141.1", - "swc_ecma_utils 0.131.0", + "swc_ecma_utils", "swc_ecma_visit", "swc_trace_macro", "tracing", @@ -3568,26 +3329,8 @@ dependencies = [ "swc_atoms", "swc_common", "swc_ecma_ast", - "swc_ecma_transforms_base 0.142.0", - "swc_ecma_utils 0.132.0", - "swc_ecma_visit", - "swc_trace_macro", - "tracing", -] - -[[package]] -name = "swc_ecma_compat_es2020" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d36765e639d8d56a376f591b15fca7dee0c9e6d37ad33845b0ce8f356b24f2f" -dependencies = [ - "serde", - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_compat_es2022 0.8.0", - "swc_ecma_transforms_base 0.141.1", - "swc_ecma_utils 0.131.0", + "swc_ecma_transforms_base", + "swc_ecma_utils", "swc_ecma_visit", "swc_trace_macro", "tracing", @@ -3603,25 +3346,9 @@ dependencies = [ "swc_atoms", "swc_common", "swc_ecma_ast", - "swc_ecma_compat_es2022 0.9.0", - "swc_ecma_transforms_base 0.142.0", - "swc_ecma_utils 0.132.0", - "swc_ecma_visit", - "swc_trace_macro", - "tracing", -] - -[[package]] -name = "swc_ecma_compat_es2021" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e918c74bf2fc267af07c5bacf7913fec5027be85c4051139719e83a6178d5214" -dependencies = [ - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_transforms_base 0.141.1", - "swc_ecma_utils 0.131.0", + "swc_ecma_compat_es2022", + "swc_ecma_transforms_base", + "swc_ecma_utils", "swc_ecma_visit", "swc_trace_macro", "tracing", @@ -3636,27 +3363,8 @@ dependencies = [ "swc_atoms", "swc_common", "swc_ecma_ast", - "swc_ecma_transforms_base 0.142.0", - "swc_ecma_utils 0.132.0", - "swc_ecma_visit", - "swc_trace_macro", - "tracing", -] - -[[package]] -name = "swc_ecma_compat_es2022" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29ecb003c73ae936b19689ebf395fb472de193ee9c446255d4993b5d79205f44" -dependencies = [ - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_compat_common 0.8.0", - "swc_ecma_transforms_base 0.141.1", - "swc_ecma_transforms_classes 0.130.0", - "swc_ecma_transforms_macros", - "swc_ecma_utils 0.131.0", + "swc_ecma_transforms_base", + "swc_ecma_utils", "swc_ecma_visit", "swc_trace_macro", "tracing", @@ -3671,26 +3379,11 @@ dependencies = [ "swc_atoms", "swc_common", "swc_ecma_ast", - "swc_ecma_compat_common 0.9.0", - "swc_ecma_transforms_base 0.142.0", - "swc_ecma_transforms_classes 0.131.0", + "swc_ecma_compat_common", + "swc_ecma_transforms_base", + "swc_ecma_transforms_classes", "swc_ecma_transforms_macros", - "swc_ecma_utils 0.132.0", - "swc_ecma_visit", - "swc_trace_macro", - "tracing", -] - -[[package]] -name = "swc_ecma_compat_es3" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9602851683999491f784e85637f42637ad423731f92b0fcaf35c92e87e8cf1d0" -dependencies = [ - "swc_common", - "swc_ecma_ast", - "swc_ecma_transforms_base 0.141.1", - "swc_ecma_utils 0.131.0", + "swc_ecma_utils", "swc_ecma_visit", "swc_trace_macro", "tracing", @@ -3704,58 +3397,24 @@ checksum = "32f48da4090b794bca6640ce2cf33248d6c058d2e2aab33defcd007ec221c863" dependencies = [ "swc_common", "swc_ecma_ast", - "swc_ecma_transforms_base 0.142.0", - "swc_ecma_utils 0.132.0", + "swc_ecma_transforms_base", + "swc_ecma_utils", "swc_ecma_visit", "swc_trace_macro", "tracing", ] -[[package]] -name = "swc_ecma_ext_transforms" -version = "0.117.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4cd868476186e705083f909ad8bfbeefae557ead7ae829b61ba9b95d7187d67a" -dependencies = [ - "phf", - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_utils 0.131.0", - "swc_ecma_visit", -] - [[package]] name = "swc_ecma_ext_transforms" version = "0.118.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "373d73f2c66b52261e9b34d0588101db6d7727ba3ebd4eb588424983b7ae9627" -dependencies = [ - "phf", - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_utils 0.132.0", - "swc_ecma_visit", -] - -[[package]] -name = "swc_ecma_lints" -version = "0.96.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11ee54eca81b5f6460d7e9794fc5b65f172987fb58aa04a53d071b59cb7403e8" +checksum = "373d73f2c66b52261e9b34d0588101db6d7727ba3ebd4eb588424983b7ae9627" dependencies = [ - "auto_impl", - "dashmap", - "parking_lot", - "rayon", - "regex", - "serde", + "phf", "swc_atoms", "swc_common", - "swc_config", "swc_ecma_ast", - "swc_ecma_utils 0.131.0", + "swc_ecma_utils", "swc_ecma_visit", ] @@ -3775,7 +3434,7 @@ dependencies = [ "swc_common", "swc_config", "swc_ecma_ast", - "swc_ecma_utils 0.132.0", + "swc_ecma_utils", "swc_ecma_visit", ] @@ -3801,41 +3460,6 @@ dependencies = [ "tracing", ] -[[package]] -name = "swc_ecma_minifier" -version = "0.198.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00d96c691788c08479f17294318ea09aee275beb28eee4edb73a5c02734b5095" -dependencies = [ - "arrayvec", - "indexmap 2.2.6", - "num-bigint", - "num_cpus", - "once_cell", - "parking_lot", - "phf", - "radix_fmt", - "rayon", - "regex", - "rustc-hash", - "ryu-js", - "serde", - "serde_json", - "swc_atoms", - "swc_common", - "swc_config", - "swc_ecma_ast", - "swc_ecma_codegen 0.152.1", - "swc_ecma_parser", - "swc_ecma_transforms_base 0.141.1", - "swc_ecma_transforms_optimization 0.202.1", - "swc_ecma_usage_analyzer 0.27.0", - "swc_ecma_utils 0.131.0", - "swc_ecma_visit", - "swc_timer", - "tracing", -] - [[package]] name = "swc_ecma_minifier" version = "0.199.0" @@ -3860,12 +3484,12 @@ dependencies = [ "swc_common", "swc_config", "swc_ecma_ast", - "swc_ecma_codegen 0.153.0", + "swc_ecma_codegen", "swc_ecma_parser", - "swc_ecma_transforms_base 0.142.0", - "swc_ecma_transforms_optimization 0.203.0", - "swc_ecma_usage_analyzer 0.28.0", - "swc_ecma_utils 0.132.0", + "swc_ecma_transforms_base", + "swc_ecma_transforms_optimization", + "swc_ecma_usage_analyzer", + "swc_ecma_utils", "swc_ecma_visit", "swc_timer", "tracing", @@ -3893,31 +3517,6 @@ dependencies = [ "typed-arena", ] -[[package]] -name = "swc_ecma_preset_env" -version = "0.211.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02a32845ac0c0a2a66d77b03732889a3aeb4a961e476f7e7647b3e4e07056533" -dependencies = [ - "anyhow", - "dashmap", - "indexmap 2.2.6", - "once_cell", - "preset_env_base", - "rustc-hash", - "semver 1.0.21", - "serde", - "serde_json", - "st-map", - "string_enum", - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_transforms 0.233.0", - "swc_ecma_utils 0.131.0", - "swc_ecma_visit", -] - [[package]] name = "swc_ecma_preset_env" version = "0.212.0" @@ -3938,28 +3537,8 @@ dependencies = [ "swc_atoms", "swc_common", "swc_ecma_ast", - "swc_ecma_transforms 0.234.0", - "swc_ecma_utils 0.132.0", - "swc_ecma_visit", -] - -[[package]] -name = "swc_ecma_transforms" -version = "0.233.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19259852636b8b4e99d8a85c3970d388b595b507e4f9b3d233d15e006b41bc69" -dependencies = [ - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_transforms_base 0.141.1", - "swc_ecma_transforms_compat 0.167.0", - "swc_ecma_transforms_module 0.184.0", - "swc_ecma_transforms_optimization 0.202.1", - "swc_ecma_transforms_proposal 0.175.0", - "swc_ecma_transforms_react 0.187.0", - "swc_ecma_transforms_typescript 0.192.1", - "swc_ecma_utils 0.131.0", + "swc_ecma_transforms", + "swc_ecma_utils", "swc_ecma_visit", ] @@ -3972,39 +3551,15 @@ dependencies = [ "swc_atoms", "swc_common", "swc_ecma_ast", - "swc_ecma_transforms_base 0.142.0", - "swc_ecma_transforms_compat 0.168.0", - "swc_ecma_transforms_module 0.185.0", - "swc_ecma_transforms_optimization 0.203.0", - "swc_ecma_transforms_proposal 0.176.0", - "swc_ecma_transforms_react 0.188.0", - "swc_ecma_transforms_typescript 0.193.0", - "swc_ecma_utils 0.132.0", - "swc_ecma_visit", -] - -[[package]] -name = "swc_ecma_transforms_base" -version = "0.141.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "694165e1630ee48cc9ae00f9a2c0bcaa8eebfae1f55ed8ec7418537adee1d2b0" -dependencies = [ - "better_scoped_tls", - "bitflags 2.5.0", - "indexmap 2.2.6", - "once_cell", - "phf", - "rayon", - "rustc-hash", - "serde", - "smallvec", - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_parser", - "swc_ecma_utils 0.131.0", + "swc_ecma_transforms_base", + "swc_ecma_transforms_compat", + "swc_ecma_transforms_module", + "swc_ecma_transforms_optimization", + "swc_ecma_transforms_proposal", + "swc_ecma_transforms_react", + "swc_ecma_transforms_typescript", + "swc_ecma_utils", "swc_ecma_visit", - "tracing", ] [[package]] @@ -4026,25 +3581,11 @@ dependencies = [ "swc_common", "swc_ecma_ast", "swc_ecma_parser", - "swc_ecma_utils 0.132.0", + "swc_ecma_utils", "swc_ecma_visit", "tracing", ] -[[package]] -name = "swc_ecma_transforms_classes" -version = "0.130.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "337bd90a98a2889e531d608dccd72aa58003ff89cf6a79afb55f45ea05ef2d7a" -dependencies = [ - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_transforms_base 0.141.1", - "swc_ecma_utils 0.131.0", - "swc_ecma_visit", -] - [[package]] name = "swc_ecma_transforms_classes" version = "0.131.0" @@ -4054,46 +3595,9 @@ dependencies = [ "swc_atoms", "swc_common", "swc_ecma_ast", - "swc_ecma_transforms_base 0.142.0", - "swc_ecma_utils 0.132.0", - "swc_ecma_visit", -] - -[[package]] -name = "swc_ecma_transforms_compat" -version = "0.167.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b15b38a4f76a157d40ccd7d55b51bcdaf6c7fe90151ff9186e5d80cc6865adc" -dependencies = [ - "arrayvec", - "indexmap 2.2.6", - "is-macro", - "num-bigint", - "rayon", - "serde", - "smallvec", - "swc_atoms", - "swc_common", - "swc_config", - "swc_ecma_ast", - "swc_ecma_compat_bugfixes 0.8.0", - "swc_ecma_compat_common 0.8.0", - "swc_ecma_compat_es2015 0.8.1", - "swc_ecma_compat_es2016 0.8.0", - "swc_ecma_compat_es2017 0.8.0", - "swc_ecma_compat_es2018 0.8.0", - "swc_ecma_compat_es2019 0.8.0", - "swc_ecma_compat_es2020 0.8.0", - "swc_ecma_compat_es2021 0.8.0", - "swc_ecma_compat_es2022 0.8.0", - "swc_ecma_compat_es3 0.8.0", - "swc_ecma_transforms_base 0.141.1", - "swc_ecma_transforms_classes 0.130.0", - "swc_ecma_transforms_macros", - "swc_ecma_utils 0.131.0", + "swc_ecma_transforms_base", + "swc_ecma_utils", "swc_ecma_visit", - "swc_trace_macro", - "tracing", ] [[package]] @@ -4113,21 +3617,21 @@ dependencies = [ "swc_common", "swc_config", "swc_ecma_ast", - "swc_ecma_compat_bugfixes 0.9.0", - "swc_ecma_compat_common 0.9.0", - "swc_ecma_compat_es2015 0.9.0", - "swc_ecma_compat_es2016 0.9.0", - "swc_ecma_compat_es2017 0.9.0", - "swc_ecma_compat_es2018 0.9.0", - "swc_ecma_compat_es2019 0.9.0", - "swc_ecma_compat_es2020 0.9.0", - "swc_ecma_compat_es2021 0.9.0", - "swc_ecma_compat_es2022 0.9.0", - "swc_ecma_compat_es3 0.9.0", - "swc_ecma_transforms_base 0.142.0", - "swc_ecma_transforms_classes 0.131.0", + "swc_ecma_compat_bugfixes", + "swc_ecma_compat_common", + "swc_ecma_compat_es2015", + "swc_ecma_compat_es2016", + "swc_ecma_compat_es2017", + "swc_ecma_compat_es2018", + "swc_ecma_compat_es2019", + "swc_ecma_compat_es2020", + "swc_ecma_compat_es2021", + "swc_ecma_compat_es2022", + "swc_ecma_compat_es3", + "swc_ecma_transforms_base", + "swc_ecma_transforms_classes", "swc_ecma_transforms_macros", - "swc_ecma_utils 0.132.0", + "swc_ecma_utils", "swc_ecma_visit", "swc_trace_macro", "tracing", @@ -4145,33 +3649,6 @@ dependencies = [ "syn 2.0.48", ] -[[package]] -name = "swc_ecma_transforms_module" -version = "0.184.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9822e947a81449ba6dc6f3709bfbdfc0c3411417415e4f886e4191141fbb6966" -dependencies = [ - "Inflector", - "anyhow", - "bitflags 2.5.0", - "indexmap 2.2.6", - "is-macro", - "path-clean 0.1.0", - "pathdiff", - "regex", - "serde", - "swc_atoms", - "swc_cached", - "swc_common", - "swc_ecma_ast", - "swc_ecma_loader", - "swc_ecma_parser", - "swc_ecma_transforms_base 0.141.1", - "swc_ecma_utils 0.131.0", - "swc_ecma_visit", - "tracing", -] - [[package]] name = "swc_ecma_transforms_module" version = "0.185.0" @@ -4193,34 +3670,9 @@ dependencies = [ "swc_ecma_ast", "swc_ecma_loader", "swc_ecma_parser", - "swc_ecma_transforms_base 0.142.0", - "swc_ecma_utils 0.132.0", - "swc_ecma_visit", - "tracing", -] - -[[package]] -name = "swc_ecma_transforms_optimization" -version = "0.202.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2bd9d75b06e42313a2be787d73a5bffe3f9875f6a9d47917bc84bfebf2e09086" -dependencies = [ - "dashmap", - "indexmap 2.2.6", - "once_cell", - "petgraph", - "rayon", - "rustc-hash", - "serde_json", - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_parser", - "swc_ecma_transforms_base 0.141.1", - "swc_ecma_transforms_macros", - "swc_ecma_utils 0.131.0", + "swc_ecma_transforms_base", + "swc_ecma_utils", "swc_ecma_visit", - "swc_fast_graph", "tracing", ] @@ -4241,34 +3693,14 @@ dependencies = [ "swc_common", "swc_ecma_ast", "swc_ecma_parser", - "swc_ecma_transforms_base 0.142.0", + "swc_ecma_transforms_base", "swc_ecma_transforms_macros", - "swc_ecma_utils 0.132.0", + "swc_ecma_utils", "swc_ecma_visit", "swc_fast_graph", "tracing", ] -[[package]] -name = "swc_ecma_transforms_proposal" -version = "0.175.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08c3a10a3b31a85dba1537b24b8c5674d7cc7e4b8837740adbcadaf1585ce9fa" -dependencies = [ - "either", - "rustc-hash", - "serde", - "smallvec", - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_transforms_base 0.141.1", - "swc_ecma_transforms_classes 0.130.0", - "swc_ecma_transforms_macros", - "swc_ecma_utils 0.131.0", - "swc_ecma_visit", -] - [[package]] name = "swc_ecma_transforms_proposal" version = "0.176.0" @@ -4282,35 +3714,10 @@ dependencies = [ "swc_atoms", "swc_common", "swc_ecma_ast", - "swc_ecma_transforms_base 0.142.0", - "swc_ecma_transforms_classes 0.131.0", - "swc_ecma_transforms_macros", - "swc_ecma_utils 0.132.0", - "swc_ecma_visit", -] - -[[package]] -name = "swc_ecma_transforms_react" -version = "0.187.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55cc2a2a733f5812f84e22b889a046c7546d42b7273bc72a3221e5c66dc9d99f" -dependencies = [ - "base64", - "dashmap", - "indexmap 2.2.6", - "once_cell", - "rayon", - "serde", - "sha1", - "string_enum", - "swc_atoms", - "swc_common", - "swc_config", - "swc_ecma_ast", - "swc_ecma_parser", - "swc_ecma_transforms_base 0.141.1", + "swc_ecma_transforms_base", + "swc_ecma_transforms_classes", "swc_ecma_transforms_macros", - "swc_ecma_utils 0.131.0", + "swc_ecma_utils", "swc_ecma_visit", ] @@ -4333,26 +3740,9 @@ dependencies = [ "swc_config", "swc_ecma_ast", "swc_ecma_parser", - "swc_ecma_transforms_base 0.142.0", + "swc_ecma_transforms_base", "swc_ecma_transforms_macros", - "swc_ecma_utils 0.132.0", - "swc_ecma_visit", -] - -[[package]] -name = "swc_ecma_transforms_typescript" -version = "0.192.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "147c1602d0c5cb6c6f910a883ab0b063ccf377a4c0d913ea6425275566736f75" -dependencies = [ - "ryu-js", - "serde", - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_transforms_base 0.141.1", - "swc_ecma_transforms_react 0.187.0", - "swc_ecma_utils 0.131.0", + "swc_ecma_utils", "swc_ecma_visit", ] @@ -4367,27 +3757,10 @@ dependencies = [ "swc_atoms", "swc_common", "swc_ecma_ast", - "swc_ecma_transforms_base 0.142.0", - "swc_ecma_transforms_react 0.188.0", - "swc_ecma_utils 0.132.0", - "swc_ecma_visit", -] - -[[package]] -name = "swc_ecma_usage_analyzer" -version = "0.27.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68035eac5963d013e012c3c7ed0d755793eeeb058aeff62600ce2da64c09b7bb" -dependencies = [ - "indexmap 2.2.6", - "rustc-hash", - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_utils 0.131.0", + "swc_ecma_transforms_base", + "swc_ecma_transforms_react", + "swc_ecma_utils", "swc_ecma_visit", - "swc_timer", - "tracing", ] [[package]] @@ -4401,32 +3774,12 @@ dependencies = [ "swc_atoms", "swc_common", "swc_ecma_ast", - "swc_ecma_utils 0.132.0", + "swc_ecma_utils", "swc_ecma_visit", "swc_timer", "tracing", ] -[[package]] -name = "swc_ecma_utils" -version = "0.131.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37cd4c3feffadeb7df66104eaa99a1cd283467976e17d640216d38a5094ca179" -dependencies = [ - "indexmap 2.2.6", - "num_cpus", - "once_cell", - "rayon", - "rustc-hash", - "ryu-js", - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_visit", - "tracing", - "unicode-id", -] - [[package]] name = "swc_ecma_utils" version = "0.132.0" @@ -4509,10 +3862,10 @@ dependencies = [ "serde", "swc_common", "swc_ecma_ast", - "swc_ecma_codegen 0.153.0", + "swc_ecma_codegen", "swc_ecma_parser", - "swc_ecma_transforms_base 0.142.0", - "swc_ecma_transforms_typescript 0.193.0", + "swc_ecma_transforms_base", + "swc_ecma_transforms_typescript", "swc_ecma_visit", ] @@ -4564,16 +3917,16 @@ dependencies = [ "serde", "serde_json", "string_enum", - "swc 0.281.0", + "swc", "swc_atoms", "swc_bundler", "swc_common", "swc_ecma_ast", - "swc_ecma_codegen 0.153.0", + "swc_ecma_codegen", "swc_ecma_loader", "swc_ecma_parser", - "swc_ecma_transforms 0.234.0", - "swc_ecma_utils 0.132.0", + "swc_ecma_transforms", + "swc_ecma_utils", "swc_ecma_visit", "swc_malloc", "tracing", @@ -4675,18 +4028,6 @@ dependencies = [ "serde_json", ] -[[package]] -name = "swc_typescript" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "afe797d1f35ee33a35a5f2cb52a8165e3b2f06df54ec683ca3012260f7fa9883" -dependencies = [ - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "thiserror", -] - [[package]] name = "swc_typescript" version = "0.3.0" diff --git a/bindings/Cargo.toml b/bindings/Cargo.toml index 8dcc3014dd95..bfe2a51adc7e 100644 --- a/bindings/Cargo.toml +++ b/bindings/Cargo.toml @@ -9,6 +9,35 @@ members = [ ] resolver = "2" + [workspace.dependencies] + anyhow = "1.0.66" + backtrace = "0.3" + getrandom = "0.2.10" + napi = { version = "2", default-features = false } + napi-build = "2" + napi-derive = { version = "2", default-features = false } + path-clean = "0.1" + quote = "1" + serde = "1" + serde-wasm-bindgen = "0.4.5" + serde_json = "1.0.120" + sourcemap = "8.0.0" + swc_cli_impl = "0.16.0" + swc_common = "0.35.1" + swc_compiler_base = "0.14.0" + swc_config = "0.1.14" + swc_core = "0.98.0" + swc_error_reporters = "0.19.0" + swc_fast_ts_strip = "0.3.0" + swc_malloc = "0.5.11" + swc_nodejs_common = "0.0.8" + tracing = "0.1.37" + tracing-chrome = "0.5.0" + tracing-futures = "0.2.5" + tracing-subscriber = "0.3.9" + wasm-bindgen = "0.2.82" + wasm-bindgen-futures = "0.4.41" + [profile.release] # lto = true diff --git a/bindings/binding_core_node/Cargo.toml b/bindings/binding_core_node/Cargo.toml index 6b7d3db0cf50..4943b8fbb169 100644 --- a/bindings/binding_core_node/Cargo.toml +++ b/bindings/binding_core_node/Cargo.toml @@ -30,28 +30,23 @@ __plugin_transform_vtest = [ ] [build-dependencies] -napi-build = { version = "2" } +napi-build = { workspace = true } [dependencies] -anyhow = "1.0.66" -backtrace = "0.3" -napi = { version = "2", default-features = false, features = [ - "napi3", - "serde-json", -] } -napi-derive = { version = "2", default-features = false, features = [ - "type-def", -] } -node_macro_deps = { path = "../node_macro_deps" } -path-clean = "0.1" -serde = { version = "1", features = ["derive"] } -serde_json = { version = "1", features = ["unbounded_depth"] } -tracing = { version = "0.1.37", features = ["release_max_level_info"] } -tracing-chrome = "0.5.0" -tracing-futures = "0.2.5" -tracing-subscriber = { version = "0.3.9", features = ["env-filter"] } +anyhow = { workspace = true } +backtrace = { workspace = true } +napi = { workspace = true, features = ["napi3", "serde-json"] } +napi-derive = { workspace = true, features = ["type-def"] } +node_macro_deps = { path = "../node_macro_deps" } +path-clean = { workspace = true } +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true, features = ["unbounded_depth"] } +tracing = { workspace = true, features = ["release_max_level_info"] } +tracing-chrome = { workspace = true } +tracing-futures = { workspace = true } +tracing-subscriber = { workspace = true, features = ["env-filter"] } -swc_core = { version = "0.98.0", features = [ +swc_core = { workspace = true, features = [ "allocator_node", "ecma_ast", "ecma_codegen", @@ -64,4 +59,4 @@ swc_core = { version = "0.98.0", features = [ "base_node", "base_concurrent", ] } -swc_malloc = "0.5.11" +swc_malloc = { workspace = true } diff --git a/bindings/binding_core_wasm/Cargo.toml b/bindings/binding_core_wasm/Cargo.toml index 8748d5b8a04d..37d17b761c5a 100644 --- a/bindings/binding_core_wasm/Cargo.toml +++ b/bindings/binding_core_wasm/Cargo.toml @@ -31,19 +31,19 @@ swc_v2 = [] plugin = [] [dependencies] -anyhow = "1.0.66" -getrandom = { version = "0.2.10", features = ["js"] } -serde = { version = "1", features = ["derive"] } -serde-wasm-bindgen = "0.4.5" -swc_core = { version = "0.98.0", features = [ +anyhow = { workspace = true } +getrandom = { workspace = true, features = ["js"] } +serde = { workspace = true, features = ["derive"] } +serde-wasm-bindgen = { workspace = true } +swc_core = { workspace = true, features = [ "ecma_ast_serde", "ecma_codegen", "binding_macro_wasm", "ecma_transforms", "ecma_visit", ] } -tracing = { version = "0.1.37", features = ["max_level_off"] } -wasm-bindgen = { version = "0.2.82", features = ["enable-interning"] } +tracing = { workspace = true, features = ["max_level_off"] } +wasm-bindgen = { workspace = true, features = ["enable-interning"] } [package.metadata.wasm-pack.profile.release] wasm-opt = false diff --git a/bindings/binding_minifier_node/Cargo.toml b/bindings/binding_minifier_node/Cargo.toml index cb2ac9ba21d3..cc30275372a6 100644 --- a/bindings/binding_minifier_node/Cargo.toml +++ b/bindings/binding_minifier_node/Cargo.toml @@ -13,32 +13,27 @@ bench = false crate-type = ["cdylib"] [build-dependencies] -napi-build = { version = "2" } +napi-build = { workspace = true } [dependencies] -anyhow = "1.0.66" -backtrace = "0.3" -napi = { version = "2", default-features = false, features = [ - "napi3", - "serde-json", -] } -napi-derive = { version = "2", default-features = false, features = [ - "type-def", -] } -node_macro_deps = { path = "../node_macro_deps" } -path-clean = "0.1" -serde = { version = "1", features = ["derive"] } -serde_json = { version = "1", features = ["unbounded_depth"] } -sourcemap = "8.0.0" -tracing = { version = "0.1.37", features = ["release_max_level_info"] } -tracing-chrome = "0.5.0" -tracing-futures = "0.2.5" -tracing-subscriber = { version = "0.3.9", features = ["env-filter"] } +anyhow = { workspace = true } +backtrace = { workspace = true } +napi = { workspace = true, features = ["napi3", "serde-json"] } +napi-derive = { workspace = true, features = ["type-def"] } +node_macro_deps = { path = "../node_macro_deps" } +path-clean = { workspace = true } +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true, features = ["unbounded_depth"] } +sourcemap = { workspace = true } +tracing = { workspace = true, features = ["release_max_level_info"] } +tracing-chrome = { workspace = true } +tracing-futures = { workspace = true } +tracing-subscriber = { workspace = true, features = ["env-filter"] } -swc_compiler_base = { version = "0.14.0", features = ["node"] } -swc_config = "0.1.14" -swc_core = { version = "0.98.0", features = [ +swc_compiler_base = { workspace = true, features = ["node"] } +swc_config = { workspace = true } +swc_core = { workspace = true, features = [ "allocator_node", "common_concurrent", "common_sourcemap", @@ -50,6 +45,6 @@ swc_core = { version = "0.98.0", features = [ "ecma_transforms", "ecma_visit", ] } -swc_error_reporters = "0.19.0" -swc_malloc = "0.5.11" -swc_nodejs_common = "0.0.8" +swc_error_reporters = { workspace = true } +swc_malloc = { workspace = true } +swc_nodejs_common = { workspace = true } diff --git a/bindings/binding_minifier_wasm/Cargo.toml b/bindings/binding_minifier_wasm/Cargo.toml index f40c3d2c1ce1..3fd8e7d996b3 100644 --- a/bindings/binding_minifier_wasm/Cargo.toml +++ b/bindings/binding_minifier_wasm/Cargo.toml @@ -31,19 +31,19 @@ swc_v2 = [] plugin = [] [dependencies] -anyhow = "1.0.66" -getrandom = { version = "0.2.10", features = ["js"] } -serde = { version = "1", features = ["derive"] } -serde-wasm-bindgen = "0.4.5" -swc_core = { version = "0.98.0", features = [ +anyhow = { workspace = true } +getrandom = { workspace = true, features = ["js"] } +serde = { workspace = true, features = ["derive"] } +serde-wasm-bindgen = { workspace = true } +swc_core = { workspace = true, features = [ "ecma_ast_serde", "ecma_codegen", "binding_macro_wasm", "ecma_transforms", "ecma_visit", ] } -tracing = { version = "0.1.37", features = ["max_level_off"] } -wasm-bindgen = { version = "0.2.82", features = ["enable-interning"] } +tracing = { workspace = true, features = ["max_level_off"] } +wasm-bindgen = { workspace = true, features = ["enable-interning"] } [package.metadata.wasm-pack.profile.release] wasm-opt = false diff --git a/bindings/binding_typescript_wasm/Cargo.toml b/bindings/binding_typescript_wasm/Cargo.toml index abd617ed6bc5..785e38c43d5c 100644 --- a/bindings/binding_typescript_wasm/Cargo.toml +++ b/bindings/binding_typescript_wasm/Cargo.toml @@ -15,14 +15,14 @@ crate-type = ["cdylib"] [features] [dependencies] -anyhow = "1.0.66" -getrandom = { version = "0.2.10", features = ["js"] } -serde = { version = "1", features = ["derive"] } -serde-wasm-bindgen = "0.4.5" -serde_json = "1.0.120" -swc_common = "0.35.1" -swc_error_reporters = "0.19.0" -swc_fast_ts_strip = "0.3.0" -tracing = { version = "0.1.37", features = ["max_level_off"] } -wasm-bindgen = { version = "0.2.82", features = ["enable-interning"] } -wasm-bindgen-futures = { version = "0.4.41" } +anyhow = { workspace = true } +getrandom = { workspace = true, features = ["js"] } +serde = { workspace = true, features = ["derive"] } +serde-wasm-bindgen = { workspace = true } +serde_json = { workspace = true } +swc_common = { workspace = true } +swc_error_reporters = { workspace = true } +swc_fast_ts_strip = { workspace = true } +tracing = { workspace = true, features = ["max_level_off"] } +wasm-bindgen = { workspace = true, features = ["enable-interning"] } +wasm-bindgen-futures = { workspace = true } diff --git a/bindings/node_macro_deps/Cargo.toml b/bindings/node_macro_deps/Cargo.toml index 41a655dfe1b5..d8d6d62c93ca 100644 --- a/bindings/node_macro_deps/Cargo.toml +++ b/bindings/node_macro_deps/Cargo.toml @@ -12,4 +12,4 @@ bench = false proc-macro = true [dependencies] -quote = "1" +quote = { workspace = true } diff --git a/bindings/swc_cli/Cargo.toml b/bindings/swc_cli/Cargo.toml index 9ae639610f65..c7c0d862a270 100644 --- a/bindings/swc_cli/Cargo.toml +++ b/bindings/swc_cli/Cargo.toml @@ -18,5 +18,5 @@ default = ["swc_cli_impl/default"] plugin = ["swc_cli_impl/plugin"] [dependencies] -anyhow = "1.0.66" -swc_cli_impl = "0.15.0" +anyhow = { workspace = true } +swc_cli_impl = { workspace = true } diff --git a/crates/swc_css_ast/src/at_rule.rs b/crates/swc_css_ast/src/at_rule.rs index b575d0642cc0..f1c940d948c6 100644 --- a/crates/swc_css_ast/src/at_rule.rs +++ b/crates/swc_css_ast/src/at_rule.rs @@ -1,6 +1,6 @@ use is_macro::Is; use string_enum::StringEnum; -use swc_atoms::{Atom, JsWord}; +use swc_atoms::Atom; use swc_common::{ast_node, util::take::Take, EqIgnoreSpan, Span}; use crate::{ @@ -37,8 +37,8 @@ impl PartialEq for AtRuleName { } } -impl PartialEq for AtRuleName { - fn eq(&self, other: &JsWord) -> bool { +impl PartialEq for AtRuleName { + fn eq(&self, other: &Atom) -> bool { match self { AtRuleName::DashedIdent(v) => v.value == *other, AtRuleName::Ident(v) => v.value == *other, @@ -858,7 +858,7 @@ pub enum SizeFeatureName { #[derive(Eq, Hash)] pub struct ExtensionName { pub span: Span, - pub value: JsWord, + pub value: Atom, pub raw: Option, } diff --git a/crates/swc_css_ast/src/base.rs b/crates/swc_css_ast/src/base.rs index e69dc849c0b1..a877d72ed109 100644 --- a/crates/swc_css_ast/src/base.rs +++ b/crates/swc_css_ast/src/base.rs @@ -1,5 +1,5 @@ use is_macro::Is; -use swc_atoms::JsWord; +use swc_atoms::Atom; use swc_common::{ast_node, util::take::Take, EqIgnoreSpan, Span}; use crate::{ @@ -128,8 +128,8 @@ impl PartialEq<&'_ str> for FunctionName { } } -impl PartialEq for FunctionName { - fn eq(&self, other: &JsWord) -> bool { +impl PartialEq for FunctionName { + fn eq(&self, other: &Atom) -> bool { match self { FunctionName::DashedIdent(v) => v.value == *other, FunctionName::Ident(v) => v.value == *other, @@ -324,8 +324,8 @@ impl PartialEq for DeclarationName { } } -impl PartialEq for DeclarationName { - fn eq(&self, other: &JsWord) -> bool { +impl PartialEq for DeclarationName { + fn eq(&self, other: &Atom) -> bool { match self { DeclarationName::DashedIdent(v) => v.value == *other, DeclarationName::Ident(v) => v.value == *other, diff --git a/crates/swc_css_ast/src/lib.rs b/crates/swc_css_ast/src/lib.rs index bcff5b8dcb7b..8dd5c47c98b1 100644 --- a/crates/swc_css_ast/src/lib.rs +++ b/crates/swc_css_ast/src/lib.rs @@ -17,11 +17,11 @@ mod value; /// # Examples /// /// ``` -/// use swc_atoms::JsWord; +/// use swc_atoms::Atom; /// use swc_atoms::js_word; /// use swc_css_ast::*; /// -/// assert!(matches_eq_ignore_ascii_case!(JsWord::from("A"), "a")); +/// assert!(matches_eq_ignore_ascii_case!(Atom::from("A"), "a")); /// assert!(matches_eq_ignore_ascii_case!("A", "a")); /// ``` #[macro_export] @@ -40,11 +40,11 @@ macro_rules! matches_eq_ignore_ascii_case { /// # Examples /// /// ``` -/// use swc_atoms::JsWord; +/// use swc_atoms::Atom; /// use swc_atoms::js_word; /// use swc_css_ast::*; /// -/// assert!(matches_eq!(JsWord::from("a"), "a")); +/// assert!(matches_eq!(Atom::from("a"), "a")); /// assert!(matches_eq!("a", "a")); /// ``` #[macro_export] diff --git a/crates/swc_css_ast/src/selector.rs b/crates/swc_css_ast/src/selector.rs index 68f47b67d3c9..956144288e00 100644 --- a/crates/swc_css_ast/src/selector.rs +++ b/crates/swc_css_ast/src/selector.rs @@ -1,6 +1,6 @@ use is_macro::Is; use string_enum::StringEnum; -use swc_atoms::{Atom, JsWord}; +use swc_atoms::Atom; use swc_common::{ast_node, util::take::Take, EqIgnoreSpan, Span}; use crate::{Delimiter, Ident, ListOfComponentValues, Str, TokenAndSpan}; @@ -413,7 +413,7 @@ pub enum PseudoElementSelectorChildren { pub struct CustomHighlightName { pub span: Span, - pub value: JsWord, + pub value: Atom, pub raw: Option, } diff --git a/crates/swc_css_ast/src/token.rs b/crates/swc_css_ast/src/token.rs index 24f1328cd809..813d11f20c20 100644 --- a/crates/swc_css_ast/src/token.rs +++ b/crates/swc_css_ast/src/token.rs @@ -6,7 +6,7 @@ use std::{ use is_macro::Is; #[cfg(feature = "serde-impl")] use serde::{Deserialize, Serialize}; -use swc_atoms::{Atom, JsWord}; +use swc_atoms::Atom; use swc_common::{ast_node, util::take::Take, EqIgnoreSpan, Span}; #[ast_node("PreservedToken")] @@ -70,7 +70,7 @@ pub struct DimensionToken { pub value: f64, pub raw_value: Atom, - pub unit: JsWord, + pub unit: Atom, #[cfg_attr(feature = "serde-impl", serde(rename = "type"))] pub type_flag: NumberType, @@ -95,27 +95,27 @@ pub struct DimensionToken { #[cfg_attr(feature = "serde-impl", derive(serde::Serialize, serde::Deserialize))] pub enum Token { Ident { - value: JsWord, + value: Atom, raw: Atom, }, Function { - value: JsWord, + value: Atom, raw: Atom, }, /// `@` AtKeyword { - value: JsWord, + value: Atom, raw: Atom, }, /// `#` Hash { is_id: bool, - value: JsWord, + value: Atom, raw: Atom, }, String { - value: JsWord, + value: Atom, raw: Atom, }, BadString { @@ -123,7 +123,7 @@ pub enum Token { }, /// `url(value)` Url { - value: JsWord, + value: Atom, /// Name and value raw: Box, }, diff --git a/crates/swc_css_ast/src/value.rs b/crates/swc_css_ast/src/value.rs index bfcfdfbf8a25..f594743de2ac 100644 --- a/crates/swc_css_ast/src/value.rs +++ b/crates/swc_css_ast/src/value.rs @@ -5,7 +5,7 @@ use std::{ use is_macro::Is; use string_enum::StringEnum; -use swc_atoms::{Atom, JsWord}; +use swc_atoms::Atom; use swc_common::{ast_node, util::take::Take, EqIgnoreSpan, Span}; use crate::Function; @@ -15,7 +15,7 @@ use crate::Function; pub struct Ident { pub span: Span, - pub value: JsWord, + pub value: Atom, pub raw: Option, } @@ -49,7 +49,7 @@ impl Take for Ident { pub struct CustomIdent { pub span: Span, - pub value: JsWord, + pub value: Atom, pub raw: Option, } @@ -65,7 +65,7 @@ impl EqIgnoreSpan for CustomIdent { pub struct DashedIdent { pub span: Span, - pub value: JsWord, + pub value: Atom, pub raw: Option, } @@ -88,7 +88,7 @@ impl PartialEq for DashedIdent { pub struct CustomPropertyName { pub span: Span, - pub value: JsWord, + pub value: Atom, pub raw: Option, } @@ -104,7 +104,7 @@ impl EqIgnoreSpan for CustomPropertyName { pub struct Str { pub span: Span, - pub value: JsWord, + pub value: Atom, pub raw: Option, } @@ -176,7 +176,7 @@ pub struct HexColor { /// Includes `#` pub span: Span, /// Does **not** include `#` - pub value: JsWord, + pub value: Atom, /// Does **not** include `#` pub raw: Option, } @@ -443,7 +443,7 @@ pub enum UrlValue { pub struct UrlValueRaw { pub span: Span, - pub value: JsWord, + pub value: Atom, pub raw: Option, } @@ -461,9 +461,9 @@ pub enum UrlModifier { pub struct UnicodeRange { pub span: Span, - pub start: JsWord, + pub start: Atom, - pub end: Option, + pub end: Option, pub raw: Option, } diff --git a/crates/swc_css_visit/src/generated.rs b/crates/swc_css_visit/src/generated.rs new file mode 100644 index 000000000000..96fcc0a2b7ad --- /dev/null +++ b/crates/swc_css_visit/src/generated.rs @@ -0,0 +1,123400 @@ +#![doc = r" This file is generated by `tools/generate-code`. DO NOT MODIFY."] +#![allow(unused_variables)] +#![allow(clippy::all)] +pub use ::swc_visit::All; +use swc_css_ast::*; +#[doc = r" A visitor trait for traversing the AST."] +pub trait Visit { + #[doc = "Visit a node of type `AbsoluteColorBase`.\n\nBy default, this method calls \ + [`AbsoluteColorBase::visit_children_with`]. If you want to recurse, you need to call \ + it manually."] + fn visit_absolute_color_base(&mut self, node: &AbsoluteColorBase) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `AlphaValue`.\n\nBy default, this method calls \ + [`AlphaValue::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_alpha_value(&mut self, node: &AlphaValue) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `AnPlusB`.\n\nBy default, this method calls \ + [`AnPlusB::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_an_plus_b(&mut self, node: &AnPlusB) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `AnPlusBNotation`.\n\nBy default, this method calls \ + [`AnPlusBNotation::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_an_plus_b_notation(&mut self, node: &AnPlusBNotation) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Angle`.\n\nBy default, this method calls \ + [`Angle::visit_children_with`]. If you want to recurse, you need to call it manually."] + fn visit_angle(&mut self, node: &Angle) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `AnglePercentage`.\n\nBy default, this method calls \ + [`AnglePercentage::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_angle_percentage(&mut self, node: &AnglePercentage) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `AnyNamespace`.\n\nBy default, this method calls \ + [`AnyNamespace::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_any_namespace(&mut self, node: &AnyNamespace) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `AtRule`.\n\nBy default, this method calls \ + [`AtRule::visit_children_with`]. If you want to recurse, you need to call it manually."] + fn visit_at_rule(&mut self, node: &AtRule) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `AtRuleName`.\n\nBy default, this method calls \ + [`AtRuleName::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_at_rule_name(&mut self, node: &AtRuleName) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `AtRulePrelude`.\n\nBy default, this method calls \ + [`AtRulePrelude::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_at_rule_prelude(&mut self, node: &AtRulePrelude) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `swc_atoms :: Atom`.\n\nBy default, this method calls \ + [`swc_atoms :: Atom::visit_children_with`]. If you want to recurse, you need to call \ + it manually."] + fn visit_atom(&mut self, node: &swc_atoms::Atom) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `AttributeSelector`.\n\nBy default, this method calls \ + [`AttributeSelector::visit_children_with`]. If you want to recurse, you need to call \ + it manually."] + fn visit_attribute_selector(&mut self, node: &AttributeSelector) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `AttributeSelectorMatcher`.\n\nBy default, this method calls \ + [`AttributeSelectorMatcher::visit_children_with`]. If you want to recurse, you need \ + to call it manually."] + fn visit_attribute_selector_matcher(&mut self, node: &AttributeSelectorMatcher) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `AttributeSelectorMatcherValue`.\n\nBy default, this method \ + calls [`AttributeSelectorMatcherValue::visit_children_with`]. If you want to recurse, \ + you need to call it manually."] + fn visit_attribute_selector_matcher_value(&mut self, node: &AttributeSelectorMatcherValue) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `AttributeSelectorModifier`.\n\nBy default, this method calls \ + [`AttributeSelectorModifier::visit_children_with`]. If you want to recurse, you need \ + to call it manually."] + fn visit_attribute_selector_modifier(&mut self, node: &AttributeSelectorModifier) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `AttributeSelectorValue`.\n\nBy default, this method calls \ + [`AttributeSelectorValue::visit_children_with`]. If you want to recurse, you need to \ + call it manually."] + fn visit_attribute_selector_value(&mut self, node: &AttributeSelectorValue) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `BinOp`.\n\nBy default, this method calls \ + [`BinOp::visit_children_with`]. If you want to recurse, you need to call it manually."] + fn visit_bin_op(&mut self, node: &BinOp) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `CalcOperator`.\n\nBy default, this method calls \ + [`CalcOperator::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_calc_operator(&mut self, node: &CalcOperator) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `CalcOperatorType`.\n\nBy default, this method calls \ + [`CalcOperatorType::visit_children_with`]. If you want to recurse, you need to call \ + it manually."] + fn visit_calc_operator_type(&mut self, node: &CalcOperatorType) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `CalcProduct`.\n\nBy default, this method calls \ + [`CalcProduct::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_calc_product(&mut self, node: &CalcProduct) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `CalcProductOrOperator`.\n\nBy default, this method calls \ + [`CalcProductOrOperator::visit_children_with`]. If you want to recurse, you need to \ + call it manually."] + fn visit_calc_product_or_operator(&mut self, node: &CalcProductOrOperator) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Vec < CalcProductOrOperator >`.\n\nBy default, this method \ + calls [`Vec < CalcProductOrOperator >::visit_children_with`]. If you want to recurse, \ + you need to call it manually."] + fn visit_calc_product_or_operators(&mut self, node: &[CalcProductOrOperator]) { + <[CalcProductOrOperator] as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `CalcSum`.\n\nBy default, this method calls \ + [`CalcSum::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_calc_sum(&mut self, node: &CalcSum) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `CalcValue`.\n\nBy default, this method calls \ + [`CalcValue::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_calc_value(&mut self, node: &CalcValue) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `CalcValueOrOperator`.\n\nBy default, this method calls \ + [`CalcValueOrOperator::visit_children_with`]. If you want to recurse, you need to \ + call it manually."] + fn visit_calc_value_or_operator(&mut self, node: &CalcValueOrOperator) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Vec < CalcValueOrOperator >`.\n\nBy default, this method calls \ + [`Vec < CalcValueOrOperator >::visit_children_with`]. If you want to recurse, you \ + need to call it manually."] + fn visit_calc_value_or_operators(&mut self, node: &[CalcValueOrOperator]) { + <[CalcValueOrOperator] as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `ClassSelector`.\n\nBy default, this method calls \ + [`ClassSelector::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_class_selector(&mut self, node: &ClassSelector) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `CmykComponent`.\n\nBy default, this method calls \ + [`CmykComponent::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_cmyk_component(&mut self, node: &CmykComponent) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Color`.\n\nBy default, this method calls \ + [`Color::visit_children_with`]. If you want to recurse, you need to call it manually."] + fn visit_color(&mut self, node: &Color) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `ColorProfileName`.\n\nBy default, this method calls \ + [`ColorProfileName::visit_children_with`]. If you want to recurse, you need to call \ + it manually."] + fn visit_color_profile_name(&mut self, node: &ColorProfileName) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Combinator`.\n\nBy default, this method calls \ + [`Combinator::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_combinator(&mut self, node: &Combinator) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `CombinatorValue`.\n\nBy default, this method calls \ + [`CombinatorValue::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_combinator_value(&mut self, node: &CombinatorValue) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `ComplexSelector`.\n\nBy default, this method calls \ + [`ComplexSelector::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_complex_selector(&mut self, node: &ComplexSelector) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `ComplexSelectorChildren`.\n\nBy default, this method calls \ + [`ComplexSelectorChildren::visit_children_with`]. If you want to recurse, you need to \ + call it manually."] + fn visit_complex_selector_children(&mut self, node: &ComplexSelectorChildren) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Vec < ComplexSelectorChildren >`.\n\nBy default, this method \ + calls [`Vec < ComplexSelectorChildren >::visit_children_with`]. If you want to \ + recurse, you need to call it manually."] + fn visit_complex_selector_childrens(&mut self, node: &[ComplexSelectorChildren]) { + <[ComplexSelectorChildren] as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Vec < ComplexSelector >`.\n\nBy default, this method calls \ + [`Vec < ComplexSelector >::visit_children_with`]. If you want to recurse, you need to \ + call it manually."] + fn visit_complex_selectors(&mut self, node: &[ComplexSelector]) { + <[ComplexSelector] as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `ComponentValue`.\n\nBy default, this method calls \ + [`ComponentValue::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_component_value(&mut self, node: &ComponentValue) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Vec < ComponentValue >`.\n\nBy default, this method calls [`Vec \ + < ComponentValue >::visit_children_with`]. If you want to recurse, you need to call \ + it manually."] + fn visit_component_values(&mut self, node: &[ComponentValue]) { + <[ComponentValue] as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `CompoundSelector`.\n\nBy default, this method calls \ + [`CompoundSelector::visit_children_with`]. If you want to recurse, you need to call \ + it manually."] + fn visit_compound_selector(&mut self, node: &CompoundSelector) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `CompoundSelectorList`.\n\nBy default, this method calls \ + [`CompoundSelectorList::visit_children_with`]. If you want to recurse, you need to \ + call it manually."] + fn visit_compound_selector_list(&mut self, node: &CompoundSelectorList) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Vec < CompoundSelector >`.\n\nBy default, this method calls \ + [`Vec < CompoundSelector >::visit_children_with`]. If you want to recurse, you need \ + to call it manually."] + fn visit_compound_selectors(&mut self, node: &[CompoundSelector]) { + <[CompoundSelector] as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `ContainerCondition`.\n\nBy default, this method calls \ + [`ContainerCondition::visit_children_with`]. If you want to recurse, you need to call \ + it manually."] + fn visit_container_condition(&mut self, node: &ContainerCondition) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `ContainerName`.\n\nBy default, this method calls \ + [`ContainerName::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_container_name(&mut self, node: &ContainerName) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `ContainerQuery`.\n\nBy default, this method calls \ + [`ContainerQuery::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_container_query(&mut self, node: &ContainerQuery) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `ContainerQueryAnd`.\n\nBy default, this method calls \ + [`ContainerQueryAnd::visit_children_with`]. If you want to recurse, you need to call \ + it manually."] + fn visit_container_query_and(&mut self, node: &ContainerQueryAnd) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `ContainerQueryNot`.\n\nBy default, this method calls \ + [`ContainerQueryNot::visit_children_with`]. If you want to recurse, you need to call \ + it manually."] + fn visit_container_query_not(&mut self, node: &ContainerQueryNot) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `ContainerQueryOr`.\n\nBy default, this method calls \ + [`ContainerQueryOr::visit_children_with`]. If you want to recurse, you need to call \ + it manually."] + fn visit_container_query_or(&mut self, node: &ContainerQueryOr) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `ContainerQueryType`.\n\nBy default, this method calls \ + [`ContainerQueryType::visit_children_with`]. If you want to recurse, you need to call \ + it manually."] + fn visit_container_query_type(&mut self, node: &ContainerQueryType) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Vec < ContainerQueryType >`.\n\nBy default, this method calls \ + [`Vec < ContainerQueryType >::visit_children_with`]. If you want to recurse, you need \ + to call it manually."] + fn visit_container_query_types(&mut self, node: &[ContainerQueryType]) { + <[ContainerQueryType] as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `CustomHighlightName`.\n\nBy default, this method calls \ + [`CustomHighlightName::visit_children_with`]. If you want to recurse, you need to \ + call it manually."] + fn visit_custom_highlight_name(&mut self, node: &CustomHighlightName) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `CustomIdent`.\n\nBy default, this method calls \ + [`CustomIdent::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_custom_ident(&mut self, node: &CustomIdent) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Vec < CustomIdent >`.\n\nBy default, this method calls [`Vec < \ + CustomIdent >::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_custom_idents(&mut self, node: &[CustomIdent]) { + <[CustomIdent] as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `CustomMediaQuery`.\n\nBy default, this method calls \ + [`CustomMediaQuery::visit_children_with`]. If you want to recurse, you need to call \ + it manually."] + fn visit_custom_media_query(&mut self, node: &CustomMediaQuery) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `CustomMediaQueryMediaType`.\n\nBy default, this method calls \ + [`CustomMediaQueryMediaType::visit_children_with`]. If you want to recurse, you need \ + to call it manually."] + fn visit_custom_media_query_media_type(&mut self, node: &CustomMediaQueryMediaType) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `CustomPropertyName`.\n\nBy default, this method calls \ + [`CustomPropertyName::visit_children_with`]. If you want to recurse, you need to call \ + it manually."] + fn visit_custom_property_name(&mut self, node: &CustomPropertyName) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `DashedIdent`.\n\nBy default, this method calls \ + [`DashedIdent::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_dashed_ident(&mut self, node: &DashedIdent) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Declaration`.\n\nBy default, this method calls \ + [`Declaration::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_declaration(&mut self, node: &Declaration) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `DeclarationName`.\n\nBy default, this method calls \ + [`DeclarationName::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_declaration_name(&mut self, node: &DeclarationName) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `DeclarationOrAtRule`.\n\nBy default, this method calls \ + [`DeclarationOrAtRule::visit_children_with`]. If you want to recurse, you need to \ + call it manually."] + fn visit_declaration_or_at_rule(&mut self, node: &DeclarationOrAtRule) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Delimiter`.\n\nBy default, this method calls \ + [`Delimiter::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_delimiter(&mut self, node: &Delimiter) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `DelimiterValue`.\n\nBy default, this method calls \ + [`DelimiterValue::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_delimiter_value(&mut self, node: &DelimiterValue) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Dimension`.\n\nBy default, this method calls \ + [`Dimension::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_dimension(&mut self, node: &Dimension) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `DimensionToken`.\n\nBy default, this method calls \ + [`DimensionToken::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_dimension_token(&mut self, node: &DimensionToken) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `DocumentPrelude`.\n\nBy default, this method calls \ + [`DocumentPrelude::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_document_prelude(&mut self, node: &DocumentPrelude) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `DocumentPreludeMatchingFunction`.\n\nBy default, this method \ + calls [`DocumentPreludeMatchingFunction::visit_children_with`]. If you want to \ + recurse, you need to call it manually."] + fn visit_document_prelude_matching_function(&mut self, node: &DocumentPreludeMatchingFunction) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Vec < DocumentPreludeMatchingFunction >`.\n\nBy default, this \ + method calls [`Vec < DocumentPreludeMatchingFunction >::visit_children_with`]. If you \ + want to recurse, you need to call it manually."] + fn visit_document_prelude_matching_functions( + &mut self, + node: &[DocumentPreludeMatchingFunction], + ) { + <[DocumentPreludeMatchingFunction] as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `ExtensionName`.\n\nBy default, this method calls \ + [`ExtensionName::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_extension_name(&mut self, node: &ExtensionName) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `FamilyName`.\n\nBy default, this method calls \ + [`FamilyName::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_family_name(&mut self, node: &FamilyName) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Vec < FamilyName >`.\n\nBy default, this method calls [`Vec < \ + FamilyName >::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_family_names(&mut self, node: &[FamilyName]) { + <[FamilyName] as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Flex`.\n\nBy default, this method calls \ + [`Flex::visit_children_with`]. If you want to recurse, you need to call it manually."] + fn visit_flex(&mut self, node: &Flex) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `FontFeatureValuesPrelude`.\n\nBy default, this method calls \ + [`FontFeatureValuesPrelude::visit_children_with`]. If you want to recurse, you need \ + to call it manually."] + fn visit_font_feature_values_prelude(&mut self, node: &FontFeatureValuesPrelude) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `ForgivingComplexSelector`.\n\nBy default, this method calls \ + [`ForgivingComplexSelector::visit_children_with`]. If you want to recurse, you need \ + to call it manually."] + fn visit_forgiving_complex_selector(&mut self, node: &ForgivingComplexSelector) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Vec < ForgivingComplexSelector >`.\n\nBy default, this method \ + calls [`Vec < ForgivingComplexSelector >::visit_children_with`]. If you want to \ + recurse, you need to call it manually."] + fn visit_forgiving_complex_selectors(&mut self, node: &[ForgivingComplexSelector]) { + <[ForgivingComplexSelector] as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `ForgivingRelativeSelector`.\n\nBy default, this method calls \ + [`ForgivingRelativeSelector::visit_children_with`]. If you want to recurse, you need \ + to call it manually."] + fn visit_forgiving_relative_selector(&mut self, node: &ForgivingRelativeSelector) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `ForgivingRelativeSelectorList`.\n\nBy default, this method \ + calls [`ForgivingRelativeSelectorList::visit_children_with`]. If you want to recurse, \ + you need to call it manually."] + fn visit_forgiving_relative_selector_list(&mut self, node: &ForgivingRelativeSelectorList) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Vec < ForgivingRelativeSelector >`.\n\nBy default, this method \ + calls [`Vec < ForgivingRelativeSelector >::visit_children_with`]. If you want to \ + recurse, you need to call it manually."] + fn visit_forgiving_relative_selectors(&mut self, node: &[ForgivingRelativeSelector]) { + <[ForgivingRelativeSelector] as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `ForgivingSelectorList`.\n\nBy default, this method calls \ + [`ForgivingSelectorList::visit_children_with`]. If you want to recurse, you need to \ + call it manually."] + fn visit_forgiving_selector_list(&mut self, node: &ForgivingSelectorList) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Frequency`.\n\nBy default, this method calls \ + [`Frequency::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_frequency(&mut self, node: &Frequency) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `FrequencyPercentage`.\n\nBy default, this method calls \ + [`FrequencyPercentage::visit_children_with`]. If you want to recurse, you need to \ + call it manually."] + fn visit_frequency_percentage(&mut self, node: &FrequencyPercentage) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Function`.\n\nBy default, this method calls \ + [`Function::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_function(&mut self, node: &Function) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `FunctionName`.\n\nBy default, this method calls \ + [`FunctionName::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_function_name(&mut self, node: &FunctionName) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `GeneralEnclosed`.\n\nBy default, this method calls \ + [`GeneralEnclosed::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_general_enclosed(&mut self, node: &GeneralEnclosed) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `HexColor`.\n\nBy default, this method calls \ + [`HexColor::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_hex_color(&mut self, node: &HexColor) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Hue`.\n\nBy default, this method calls \ + [`Hue::visit_children_with`]. If you want to recurse, you need to call it manually."] + fn visit_hue(&mut self, node: &Hue) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `IdSelector`.\n\nBy default, this method calls \ + [`IdSelector::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_id_selector(&mut self, node: &IdSelector) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Ident`.\n\nBy default, this method calls \ + [`Ident::visit_children_with`]. If you want to recurse, you need to call it manually."] + fn visit_ident(&mut self, node: &Ident) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Vec < Ident >`.\n\nBy default, this method calls [`Vec < Ident \ + >::visit_children_with`]. If you want to recurse, you need to call it manually."] + fn visit_idents(&mut self, node: &[Ident]) { + <[Ident] as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `ImportConditions`.\n\nBy default, this method calls \ + [`ImportConditions::visit_children_with`]. If you want to recurse, you need to call \ + it manually."] + fn visit_import_conditions(&mut self, node: &ImportConditions) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `ImportHref`.\n\nBy default, this method calls \ + [`ImportHref::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_import_href(&mut self, node: &ImportHref) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `ImportLayerName`.\n\nBy default, this method calls \ + [`ImportLayerName::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_import_layer_name(&mut self, node: &ImportLayerName) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `ImportPrelude`.\n\nBy default, this method calls \ + [`ImportPrelude::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_import_prelude(&mut self, node: &ImportPrelude) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `ImportantFlag`.\n\nBy default, this method calls \ + [`ImportantFlag::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_important_flag(&mut self, node: &ImportantFlag) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Integer`.\n\nBy default, this method calls \ + [`Integer::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_integer(&mut self, node: &Integer) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `KeyframeBlock`.\n\nBy default, this method calls \ + [`KeyframeBlock::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_keyframe_block(&mut self, node: &KeyframeBlock) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `KeyframeSelector`.\n\nBy default, this method calls \ + [`KeyframeSelector::visit_children_with`]. If you want to recurse, you need to call \ + it manually."] + fn visit_keyframe_selector(&mut self, node: &KeyframeSelector) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Vec < KeyframeSelector >`.\n\nBy default, this method calls \ + [`Vec < KeyframeSelector >::visit_children_with`]. If you want to recurse, you need \ + to call it manually."] + fn visit_keyframe_selectors(&mut self, node: &[KeyframeSelector]) { + <[KeyframeSelector] as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `KeyframesName`.\n\nBy default, this method calls \ + [`KeyframesName::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_keyframes_name(&mut self, node: &KeyframesName) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `KeyframesPseudoFunction`.\n\nBy default, this method calls \ + [`KeyframesPseudoFunction::visit_children_with`]. If you want to recurse, you need to \ + call it manually."] + fn visit_keyframes_pseudo_function(&mut self, node: &KeyframesPseudoFunction) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `KeyframesPseudoPrefix`.\n\nBy default, this method calls \ + [`KeyframesPseudoPrefix::visit_children_with`]. If you want to recurse, you need to \ + call it manually."] + fn visit_keyframes_pseudo_prefix(&mut self, node: &KeyframesPseudoPrefix) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `LayerName`.\n\nBy default, this method calls \ + [`LayerName::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_layer_name(&mut self, node: &LayerName) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `LayerNameList`.\n\nBy default, this method calls \ + [`LayerNameList::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_layer_name_list(&mut self, node: &LayerNameList) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Vec < LayerName >`.\n\nBy default, this method calls [`Vec < \ + LayerName >::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_layer_names(&mut self, node: &[LayerName]) { + <[LayerName] as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `LayerPrelude`.\n\nBy default, this method calls \ + [`LayerPrelude::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_layer_prelude(&mut self, node: &LayerPrelude) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Length`.\n\nBy default, this method calls \ + [`Length::visit_children_with`]. If you want to recurse, you need to call it manually."] + fn visit_length(&mut self, node: &Length) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `LengthPercentage`.\n\nBy default, this method calls \ + [`LengthPercentage::visit_children_with`]. If you want to recurse, you need to call \ + it manually."] + fn visit_length_percentage(&mut self, node: &LengthPercentage) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `ListOfComponentValues`.\n\nBy default, this method calls \ + [`ListOfComponentValues::visit_children_with`]. If you want to recurse, you need to \ + call it manually."] + fn visit_list_of_component_values(&mut self, node: &ListOfComponentValues) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `MediaAnd`.\n\nBy default, this method calls \ + [`MediaAnd::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_media_and(&mut self, node: &MediaAnd) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `MediaCondition`.\n\nBy default, this method calls \ + [`MediaCondition::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_media_condition(&mut self, node: &MediaCondition) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `MediaConditionAllType`.\n\nBy default, this method calls \ + [`MediaConditionAllType::visit_children_with`]. If you want to recurse, you need to \ + call it manually."] + fn visit_media_condition_all_type(&mut self, node: &MediaConditionAllType) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Vec < MediaConditionAllType >`.\n\nBy default, this method \ + calls [`Vec < MediaConditionAllType >::visit_children_with`]. If you want to recurse, \ + you need to call it manually."] + fn visit_media_condition_all_types(&mut self, node: &[MediaConditionAllType]) { + <[MediaConditionAllType] as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `MediaConditionType`.\n\nBy default, this method calls \ + [`MediaConditionType::visit_children_with`]. If you want to recurse, you need to call \ + it manually."] + fn visit_media_condition_type(&mut self, node: &MediaConditionType) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `MediaConditionWithoutOr`.\n\nBy default, this method calls \ + [`MediaConditionWithoutOr::visit_children_with`]. If you want to recurse, you need to \ + call it manually."] + fn visit_media_condition_without_or(&mut self, node: &MediaConditionWithoutOr) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `MediaConditionWithoutOrType`.\n\nBy default, this method calls \ + [`MediaConditionWithoutOrType::visit_children_with`]. If you want to recurse, you \ + need to call it manually."] + fn visit_media_condition_without_or_type(&mut self, node: &MediaConditionWithoutOrType) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Vec < MediaConditionWithoutOrType >`.\n\nBy default, this \ + method calls [`Vec < MediaConditionWithoutOrType >::visit_children_with`]. If you \ + want to recurse, you need to call it manually."] + fn visit_media_condition_without_or_types(&mut self, node: &[MediaConditionWithoutOrType]) { + <[MediaConditionWithoutOrType] as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `MediaFeature`.\n\nBy default, this method calls \ + [`MediaFeature::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_media_feature(&mut self, node: &MediaFeature) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `MediaFeatureBoolean`.\n\nBy default, this method calls \ + [`MediaFeatureBoolean::visit_children_with`]. If you want to recurse, you need to \ + call it manually."] + fn visit_media_feature_boolean(&mut self, node: &MediaFeatureBoolean) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `MediaFeatureName`.\n\nBy default, this method calls \ + [`MediaFeatureName::visit_children_with`]. If you want to recurse, you need to call \ + it manually."] + fn visit_media_feature_name(&mut self, node: &MediaFeatureName) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `MediaFeaturePlain`.\n\nBy default, this method calls \ + [`MediaFeaturePlain::visit_children_with`]. If you want to recurse, you need to call \ + it manually."] + fn visit_media_feature_plain(&mut self, node: &MediaFeaturePlain) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `MediaFeatureRange`.\n\nBy default, this method calls \ + [`MediaFeatureRange::visit_children_with`]. If you want to recurse, you need to call \ + it manually."] + fn visit_media_feature_range(&mut self, node: &MediaFeatureRange) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `MediaFeatureRangeComparison`.\n\nBy default, this method calls \ + [`MediaFeatureRangeComparison::visit_children_with`]. If you want to recurse, you \ + need to call it manually."] + fn visit_media_feature_range_comparison(&mut self, node: &MediaFeatureRangeComparison) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `MediaFeatureRangeInterval`.\n\nBy default, this method calls \ + [`MediaFeatureRangeInterval::visit_children_with`]. If you want to recurse, you need \ + to call it manually."] + fn visit_media_feature_range_interval(&mut self, node: &MediaFeatureRangeInterval) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `MediaFeatureValue`.\n\nBy default, this method calls \ + [`MediaFeatureValue::visit_children_with`]. If you want to recurse, you need to call \ + it manually."] + fn visit_media_feature_value(&mut self, node: &MediaFeatureValue) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `MediaInParens`.\n\nBy default, this method calls \ + [`MediaInParens::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_media_in_parens(&mut self, node: &MediaInParens) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `MediaNot`.\n\nBy default, this method calls \ + [`MediaNot::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_media_not(&mut self, node: &MediaNot) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `MediaOr`.\n\nBy default, this method calls \ + [`MediaOr::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_media_or(&mut self, node: &MediaOr) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `MediaQuery`.\n\nBy default, this method calls \ + [`MediaQuery::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_media_query(&mut self, node: &MediaQuery) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `MediaQueryList`.\n\nBy default, this method calls \ + [`MediaQueryList::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_media_query_list(&mut self, node: &MediaQueryList) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Vec < MediaQuery >`.\n\nBy default, this method calls [`Vec < \ + MediaQuery >::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_media_querys(&mut self, node: &[MediaQuery]) { + <[MediaQuery] as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `MediaType`.\n\nBy default, this method calls \ + [`MediaType::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_media_type(&mut self, node: &MediaType) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `NamedNamespace`.\n\nBy default, this method calls \ + [`NamedNamespace::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_named_namespace(&mut self, node: &NamedNamespace) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Namespace`.\n\nBy default, this method calls \ + [`Namespace::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_namespace(&mut self, node: &Namespace) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `NamespacePrefix`.\n\nBy default, this method calls \ + [`NamespacePrefix::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_namespace_prefix(&mut self, node: &NamespacePrefix) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `NamespacePrelude`.\n\nBy default, this method calls \ + [`NamespacePrelude::visit_children_with`]. If you want to recurse, you need to call \ + it manually."] + fn visit_namespace_prelude(&mut self, node: &NamespacePrelude) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `NamespacePreludeUri`.\n\nBy default, this method calls \ + [`NamespacePreludeUri::visit_children_with`]. If you want to recurse, you need to \ + call it manually."] + fn visit_namespace_prelude_uri(&mut self, node: &NamespacePreludeUri) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `NestingSelector`.\n\nBy default, this method calls \ + [`NestingSelector::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_nesting_selector(&mut self, node: &NestingSelector) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Number`.\n\nBy default, this method calls \ + [`Number::visit_children_with`]. If you want to recurse, you need to call it manually."] + fn visit_number(&mut self, node: &Number) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `NumberType`.\n\nBy default, this method calls \ + [`NumberType::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_number_type(&mut self, node: &NumberType) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Option < Box < AtRulePrelude > >`.\n\nBy default, this method \ + calls [`Option < Box < AtRulePrelude > >::visit_children_with`]. If you want to \ + recurse, you need to call it manually."] + fn visit_opt_at_rule_prelude(&mut self, node: &Option>) { + > as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Option < swc_atoms :: Atom >`.\n\nBy default, this method calls \ + [`Option < swc_atoms :: Atom >::visit_children_with`]. If you want to recurse, you \ + need to call it manually."] + fn visit_opt_atom(&mut self, node: &Option) { + as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Option < AttributeSelectorMatcher >`.\n\nBy default, this \ + method calls [`Option < AttributeSelectorMatcher >::visit_children_with`]. If you \ + want to recurse, you need to call it manually."] + fn visit_opt_attribute_selector_matcher(&mut self, node: &Option) { + as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Option < AttributeSelectorModifier >`.\n\nBy default, this \ + method calls [`Option < AttributeSelectorModifier >::visit_children_with`]. If you \ + want to recurse, you need to call it manually."] + fn visit_opt_attribute_selector_modifier(&mut self, node: &Option) { + as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Option < AttributeSelectorValue >`.\n\nBy default, this method \ + calls [`Option < AttributeSelectorValue >::visit_children_with`]. If you want to \ + recurse, you need to call it manually."] + fn visit_opt_attribute_selector_value(&mut self, node: &Option) { + as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Option < Combinator >`.\n\nBy default, this method calls \ + [`Option < Combinator >::visit_children_with`]. If you want to recurse, you need to \ + call it manually."] + fn visit_opt_combinator(&mut self, node: &Option) { + as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Option < ContainerName >`.\n\nBy default, this method calls \ + [`Option < ContainerName >::visit_children_with`]. If you want to recurse, you need \ + to call it manually."] + fn visit_opt_container_name(&mut self, node: &Option) { + as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Option < ForgivingSelectorList >`.\n\nBy default, this method \ + calls [`Option < ForgivingSelectorList >::visit_children_with`]. If you want to \ + recurse, you need to call it manually."] + fn visit_opt_forgiving_selector_list(&mut self, node: &Option) { + as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Option < Box < Function > >`.\n\nBy default, this method calls \ + [`Option < Box < Function > >::visit_children_with`]. If you want to recurse, you \ + need to call it manually."] + fn visit_opt_function(&mut self, node: &Option>) { + > as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Option < Ident >`.\n\nBy default, this method calls [`Option < \ + Ident >::visit_children_with`]. If you want to recurse, you need to call it manually."] + fn visit_opt_ident(&mut self, node: &Option) { + as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Option < Box < ImportConditions > >`.\n\nBy default, this \ + method calls [`Option < Box < ImportConditions > >::visit_children_with`]. If you \ + want to recurse, you need to call it manually."] + fn visit_opt_import_conditions(&mut self, node: &Option>) { + > as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Option < Box < ImportLayerName > >`.\n\nBy default, this method \ + calls [`Option < Box < ImportLayerName > >::visit_children_with`]. If you want to \ + recurse, you need to call it manually."] + fn visit_opt_import_layer_name(&mut self, node: &Option>) { + > as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Option < ImportantFlag >`.\n\nBy default, this method calls \ + [`Option < ImportantFlag >::visit_children_with`]. If you want to recurse, you need \ + to call it manually."] + fn visit_opt_important_flag(&mut self, node: &Option) { + as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Option < Box < MediaConditionType > >`.\n\nBy default, this \ + method calls [`Option < Box < MediaConditionType > >::visit_children_with`]. If you \ + want to recurse, you need to call it manually."] + fn visit_opt_media_condition_type(&mut self, node: &Option>) { + > as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Option < Box < MediaQueryList > >`.\n\nBy default, this method \ + calls [`Option < Box < MediaQueryList > >::visit_children_with`]. If you want to \ + recurse, you need to call it manually."] + fn visit_opt_media_query_list(&mut self, node: &Option>) { + > as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Option < MediaType >`.\n\nBy default, this method calls \ + [`Option < MediaType >::visit_children_with`]. If you want to recurse, you need to \ + call it manually."] + fn visit_opt_media_type(&mut self, node: &Option) { + as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Option < Namespace >`.\n\nBy default, this method calls \ + [`Option < Namespace >::visit_children_with`]. If you want to recurse, you need to \ + call it manually."] + fn visit_opt_namespace(&mut self, node: &Option) { + as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Option < NamespacePrefix >`.\n\nBy default, this method calls \ + [`Option < NamespacePrefix >::visit_children_with`]. If you want to recurse, you need \ + to call it manually."] + fn visit_opt_namespace_prefix(&mut self, node: &Option) { + as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Option < NestingSelector >`.\n\nBy default, this method calls \ + [`Option < NestingSelector >::visit_children_with`]. If you want to recurse, you need \ + to call it manually."] + fn visit_opt_nesting_selector(&mut self, node: &Option) { + as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Option < Number >`.\n\nBy default, this method calls [`Option < \ + Number >::visit_children_with`]. If you want to recurse, you need to call it manually."] + fn visit_opt_number(&mut self, node: &Option) { + as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Option < Vec < PageSelectorPseudo > >`.\n\nBy default, this \ + method calls [`Option < Vec < PageSelectorPseudo > >::visit_children_with`]. If you \ + want to recurse, you need to call it manually."] + fn visit_opt_page_selector_pseudos(&mut self, node: &Option>) { + > as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Option < PageSelectorType >`.\n\nBy default, this method calls \ + [`Option < PageSelectorType >::visit_children_with`]. If you want to recurse, you \ + need to call it manually."] + fn visit_opt_page_selector_type(&mut self, node: &Option) { + as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Option < Vec < PseudoClassSelectorChildren > >`.\n\nBy default, \ + this method calls [`Option < Vec < PseudoClassSelectorChildren > \ + >::visit_children_with`]. If you want to recurse, you need to call it manually."] + fn visit_opt_pseudo_class_selector_childrens( + &mut self, + node: &Option>, + ) { + > as VisitWith>::visit_children_with( + node, self, + ) + } + #[doc = "Visit a node of type `Option < Vec < PseudoElementSelectorChildren > >`.\n\nBy \ + default, this method calls [`Option < Vec < PseudoElementSelectorChildren > \ + >::visit_children_with`]. If you want to recurse, you need to call it manually."] + fn visit_opt_pseudo_element_selector_childrens( + &mut self, + node: &Option>, + ) { + > as VisitWith>::visit_children_with( + node, self, + ) + } + #[doc = "Visit a node of type `Option < SimpleBlock >`.\n\nBy default, this method calls \ + [`Option < SimpleBlock >::visit_children_with`]. If you want to recurse, you need to \ + call it manually."] + fn visit_opt_simple_block(&mut self, node: &Option) { + as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Option < Box < TypeSelector > >`.\n\nBy default, this method \ + calls [`Option < Box < TypeSelector > >::visit_children_with`]. If you want to \ + recurse, you need to call it manually."] + fn visit_opt_type_selector(&mut self, node: &Option>) { + > as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Option < Vec < UrlModifier > >`.\n\nBy default, this method \ + calls [`Option < Vec < UrlModifier > >::visit_children_with`]. If you want to \ + recurse, you need to call it manually."] + fn visit_opt_url_modifiers(&mut self, node: &Option>) { + > as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Option < Box < UrlValue > >`.\n\nBy default, this method calls \ + [`Option < Box < UrlValue > >::visit_children_with`]. If you want to recurse, you \ + need to call it manually."] + fn visit_opt_url_value(&mut self, node: &Option>) { + > as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `PageSelector`.\n\nBy default, this method calls \ + [`PageSelector::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_page_selector(&mut self, node: &PageSelector) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `PageSelectorList`.\n\nBy default, this method calls \ + [`PageSelectorList::visit_children_with`]. If you want to recurse, you need to call \ + it manually."] + fn visit_page_selector_list(&mut self, node: &PageSelectorList) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `PageSelectorPseudo`.\n\nBy default, this method calls \ + [`PageSelectorPseudo::visit_children_with`]. If you want to recurse, you need to call \ + it manually."] + fn visit_page_selector_pseudo(&mut self, node: &PageSelectorPseudo) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Vec < PageSelectorPseudo >`.\n\nBy default, this method calls \ + [`Vec < PageSelectorPseudo >::visit_children_with`]. If you want to recurse, you need \ + to call it manually."] + fn visit_page_selector_pseudos(&mut self, node: &[PageSelectorPseudo]) { + <[PageSelectorPseudo] as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `PageSelectorType`.\n\nBy default, this method calls \ + [`PageSelectorType::visit_children_with`]. If you want to recurse, you need to call \ + it manually."] + fn visit_page_selector_type(&mut self, node: &PageSelectorType) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Vec < PageSelector >`.\n\nBy default, this method calls [`Vec < \ + PageSelector >::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_page_selectors(&mut self, node: &[PageSelector]) { + <[PageSelector] as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Percentage`.\n\nBy default, this method calls \ + [`Percentage::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_percentage(&mut self, node: &Percentage) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `PseudoClassSelector`.\n\nBy default, this method calls \ + [`PseudoClassSelector::visit_children_with`]. If you want to recurse, you need to \ + call it manually."] + fn visit_pseudo_class_selector(&mut self, node: &PseudoClassSelector) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `PseudoClassSelectorChildren`.\n\nBy default, this method calls \ + [`PseudoClassSelectorChildren::visit_children_with`]. If you want to recurse, you \ + need to call it manually."] + fn visit_pseudo_class_selector_children(&mut self, node: &PseudoClassSelectorChildren) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Vec < PseudoClassSelectorChildren >`.\n\nBy default, this \ + method calls [`Vec < PseudoClassSelectorChildren >::visit_children_with`]. If you \ + want to recurse, you need to call it manually."] + fn visit_pseudo_class_selector_childrens(&mut self, node: &[PseudoClassSelectorChildren]) { + <[PseudoClassSelectorChildren] as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `PseudoElementSelector`.\n\nBy default, this method calls \ + [`PseudoElementSelector::visit_children_with`]. If you want to recurse, you need to \ + call it manually."] + fn visit_pseudo_element_selector(&mut self, node: &PseudoElementSelector) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `PseudoElementSelectorChildren`.\n\nBy default, this method \ + calls [`PseudoElementSelectorChildren::visit_children_with`]. If you want to recurse, \ + you need to call it manually."] + fn visit_pseudo_element_selector_children(&mut self, node: &PseudoElementSelectorChildren) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Vec < PseudoElementSelectorChildren >`.\n\nBy default, this \ + method calls [`Vec < PseudoElementSelectorChildren >::visit_children_with`]. If you \ + want to recurse, you need to call it manually."] + fn visit_pseudo_element_selector_childrens(&mut self, node: &[PseudoElementSelectorChildren]) { + <[PseudoElementSelectorChildren] as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `QualifiedRule`.\n\nBy default, this method calls \ + [`QualifiedRule::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_qualified_rule(&mut self, node: &QualifiedRule) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `QualifiedRulePrelude`.\n\nBy default, this method calls \ + [`QualifiedRulePrelude::visit_children_with`]. If you want to recurse, you need to \ + call it manually."] + fn visit_qualified_rule_prelude(&mut self, node: &QualifiedRulePrelude) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `QueryInParens`.\n\nBy default, this method calls \ + [`QueryInParens::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_query_in_parens(&mut self, node: &QueryInParens) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Ratio`.\n\nBy default, this method calls \ + [`Ratio::visit_children_with`]. If you want to recurse, you need to call it manually."] + fn visit_ratio(&mut self, node: &Ratio) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `RelativeSelector`.\n\nBy default, this method calls \ + [`RelativeSelector::visit_children_with`]. If you want to recurse, you need to call \ + it manually."] + fn visit_relative_selector(&mut self, node: &RelativeSelector) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `RelativeSelectorList`.\n\nBy default, this method calls \ + [`RelativeSelectorList::visit_children_with`]. If you want to recurse, you need to \ + call it manually."] + fn visit_relative_selector_list(&mut self, node: &RelativeSelectorList) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Vec < RelativeSelector >`.\n\nBy default, this method calls \ + [`Vec < RelativeSelector >::visit_children_with`]. If you want to recurse, you need \ + to call it manually."] + fn visit_relative_selectors(&mut self, node: &[RelativeSelector]) { + <[RelativeSelector] as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Resolution`.\n\nBy default, this method calls \ + [`Resolution::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_resolution(&mut self, node: &Resolution) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Rule`.\n\nBy default, this method calls \ + [`Rule::visit_children_with`]. If you want to recurse, you need to call it manually."] + fn visit_rule(&mut self, node: &Rule) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Vec < Rule >`.\n\nBy default, this method calls [`Vec < Rule \ + >::visit_children_with`]. If you want to recurse, you need to call it manually."] + fn visit_rules(&mut self, node: &[Rule]) { + <[Rule] as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `ScopeRange`.\n\nBy default, this method calls \ + [`ScopeRange::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_scope_range(&mut self, node: &ScopeRange) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `SelectorList`.\n\nBy default, this method calls \ + [`SelectorList::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_selector_list(&mut self, node: &SelectorList) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `SequenceOfCustomIdents`.\n\nBy default, this method calls \ + [`SequenceOfCustomIdents::visit_children_with`]. If you want to recurse, you need to \ + call it manually."] + fn visit_sequence_of_custom_idents(&mut self, node: &SequenceOfCustomIdents) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `SimpleBlock`.\n\nBy default, this method calls \ + [`SimpleBlock::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_simple_block(&mut self, node: &SimpleBlock) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `SizeFeature`.\n\nBy default, this method calls \ + [`SizeFeature::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_size_feature(&mut self, node: &SizeFeature) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `SizeFeatureBoolean`.\n\nBy default, this method calls \ + [`SizeFeatureBoolean::visit_children_with`]. If you want to recurse, you need to call \ + it manually."] + fn visit_size_feature_boolean(&mut self, node: &SizeFeatureBoolean) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `SizeFeatureName`.\n\nBy default, this method calls \ + [`SizeFeatureName::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_size_feature_name(&mut self, node: &SizeFeatureName) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `SizeFeaturePlain`.\n\nBy default, this method calls \ + [`SizeFeaturePlain::visit_children_with`]. If you want to recurse, you need to call \ + it manually."] + fn visit_size_feature_plain(&mut self, node: &SizeFeaturePlain) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `SizeFeatureRange`.\n\nBy default, this method calls \ + [`SizeFeatureRange::visit_children_with`]. If you want to recurse, you need to call \ + it manually."] + fn visit_size_feature_range(&mut self, node: &SizeFeatureRange) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `SizeFeatureRangeComparison`.\n\nBy default, this method calls \ + [`SizeFeatureRangeComparison::visit_children_with`]. If you want to recurse, you need \ + to call it manually."] + fn visit_size_feature_range_comparison(&mut self, node: &SizeFeatureRangeComparison) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `SizeFeatureRangeInterval`.\n\nBy default, this method calls \ + [`SizeFeatureRangeInterval::visit_children_with`]. If you want to recurse, you need \ + to call it manually."] + fn visit_size_feature_range_interval(&mut self, node: &SizeFeatureRangeInterval) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `SizeFeatureValue`.\n\nBy default, this method calls \ + [`SizeFeatureValue::visit_children_with`]. If you want to recurse, you need to call \ + it manually."] + fn visit_size_feature_value(&mut self, node: &SizeFeatureValue) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `swc_common :: Span`.\n\nBy default, this method calls \ + [`swc_common :: Span::visit_children_with`]. If you want to recurse, you need to call \ + it manually."] + fn visit_span(&mut self, node: &swc_common::Span) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Str`.\n\nBy default, this method calls \ + [`Str::visit_children_with`]. If you want to recurse, you need to call it manually."] + fn visit_str(&mut self, node: &Str) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `StyleBlock`.\n\nBy default, this method calls \ + [`StyleBlock::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_style_block(&mut self, node: &StyleBlock) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Stylesheet`.\n\nBy default, this method calls \ + [`Stylesheet::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_stylesheet(&mut self, node: &Stylesheet) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `SubclassSelector`.\n\nBy default, this method calls \ + [`SubclassSelector::visit_children_with`]. If you want to recurse, you need to call \ + it manually."] + fn visit_subclass_selector(&mut self, node: &SubclassSelector) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Vec < SubclassSelector >`.\n\nBy default, this method calls \ + [`Vec < SubclassSelector >::visit_children_with`]. If you want to recurse, you need \ + to call it manually."] + fn visit_subclass_selectors(&mut self, node: &[SubclassSelector]) { + <[SubclassSelector] as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `SupportsAnd`.\n\nBy default, this method calls \ + [`SupportsAnd::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_supports_and(&mut self, node: &SupportsAnd) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `SupportsCondition`.\n\nBy default, this method calls \ + [`SupportsCondition::visit_children_with`]. If you want to recurse, you need to call \ + it manually."] + fn visit_supports_condition(&mut self, node: &SupportsCondition) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `SupportsConditionType`.\n\nBy default, this method calls \ + [`SupportsConditionType::visit_children_with`]. If you want to recurse, you need to \ + call it manually."] + fn visit_supports_condition_type(&mut self, node: &SupportsConditionType) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Vec < SupportsConditionType >`.\n\nBy default, this method \ + calls [`Vec < SupportsConditionType >::visit_children_with`]. If you want to recurse, \ + you need to call it manually."] + fn visit_supports_condition_types(&mut self, node: &[SupportsConditionType]) { + <[SupportsConditionType] as VisitWith>::visit_children_with(node, self) + } + #[doc = "Visit a node of type `SupportsFeature`.\n\nBy default, this method calls \ + [`SupportsFeature::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_supports_feature(&mut self, node: &SupportsFeature) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `SupportsInParens`.\n\nBy default, this method calls \ + [`SupportsInParens::visit_children_with`]. If you want to recurse, you need to call \ + it manually."] + fn visit_supports_in_parens(&mut self, node: &SupportsInParens) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `SupportsNot`.\n\nBy default, this method calls \ + [`SupportsNot::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_supports_not(&mut self, node: &SupportsNot) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `SupportsOr`.\n\nBy default, this method calls \ + [`SupportsOr::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_supports_or(&mut self, node: &SupportsOr) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `TagNameSelector`.\n\nBy default, this method calls \ + [`TagNameSelector::visit_children_with`]. If you want to recurse, you need to call it \ + manually."] + fn visit_tag_name_selector(&mut self, node: &TagNameSelector) { + >::visit_children_with(node, self) + } + #[doc = "Visit a node of type `Time`.\n\nBy default, this method calls \ + [`Time::visit_children_with`]. If you want to recurse, you need to call it manually."] + fn visit_time(&mut self, node: &Time) { +