Avatar for the swc-project user
swc-project
swc
BlogDocsChangelog

fix(parser): Handle import types in function parameter type annotations

#9806
Comparing
devin/1734619095-fix-import-type-param-parsing
(
078c305
) with
main
(
c81be2e
)
CodSpeed Performance Gauge
0%
Improvements
0
Regressions
0
Untouched
194
New
0
Dropped
0
Ignored
0

Benchmarks

Passed

es/visitor/base-perf/boxing_boxed
crates/swc_ecma_transforms_base/benches/deps.rs::benches::bench_cases::es/visitor/base-perf/boxing_boxed
CodSpeed Performance Gauge
+3%
3.3 µs
3.2 µs
es/visitor/base-perf/boxing_unboxed
crates/swc_ecma_transforms_base/benches/deps.rs::benches::bench_cases::es/visitor/base-perf/boxing_unboxed
CodSpeed Performance Gauge
+2%
3.4 µs
3.3 µs
serialization of serde
crates/swc_common/benches/serde.rs::benches::bench_serde::serialization of serde
CodSpeed Performance Gauge
+1%
2.8 µs
2.7 µs
common/allocator/alloc/std/1000000
crates/swc_allocator/benches/bench.rs::benches::bench_alloc::common/allocator/alloc/std/1000000
CodSpeed Performance Gauge
+1%
88.1 ms
87.4 ms
es/full/minify/libraries/terser
crates/swc/benches/minify.rs::benches::files_group::es/full/minify/libraries::es/full/minify/libraries/terser
CodSpeed Performance Gauge
+1%
638.1 ms
632.8 ms
es/parser/three
crates/swc_ecma_parser/benches/parser.rs::benches::bench_files::es/parser/three
CodSpeed Performance Gauge
+1%
126.6 ms
125.6 ms
es/parser/yui
crates/swc_ecma_parser/benches/parser.rs::benches::bench_files::es/parser/yui
CodSpeed Performance Gauge
+1%
20.9 ms
20.8 ms
es/parser/backbone
crates/swc_ecma_parser/benches/parser.rs::benches::bench_files::es/parser/backbone
CodSpeed Performance Gauge
+1%
5.2 ms
5.1 ms
es/parser/typescript
crates/swc_ecma_parser/benches/parser.rs::benches::bench_files::es/parser/typescript
CodSpeed Performance Gauge
+1%
730.9 ms
726.1 ms
es/parser/jquery mobile
crates/swc_ecma_parser/benches/parser.rs::benches::bench_files::es/parser/jquery mobile
CodSpeed Performance Gauge
+1%
41 ms
40.7 ms
es/parser/jquery
crates/swc_ecma_parser/benches/parser.rs::benches::bench_files::es/parser/jquery
CodSpeed Performance Gauge
+1%
26.8 ms
26.6 ms
es/oxc/benches/assets/UserSettings.tsx/sourceMap=true/reactDev=false
crates/swc/benches/oxc.rs::benches::full_group::es/oxc/benches/assets/UserSettings.tsx/sourceMap=true/reactDev=false
CodSpeed Performance Gauge
+1%
1.4 ms
1.4 ms
es/parser/angular
crates/swc_ecma_parser/benches/parser.rs::benches::bench_files::es/parser/angular
CodSpeed Performance Gauge
+1%
34.9 ms
34.7 ms
es/parser/mootools
crates/swc_ecma_parser/benches/parser.rs::benches::bench_files::es/parser/mootools
CodSpeed Performance Gauge
+1%
21.2 ms
21.1 ms
es/full/minify/libraries/moment
crates/swc/benches/minify.rs::benches::files_group::es/full/minify/libraries::es/full/minify/libraries/moment
CodSpeed Performance Gauge
+1%
127 ms
126.4 ms
es/preset-env/usage/property
crates/swc_ecma_preset_env/benches/polyfills.rs::benches::bench_cases::es/preset-env/usage/property
CodSpeed Performance Gauge
+1%
118.3 µs
117.7 µs
es/full/codegen/es2016
crates/swc/benches/typescript.rs::benches::codegen_group::es/full/codegen/es2016
CodSpeed Performance Gauge
0%
261.4 µs
260.1 µs
es/full/minify/libraries/d3
crates/swc/benches/minify.rs::benches::files_group::es/full/minify/libraries::es/full/minify/libraries/d3
CodSpeed Performance Gauge
0%
817.2 ms
813.5 ms
parse_and_babelify_underscore
crates/swc_estree_compat/benches/babelify.rs::benches::bench_cases::parse_and_babelify_underscore
CodSpeed Performance Gauge
0%
15.3 ms
15.3 ms
es/parser/underscore
crates/swc_ecma_parser/benches/parser.rs::benches::bench_files::es/parser/underscore
CodSpeed Performance Gauge
0%
4.5 ms
4.5 ms
es/oxc/benches/assets/table.tsx/sourceMap=false/reactDev=false
crates/swc/benches/oxc.rs::benches::full_group::es/oxc/benches/assets/table.tsx/sourceMap=false/reactDev=false
CodSpeed Performance Gauge
0%
6.8 ms
6.8 ms
es/parser/colors
crates/swc_ecma_parser/benches/parser.rs::benches::bench_files::es/parser/colors
CodSpeed Performance Gauge
0%
133.2 µs
132.7 µs
es/oxc/benches/assets/parser.ts/sourceMap=false/reactDev=false
crates/swc/benches/oxc.rs::benches::full_group::es/oxc/benches/assets/parser.ts/sourceMap=false/reactDev=false
CodSpeed Performance Gauge
0%
76 ms
75.8 ms
es/full/minify/libraries/jquery
crates/swc/benches/minify.rs::benches::files_group::es/full/minify/libraries::es/full/minify/libraries/jquery
CodSpeed Performance Gauge
0%
204.7 ms
204.1 ms
es/parser/cal-com
crates/swc_ecma_parser/benches/parser.rs::benches::bench_files::es/parser/cal-com
CodSpeed Performance Gauge
0%
100.8 ms
100.5 ms
es/full/minify/libraries/echarts
crates/swc/benches/minify.rs::benches::files_group::es/full/minify/libraries::es/full/minify/libraries/echarts
CodSpeed Performance Gauge
0%
3.3 s
3.3 s
es/full/minify/libraries/lodash
crates/swc/benches/minify.rs::benches::files_group::es/full/minify/libraries::es/full/minify/libraries/lodash
CodSpeed Performance Gauge
0%
250 ms
249.4 ms
es2022_class_properties
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group::es2022_class_properties
CodSpeed Performance Gauge
0%
387.8 µs
386.8 µs
es/full-target/es2016
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::full_group::es/full-target/es2016
CodSpeed Performance Gauge
0%
576.2 µs
574.8 µs
es/full-target/es2017
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::full_group::es/full-target/es2017
CodSpeed Performance Gauge
0%
537 µs
535.7 µs
es/minifier/libs/vue
crates/swc_ecma_minifier/benches/full.rs::files::bench_files::es/minifier/libs::es/minifier/libs/vue
CodSpeed Performance Gauge
0%
240.7 ms
240.1 ms
es/minifier/libs/d3
crates/swc_ecma_minifier/benches/full.rs::files::bench_files::es/minifier/libs::es/minifier/libs/d3
CodSpeed Performance Gauge
0%
664.7 ms
663.2 ms
es/full/parser
crates/swc/benches/typescript.rs::benches::parser_group::es/full/parser
CodSpeed Performance Gauge
0%
1.4 ms
1.4 ms
es2016_exponentiation
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group::es2016_exponentiation
CodSpeed Performance Gauge
0%
295.1 µs
294.5 µs
es/target/es2016
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::version_group::es/target/es2016
CodSpeed Performance Gauge
0%
297.3 µs
296.7 µs
html/document_fragment/visitor/compare/visit_mut_span_panic
crates/swc_html_parser/benches/compare.rs::benches::bench_cases::html/document_fragment/visitor/compare/visit_mut_span_panic
CodSpeed Performance Gauge
0%
1.2 ms
1.2 ms
es/target/es2020
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::version_group::es/target/es2020
CodSpeed Performance Gauge
0%
457.8 µs
456.9 µs
es/preset-env/usage/builtin_type
crates/swc_ecma_preset_env/benches/polyfills.rs::benches::bench_cases::es/preset-env/usage/builtin_type
CodSpeed Performance Gauge
0%
254.8 µs
254.3 µs
es2015_destructuring
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group::es2015_destructuring
CodSpeed Performance Gauge
0%
351.2 µs
350.6 µs
es2015_typeof_symbol
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group::es2015_typeof_symbol
CodSpeed Performance Gauge
0%
280.8 µs
280.3 µs
es/oxc/benches/assets/table.tsx/sourceMap=true/reactDev=false
crates/swc/benches/oxc.rs::benches::full_group::es/oxc/benches/assets/table.tsx/sourceMap=true/reactDev=false
CodSpeed Performance Gauge
0%
9.2 ms
9.2 ms
es/oxc/benches/assets/parser.ts/sourceMap=true/reactDev=true
crates/swc/benches/oxc.rs::benches::full_group::es/oxc/benches/assets/parser.ts/sourceMap=true/reactDev=true
CodSpeed Performance Gauge
0%
108.2 ms
108 ms
es/full-target/es2018
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::full_group::es/full-target/es2018
CodSpeed Performance Gauge
0%
522.2 µs
521.2 µs
es2015_duplicate_keys
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group::es2015_duplicate_keys
CodSpeed Performance Gauge
0%
284.9 µs
284.4 µs
es/full/all/es2018
crates/swc/benches/typescript.rs::benches::full_group::es/full/all/es2018
CodSpeed Performance Gauge
0%
181.5 ms
181.2 ms
es/full/all/es2020
crates/swc/benches/typescript.rs::benches::full_group::es/full/all/es2020
CodSpeed Performance Gauge
0%
173.5 ms
173.2 ms
es2017_async_to_generator
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group::es2017_async_to_generator
CodSpeed Performance Gauge
0%
276.3 µs
275.8 µs
css/visitor/compare/fold_span
crates/swc_css_parser/benches/compare.rs::benches::bench_cases::css/visitor/compare/fold_span
CodSpeed Performance Gauge
0%
7 ms
7 ms
es/target/es2017
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::version_group::es/target/es2017
CodSpeed Performance Gauge
0%
276.7 µs
276.2 µs
es/full/base/fixer
crates/swc/benches/typescript.rs::benches::base_tr_group::es/full/base/fixer
CodSpeed Performance Gauge
0%
117 µs
116.8 µs
es/full/all/es2015
crates/swc/benches/typescript.rs::benches::full_group::es/full/all/es2015
CodSpeed Performance Gauge
0%
184.9 ms
184.7 ms
es2020_nullish_coalescing
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group::es2020_nullish_coalescing
CodSpeed Performance Gauge
0%
302.6 µs
302.2 µs
es/full/all/es2016
crates/swc/benches/typescript.rs::benches::full_group::es/full/all/es2016
CodSpeed Performance Gauge
0%
183.7 ms
183.4 ms
es/transform/baseline/base
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::baseline_group::es/transform/baseline/base
CodSpeed Performance Gauge
0%
262.5 µs
262.2 µs
es/full/minify/libraries/vue
crates/swc/benches/minify.rs::benches::files_group::es/full/minify/libraries::es/full/minify/libraries/vue
CodSpeed Performance Gauge
0%
292.9 ms
292.5 ms
es/full/all/es2017
crates/swc/benches/typescript.rs::benches::full_group::es/full/all/es2017
CodSpeed Performance Gauge
0%
182.8 ms
182.6 ms
common/allocator/alloc/scoped/1000000
crates/swc_allocator/benches/bench.rs::benches::bench_alloc::common/allocator/alloc/scoped/1000000
CodSpeed Performance Gauge
0%
52.7 ms
52.7 ms
es/full/all/es2019
crates/swc/benches/typescript.rs::benches::full_group::es/full/all/es2019
CodSpeed Performance Gauge
0%
180.5 ms
180.3 ms
es2019_optional_catch_binding
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group::es2019_optional_catch_binding
CodSpeed Performance Gauge
0%
275.9 µs
275.6 µs
es/full/all/es5
crates/swc/benches/typescript.rs::benches::full_group::es/full/all/es5
CodSpeed Performance Gauge
0%
243 ms
242.7 ms
parse_and_babelify_angular
crates/swc_estree_compat/benches/babelify.rs::benches::bench_cases::parse_and_babelify_angular
CodSpeed Performance Gauge
0%
162.7 ms
162.5 ms
es2015_shorthand_property
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group::es2015_shorthand_property
CodSpeed Performance Gauge
0%
277.4 µs
277 µs
es2015_instanceof
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group::es2015_instanceof
CodSpeed Performance Gauge
0%
282.3 µs
282 µs
es2015_parameters
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group::es2015_parameters
CodSpeed Performance Gauge
0%
342.3 µs
341.9 µs
es/transform/baseline/common_reserved_word
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::baseline_group::es/transform/baseline/common_reserved_word
CodSpeed Performance Gauge
0%
287.8 µs
287.5 µs
es2018_object_rest_spread
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group::es2018_object_rest_spread
CodSpeed Performance Gauge
0%
294.2 µs
294 µs
es2015_block_scoped_fn
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group::es2015_block_scoped_fn
CodSpeed Performance Gauge
0%
293.9 µs
293.7 µs
parse_and_babelify_jquery
crates/swc_estree_compat/benches/babelify.rs::benches::bench_cases::parse_and_babelify_jquery
CodSpeed Performance Gauge
0%
110.3 ms
110.2 ms
es/target/es2018
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::version_group::es/target/es2018
CodSpeed Performance Gauge
0%
313.2 µs
313 µs
es2015_computed_props
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group::es2015_computed_props
CodSpeed Performance Gauge
0%
277.1 µs
276.8 µs
es/full/all/es3
crates/swc/benches/typescript.rs::benches::full_group::es/full/all/es3
CodSpeed Performance Gauge
0%
249.7 ms
249.5 ms
es/full/minify/libraries/victory
crates/swc/benches/minify.rs::benches::files_group::es/full/minify/libraries::es/full/minify/libraries/victory
CodSpeed Performance Gauge
0%
1.9 s
1.9 s
es2015_for_of
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group::es2015_for_of
CodSpeed Performance Gauge
0%
293.1 µs
292.9 µs
es/full/codegen/es2020
crates/swc/benches/typescript.rs::benches::codegen_group::es/full/codegen/es2020
CodSpeed Performance Gauge
0%
256.9 µs
256.7 µs
es/minifier/libs/lodash
crates/swc_ecma_minifier/benches/full.rs::files::bench_files::es/minifier/libs::es/minifier/libs/lodash
CodSpeed Performance Gauge
0%
216.4 ms
216.3 ms
es2015_block_scoping
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group::es2015_block_scoping
CodSpeed Performance Gauge
0%
460.8 µs
460.5 µs
parse_and_babelify_mootools
crates/swc_estree_compat/benches/babelify.rs::benches::bench_cases::parse_and_babelify_mootools
CodSpeed Performance Gauge
0%
81.8 ms
81.8 ms
es2015_sticky_regex
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group::es2015_sticky_regex
CodSpeed Performance Gauge
0%
279.5 µs
279.3 µs
parse_and_babelify_yui
crates/swc_estree_compat/benches/babelify.rs::benches::bench_cases::parse_and_babelify_yui
CodSpeed Performance Gauge
0%
76.5 ms
76.5 ms
es2015_fn_name
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group::es2015_fn_name
CodSpeed Performance Gauge
0%
288.5 µs
288.4 µs
css/visitor/compare/fold_span_panic
crates/swc_css_parser/benches/compare.rs::benches::bench_cases::css/visitor/compare/fold_span_panic
CodSpeed Performance Gauge
0%
7 ms
7 ms
parse_and_babelify_jquery_mobile
crates/swc_estree_compat/benches/babelify.rs::benches::bench_cases::parse_and_babelify_jquery_mobile
CodSpeed Performance Gauge
0%
185.4 ms
185.4 ms
es/fixer/typescript
crates/swc_ecma_transforms_base/benches/base.rs::benches::bench_cases::es/fixer/typescript
CodSpeed Performance Gauge
0%
224.6 ms
224.5 ms
es/visitor/compare/visit_mut_span_panic
crates/swc_ecma_parser/benches/compare.rs::benches::bench_cases::es/visitor/compare/visit_mut_span_panic
CodSpeed Performance Gauge
0%
7.2 ms
7.2 ms
babelify-only
crates/swc_estree_compat/benches/babelify.rs::benches::bench_cases::babelify-only
CodSpeed Performance Gauge
0%
2.1 ms
2.1 ms
bootstrap
crates/swc_css_minifier/benches/full.rs::files::bench_files::css/minify/libraries::bootstrap
CodSpeed Performance Gauge
0%
64.8 ms
64.8 ms
es/lexer/yui
crates/swc_ecma_parser/benches/lexer.rs::benches::bench_files::es/lexer/yui
CodSpeed Performance Gauge
0%
8.2 ms
8.2 ms
es/transform/baseline/common_typescript
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::baseline_group::es/transform/baseline/common_typescript
CodSpeed Performance Gauge
0%
371 µs
370.9 µs
es/visitor/compare/visit_mut_span
crates/swc_ecma_parser/benches/compare.rs::benches::bench_cases::es/visitor/compare/visit_mut_span
CodSpeed Performance Gauge
0%
7.3 ms
7.3 ms
es/minifier/libs/victory
crates/swc_ecma_minifier/benches/full.rs::files::bench_files::es/minifier/libs::es/minifier/libs/victory
CodSpeed Performance Gauge
0%
1.4 s
1.4 s
es2015_spread
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group::es2015_spread
CodSpeed Performance Gauge
0%
276.5 µs
276.5 µs
css/visitor/compare/clone
crates/swc_css_parser/benches/compare.rs::benches::bench_cases::css/visitor/compare/clone
CodSpeed Performance Gauge
0%
6 ms
6 ms
es/minifier/libs/jquery
crates/swc_ecma_minifier/benches/full.rs::files::bench_files::es/minifier/libs::es/minifier/libs/jquery
CodSpeed Performance Gauge
0%
158.1 ms
158 ms
es/minifier/libs/antd
crates/swc_ecma_minifier/benches/full.rs::files::bench_files::es/minifier/libs::es/minifier/libs/antd
CodSpeed Performance Gauge
0%
3.3 s
3.3 s
es/oxc/benches/assets/table.tsx/sourceMap=true/reactDev=true
crates/swc/benches/oxc.rs::benches::full_group::es/oxc/benches/assets/table.tsx/sourceMap=true/reactDev=true
CodSpeed Performance Gauge
0%
10.2 ms
10.2 ms
es/resolver/typescript
crates/swc_ecma_transforms_base/benches/base.rs::benches::bench_cases::es/resolver/typescript
CodSpeed Performance Gauge
0%
268 ms
267.9 ms
es/visitor/compare/clone
crates/swc_ecma_parser/benches/compare.rs::benches::bench_cases::es/visitor/compare/clone
CodSpeed Performance Gauge
0%
6.7 ms
6.7 ms
css_spec
crates/swc_html_minifier/benches/full.rs::files_document::bench_files_document::html/minify/document::css_spec
CodSpeed Performance Gauge
0%
207.1 ms
207.1 ms
es2020_optional_chaining
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group::es2020_optional_chaining
CodSpeed Performance Gauge
0%
338.3 µs
338.3 µs
es/visitor/compare/fold_span
crates/swc_ecma_parser/benches/compare.rs::benches::bench_cases::es/visitor/compare/fold_span
CodSpeed Performance Gauge
0%
8 ms
8 ms
es/lexer/cal-com
crates/swc_ecma_parser/benches/lexer.rs::benches::bench_files::es/lexer/cal-com
CodSpeed Performance Gauge
0%
36.5 ms
36.5 ms
html/document/visitor/compare/visit_mut_span_panic
crates/swc_html_parser/benches/compare.rs::benches::bench_cases::html/document/visitor/compare/visit_mut_span_panic
CodSpeed Performance Gauge
0%
1.2 ms
1.2 ms
css/visitor/compare/visit_mut_span
crates/swc_css_parser/benches/compare.rs::benches::bench_cases::css/visitor/compare/visit_mut_span
CodSpeed Performance Gauge
0%
6.4 ms
6.4 ms
html/document/visitor/compare/clone
crates/swc_html_parser/benches/compare.rs::benches::bench_cases::html/document/visitor/compare/clone
CodSpeed Performance Gauge
0%
1.1 ms
1.1 ms
resolver/typescript
crates/swc_ecma_transforms_base/benches/parallel.rs::benches::bench_cases::es/base/parallel::resolver/typescript
CodSpeed Performance Gauge
0%
13.6 s
13.6 s
html/parser/parser_document/css_2021_spec
crates/swc_html_parser/benches/parser.rs::benches::bench_files::html/parser/parser_document/css_2021_spec
CodSpeed Performance Gauge
0%
76.8 ms
76.8 ms
es/lexer/three
crates/swc_ecma_parser/benches/lexer.rs::benches::bench_files::es/lexer/three
CodSpeed Performance Gauge
0%
45.1 ms
45.1 ms
html/document_fragment/visitor/compare/visit_mut_span
crates/swc_html_parser/benches/compare.rs::benches::bench_cases::html/document_fragment/visitor/compare/visit_mut_span
CodSpeed Performance Gauge
0%
1.2 ms
1.2 ms
html/document_fragment/visitor/compare/fold_span
crates/swc_html_parser/benches/compare.rs::benches::bench_cases::html/document_fragment/visitor/compare/fold_span
CodSpeed Performance Gauge
0%
1.3 ms
1.3 ms
html/document/visitor/compare/fold_span
crates/swc_html_parser/benches/compare.rs::benches::bench_cases::html/document/visitor/compare/fold_span
CodSpeed Performance Gauge
0%
1.3 ms
1.3 ms
css/parser/bootstrap_5_1_3
crates/swc_css_parser/benches/parser.rs::benches::bench_files::css/parser/bootstrap_5_1_3
CodSpeed Performance Gauge
0%
50.5 ms
50.5 ms
es/lexer/jquery mobile
crates/swc_ecma_parser/benches/lexer.rs::benches::bench_files::es/lexer/jquery mobile
CodSpeed Performance Gauge
0%
14.5 ms
14.5 ms
html/lexer/github_com_17_05_2022
crates/swc_html_parser/benches/lexer.rs::benches::bench_files::html/lexer/github_com_17_05_2022
CodSpeed Performance Gauge
0%
15 ms
15 ms
es/lexer/jquery
crates/swc_ecma_parser/benches/lexer.rs::benches::bench_files::es/lexer/jquery
CodSpeed Performance Gauge
0%
9.3 ms
9.3 ms
es/lexer/backbone
crates/swc_ecma_parser/benches/lexer.rs::benches::bench_files::es/lexer/backbone
CodSpeed Performance Gauge
0%
1.8 ms
1.8 ms
es/lexer/underscore
crates/swc_ecma_parser/benches/lexer.rs::benches::bench_files::es/lexer/underscore
CodSpeed Performance Gauge
0%
1.5 ms
1.5 ms
deserialization of serde
crates/swc_common/benches/serde.rs::benches::bench_serde::deserialization of serde
CodSpeed Performance Gauge
0%
2.4 µs
2.4 µs
es/lexer/colors
crates/swc_ecma_parser/benches/lexer.rs::benches::bench_files::es/lexer/colors
CodSpeed Performance Gauge
0%
47.2 µs
47.2 µs
es/visitor/base-perf/boxing_boxed_clone
crates/swc_ecma_transforms_base/benches/deps.rs::benches::bench_cases::es/visitor/base-perf/boxing_boxed_clone
CodSpeed Performance Gauge
0%
2.3 µs
2.3 µs
es/visitor/base-perf/boxing_unboxed_clone
crates/swc_ecma_transforms_base/benches/deps.rs::benches::bench_cases::es/visitor/base-perf/boxing_unboxed_clone
CodSpeed Performance Gauge
0%
2.6 µs
2.6 µs
es/lexer/angular
crates/swc_ecma_parser/benches/lexer.rs::benches::bench_files::es/lexer/angular
CodSpeed Performance Gauge
0%
14.4 ms
14.4 ms
html/lexer/css_2021_spec
crates/swc_html_parser/benches/lexer.rs::benches::bench_files::html/lexer/css_2021_spec
CodSpeed Performance Gauge
0%
41 ms
41 ms
html/document/visitor/compare/fold_span_panic
crates/swc_html_parser/benches/compare.rs::benches::bench_cases::html/document/visitor/compare/fold_span_panic
CodSpeed Performance Gauge
0%
1.3 ms
1.3 ms
html/document_fragment/visitor/compare/clone
crates/swc_html_parser/benches/compare.rs::benches::bench_cases::html/document_fragment/visitor/compare/clone
CodSpeed Performance Gauge
0%
1.1 ms
1.1 ms
css/lexer/foundation_6_7_4
crates/swc_css_parser/benches/lexer.rs::benches::bench_files::css/lexer/foundation_6_7_4
CodSpeed Performance Gauge
0%
7.6 ms
7.6 ms
html/lexer/stackoverflow_com_17_05_2022
crates/swc_html_parser/benches/lexer.rs::benches::bench_files::html/lexer/stackoverflow_com_17_05_2022
CodSpeed Performance Gauge
0%
14.9 ms
14.9 ms
css/lexer/bootstrap_5_1_3
crates/swc_css_parser/benches/lexer.rs::benches::bench_files::css/lexer/bootstrap_5_1_3
CodSpeed Performance Gauge
0%
9.5 ms
9.5 ms
html/document/visitor/compare/visit_mut_span
crates/swc_html_parser/benches/compare.rs::benches::bench_cases::html/document/visitor/compare/visit_mut_span
CodSpeed Performance Gauge
0%
1.2 ms
1.2 ms
html/parser/parser_document_fragment/github_com_17_05_2022
crates/swc_html_parser/benches/parser.rs::benches::bench_files::html/parser/parser_document_fragment/github_com_17_05_2022
CodSpeed Performance Gauge
0%
24 ms
24 ms
css/lexer/tailwind_3_1_1
crates/swc_css_parser/benches/lexer.rs::benches::bench_files::css/lexer/tailwind_3_1_1
CodSpeed Performance Gauge
0%
1.5 ms
1.5 ms
es/minifier/libs/moment
crates/swc_ecma_minifier/benches/full.rs::files::bench_files::es/minifier/libs::es/minifier/libs/moment
CodSpeed Performance Gauge
0%
98.6 ms
98.6 ms
html/parser/parser_document/github_com_17_05_2022
crates/swc_html_parser/benches/parser.rs::benches::bench_files::html/parser/parser_document/github_com_17_05_2022
CodSpeed Performance Gauge
0%
24.1 ms
24.1 ms
es/visitor/compare/fold_span_panic
crates/swc_ecma_parser/benches/compare.rs::benches::bench_cases::es/visitor/compare/fold_span_panic
CodSpeed Performance Gauge
0%
8 ms
8 ms
es/full/codegen/es2015
crates/swc/benches/typescript.rs::benches::codegen_group::es/full/codegen/es2015
CodSpeed Performance Gauge
0%
255.1 µs
255.1 µs
es/resolver_with_hygiene/typescript
crates/swc_ecma_transforms_base/benches/base.rs::benches::bench_cases::es/resolver_with_hygiene/typescript
CodSpeed Performance Gauge
0%
876.8 ms
876.9 ms
html/parser/parser_document/stackoverflow_com_17_05_2022
crates/swc_html_parser/benches/parser.rs::benches::bench_files::html/parser/parser_document/stackoverflow_com_17_05_2022
CodSpeed Performance Gauge
0%
22.9 ms
22.9 ms
es/minifier/libs/typescript
crates/swc_ecma_minifier/benches/full.rs::files::bench_files::es/minifier/libs::es/minifier/libs/typescript
CodSpeed Performance Gauge
0%
5.7 s
5.7 s
es/oxc/benches/assets/UserSettings.tsx/sourceMap=false/reactDev=true
crates/swc/benches/oxc.rs::benches::full_group::es/oxc/benches/assets/UserSettings.tsx/sourceMap=false/reactDev=true
CodSpeed Performance Gauge
0%
1.3 ms
1.3 ms
github
crates/swc_html_minifier/benches/full.rs::files_document::bench_files_document::html/minify/document::github
CodSpeed Performance Gauge
0%
44.5 ms
44.5 ms
es/hygiene/typescript
crates/swc_ecma_transforms_base/benches/base.rs::benches::bench_cases::es/hygiene/typescript
CodSpeed Performance Gauge
0%
561.3 ms
561.5 ms
es/codegen/with-parser/large
crates/swc_ecma_codegen/benches/with_parse.rs::benches::bench_cases::es/codegen/with-parser/large
CodSpeed Performance Gauge
0%
1.5 ms
1.5 ms
es/lexer/typescript
crates/swc_ecma_parser/benches/lexer.rs::benches::bench_files::es/lexer/typescript
CodSpeed Performance Gauge
0%
250.4 ms
250.5 ms
html/parser/parser_document_fragment/css_2021_spec
crates/swc_html_parser/benches/parser.rs::benches::bench_files::html/parser/parser_document_fragment/css_2021_spec
CodSpeed Performance Gauge
0%
76.1 ms
76.1 ms
es/full/codegen/es3
crates/swc/benches/typescript.rs::benches::codegen_group::es/full/codegen/es3
CodSpeed Performance Gauge
0%
254.3 µs
254.3 µs
es/full/codegen/es5
crates/swc/benches/typescript.rs::benches::codegen_group::es/full/codegen/es5
CodSpeed Performance Gauge
0%
254.3 µs
254.4 µs
es/minifier/libs/react
crates/swc_ecma_minifier/benches/full.rs::files::bench_files::es/minifier/libs::es/minifier/libs/react
CodSpeed Performance Gauge
0%
31 ms
31 ms
html/parser/parser_document_fragment/stackoverflow_com_17_05_2022
crates/swc_html_parser/benches/parser.rs::benches::bench_files::html/parser/parser_document_fragment/stackoverflow_com_17_05_2022
CodSpeed Performance Gauge
0%
22.8 ms
22.8 ms
hygiene/typescript
crates/swc_ecma_transforms_base/benches/parallel.rs::benches::bench_cases::es/base/parallel::hygiene/typescript
CodSpeed Performance Gauge
0%
28.2 s
28.2 s
es/full/codegen/es2017
crates/swc/benches/typescript.rs::benches::codegen_group::es/full/codegen/es2017
CodSpeed Performance Gauge
0%
254.5 µs
254.6 µs
es2015_arrow
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group::es2015_arrow
CodSpeed Performance Gauge
0%
305.3 µs
305.4 µs
parse_and_babelify_backbone
crates/swc_estree_compat/benches/babelify.rs::benches::bench_cases::parse_and_babelify_backbone
CodSpeed Performance Gauge
0%
17.8 ms
17.8 ms
es/target/es3
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::version_group::es/target/es3
CodSpeed Performance Gauge
0%
415.4 µs
415.6 µs
es/full/minify/libraries/antd
crates/swc/benches/minify.rs::benches::files_group::es/full/minify/libraries::es/full/minify/libraries/antd
CodSpeed Performance Gauge
0%
4.1 s
4.1 s
es/minifier/libs/echarts
crates/swc_ecma_minifier/benches/full.rs::files::bench_files::es/minifier/libs::es/minifier/libs/echarts
CodSpeed Performance Gauge
0%
2.6 s
2.6 s
css_spec
crates/swc_html_minifier/benches/full.rs::files_document_fragment::bench_files_document_fragment::html/minify/document_fragment::css_spec
CodSpeed Performance Gauge
0%
204.4 ms
204.5 ms
es/visitor/base-perf/module_clone
crates/swc_ecma_transforms_base/benches/deps.rs::benches::bench_cases::es/visitor/base-perf/module_clone
CodSpeed Performance Gauge
0%
327.1 µs
327.3 µs
es/visitor/base-perf/fold_empty
crates/swc_ecma_transforms_base/benches/deps.rs::benches::bench_cases::es/visitor/base-perf/fold_empty
CodSpeed Performance Gauge
0%
326.9 µs
327.1 µs
es/visitor/base-perf/fold_noop_impl_all
crates/swc_ecma_transforms_base/benches/deps.rs::benches::bench_cases::es/visitor/base-perf/fold_noop_impl_all
CodSpeed Performance Gauge
0%
327 µs
327.2 µs
es/visitor/base-perf/fold_noop_impl_vec
crates/swc_ecma_transforms_base/benches/deps.rs::benches::bench_cases::es/visitor/base-perf/fold_noop_impl_vec
CodSpeed Performance Gauge
0%
327.2 µs
327.4 µs
es/full/minify/libraries/react
crates/swc/benches/minify.rs::benches::files_group::es/full/minify/libraries::es/full/minify/libraries/react
CodSpeed Performance Gauge
0%
37.2 ms
37.2 ms
typescript/fast-strip
crates/swc_fast_ts_strip/benches/assets.rs::benches::fast_ts::typescript/fast-strip
CodSpeed Performance Gauge
0%
779.5 µs
780.1 µs
es/oxc/benches/assets/renderer.ts/sourceMap=false/reactDev=true
crates/swc/benches/oxc.rs::benches::full_group::es/oxc/benches/assets/renderer.ts/sourceMap=false/reactDev=true
CodSpeed Performance Gauge
0%
12.4 ms
12.4 ms
es/lexer/mootools
crates/swc_ecma_parser/benches/lexer.rs::benches::bench_files::es/lexer/mootools
CodSpeed Performance Gauge
0%
7.4 ms
7.4 ms
es/full/codegen/es2019
crates/swc/benches/typescript.rs::benches::codegen_group::es/full/codegen/es2019
CodSpeed Performance Gauge
0%
257 µs
257.2 µs
es/target/es2015
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::version_group::es/target/es2015
CodSpeed Performance Gauge
0%
1.2 ms
1.2 ms
es/codegen/large
crates/swc_ecma_codegen/benches/bench.rs::benches::bench_cases::es/codegen/large
CodSpeed Performance Gauge
0%
687.8 µs
688.4 µs
es/full/codegen/es2018
crates/swc/benches/typescript.rs::benches::codegen_group::es/full/codegen/es2018
CodSpeed Performance Gauge
0%
257.6 µs
257.8 µs
es2015_classes
crates/swc_ecma_transforms_typescript/benches/compat.rs::benches::single_tr_group::es2015_classes
CodSpeed Performance Gauge
0%
392.8 µs
393.3 µs
stackoverflow
crates/swc_html_minifier/benches/full.rs::files_document_fragment::bench_files_document_fragment::html/minify/document_fragment::stackoverflow
CodSpeed Performance Gauge
0%
39.4 ms
39.4 ms
css/visitor/compare/visit_mut_span_panic
crates/swc_css_parser/benches/compare.rs::benches::bench_cases::css/visitor/compare/visit_mut_span_panic
CodSpeed Performance Gauge
0%
6.4 ms
6.4 ms
css/parser/tailwind_3_1_1
crates/swc_css_parser/benches/parser.rs::benches::bench_files::css/parser/tailwind_3_1_1
CodSpeed Performance Gauge
0%
7.7 ms
7.7 ms
common/allocator/alloc/cached-scoped/1000000
crates/swc_allocator/benches/bench.rs::benches::bench_alloc::common/allocator/alloc/cached-scoped/1000000
CodSpeed Performance Gauge
0%
52.3 ms
52.4 ms
html/document_fragment/visitor/compare/fold_span_panic
crates/swc_html_parser/benches/compare.rs::benches::bench_cases::html/document_fragment/visitor/compare/fold_span_panic
CodSpeed Performance Gauge
0%
1.3 ms
1.3 ms
es/full/bugs-1
crates/swc/benches/bugs.rs::benches::bench_bugs::es/full/bugs-1
CodSpeed Performance Gauge
0%
473.1 µs
474 µs
es/full/minify/libraries/typescript
crates/swc/benches/minify.rs::benches::files_group::es/full/minify/libraries::es/full/minify/libraries/typescript
CodSpeed Performance Gauge
0%
6.6 s
6.7 s
es/visitor/base-perf/visit_contains_this
crates/swc_ecma_transforms_base/benches/deps.rs::benches::bench_cases::es/visitor/base-perf/visit_contains_this
CodSpeed Performance Gauge
0%
47.5 µs
47.6 µs
es/oxc/benches/assets/parser.ts/sourceMap=true/reactDev=false
crates/swc/benches/oxc.rs::benches::full_group::es/oxc/benches/assets/parser.ts/sourceMap=true/reactDev=false
CodSpeed Performance Gauge
0%
105.9 ms
106.2 ms
es/oxc/benches/assets/renderer.ts/sourceMap=true/reactDev=false
crates/swc/benches/oxc.rs::benches::full_group::es/oxc/benches/assets/renderer.ts/sourceMap=true/reactDev=false
CodSpeed Performance Gauge
0%
17 ms
17.1 ms
github
crates/swc_html_minifier/benches/full.rs::files_document_fragment::bench_files_document_fragment::html/minify/document_fragment::github
CodSpeed Performance Gauge
0%
44 ms
44.2 ms
es/oxc/benches/assets/table.tsx/sourceMap=false/reactDev=true
crates/swc/benches/oxc.rs::benches::full_group::es/oxc/benches/assets/table.tsx/sourceMap=false/reactDev=true
CodSpeed Performance Gauge
0%
7.9 ms
7.9 ms
es/codegen/with-parser/colors
crates/swc_ecma_codegen/benches/with_parse.rs::benches::bench_cases::es/codegen/with-parser/colors
CodSpeed Performance Gauge
0%
200.6 µs
201.2 µs
es/codegen/colors
crates/swc_ecma_codegen/benches/bench.rs::benches::bench_cases::es/codegen/colors
CodSpeed Performance Gauge
0%
70 µs
70.3 µs
common/allocator/alloc/no-scope/1000000
crates/swc_allocator/benches/bench.rs::benches::bench_alloc::common/allocator/alloc/no-scope/1000000
CodSpeed Performance Gauge
0%
112.9 ms
113.3 ms
es/minifier/libs/three
crates/swc_ecma_minifier/benches/full.rs::files::bench_files::es/minifier/libs::es/minifier/libs/three
CodSpeed Performance Gauge
0%
984.7 ms
988.6 ms
es/oxc/benches/assets/parser.ts/sourceMap=false/reactDev=true
crates/swc/benches/oxc.rs::benches::full_group::es/oxc/benches/assets/parser.ts/sourceMap=false/reactDev=true
CodSpeed Performance Gauge
0%
75.6 ms
75.9 ms
es/minifier/libs/terser
crates/swc_ecma_minifier/benches/full.rs::files::bench_files::es/minifier/libs::es/minifier/libs/terser
CodSpeed Performance Gauge
0%
489.6 ms
491.6 ms
es/oxc/benches/assets/renderer.ts/sourceMap=false/reactDev=false
crates/swc/benches/oxc.rs::benches::full_group::es/oxc/benches/assets/renderer.ts/sourceMap=false/reactDev=false
CodSpeed Performance Gauge
-1%
12.3 ms
12.4 ms
css/parser/foundation_6_7_4
crates/swc_css_parser/benches/parser.rs::benches::bench_files::css/parser/foundation_6_7_4
CodSpeed Performance Gauge
-1%
39.9 ms
40.1 ms
stackoverflow
crates/swc_html_minifier/benches/full.rs::files_document::bench_files_document::html/minify/document::stackoverflow
CodSpeed Performance Gauge
-1%
39.2 ms
39.5 ms
es/full/minify/libraries/three
crates/swc/benches/minify.rs::benches::files_group::es/full/minify/libraries::es/full/minify/libraries/three
CodSpeed Performance Gauge
-1%
1.3 s
1.3 s
es/oxc/benches/assets/UserSettings.tsx/sourceMap=false/reactDev=false
crates/swc/benches/oxc.rs::benches::full_group::es/oxc/benches/assets/UserSettings.tsx/sourceMap=false/reactDev=false
CodSpeed Performance Gauge
-1%
1.2 ms
1.2 ms
es/oxc/benches/assets/renderer.ts/sourceMap=true/reactDev=true
crates/swc/benches/oxc.rs::benches::full_group::es/oxc/benches/assets/renderer.ts/sourceMap=true/reactDev=true
CodSpeed Performance Gauge
-1%
17.1 ms
17.2 ms
es/oxc/benches/assets/UserSettings.tsx/sourceMap=true/reactDev=true
crates/swc/benches/oxc.rs::benches::full_group::es/oxc/benches/assets/UserSettings.tsx/sourceMap=true/reactDev=true
CodSpeed Performance Gauge
-1%
1.6 ms
1.6 ms
common/allocator/alloc/cached-no-scope/1000000
crates/swc_allocator/benches/bench.rs::benches::bench_alloc::common/allocator/alloc/cached-no-scope/1000000
CodSpeed Performance Gauge
-3%
111.5 ms
114.4 ms

Commits

Click on a commit to change the comparison range
Base
main
c81be2e
0%
fix(parser): handle import types before function types This fixes the 'Expected =>, got :' error when parsing function parameters with import type annotations. The issue occurred because the parser was trying to parse import types as function types. By checking for import types first in parse_ts_non_conditional_type, we ensure they are parsed correctly. Fixes #9802 Co-Authored-By: 강동윤 <kdy.1997.dev@gmail.com>
078c305
2 days ago
by devin-ai-integration[bot]
Home Terms PrivacyDocs