Commit graph

503 commits

Author SHA1 Message Date
Wenzhe Wang
a5ccc7da30
feat(minifier): port undefined_comparison1 (#458) 2023-06-20 22:25:28 +08:00
Boshen
d7f9ca13bc
feat(ast_lower): mark assignment target identifiers as ReferenceFlag::Write
closes #465
2023-06-20 22:12:16 +08:00
Boshen
925cee20c1
feat(parser): parse TypeScript this function parameter (#464) 2023-06-20 21:56:28 +08:00
Boshen
993c171547
chore(ast): document ArrowExpression.expression 2023-06-20 21:54:13 +08:00
Boshen
19b839efe9
perf(semantic): use IndexVec instead of indextree for ast nodes (#462) 2023-06-20 15:21:58 +08:00
Boshen
1b39ce0745
refactor(linter): refactor valid_typeof to use without indextree sibling api 2023-06-19 20:46:53 +08:00
Boshen
527b94fba6
refactor(hir): use Cell for SymbolId instead of RefCell 2023-06-19 20:23:46 +08:00
Boshen
d30735677b
refactor(semantic): merge semantic2 crate into semantic crate (#460) 2023-06-19 20:20:59 +08:00
Maneren
e591c62200
refactor(linter): replace phf_map with phf_set (#456) 2023-06-18 12:23:27 +08:00
Boshen
c4008d8014
perf(manger): use RefCell<SymbolId> instead of roundtrip with BTreeMap (#455) 2023-06-16 21:15:30 +08:00
u9g
c5a6b55bcd
chore(linter): Fix spelling mistake (#450)
Co-authored-by: Boshen <boshenc@gmail.com>
2023-06-16 13:20:42 +08:00
Maneren
de9d4de276
feat(linter): Implement eslint(getter-return) (#449) 2023-06-16 10:09:33 +08:00
Wenzhe Wang
5d10f96051
feat(minifier): try fold unary expression (#430) 2023-06-16 00:08:14 +08:00
u9g
db624da84d
Reimplement more of the closure var rename step (#447)
Co-authored-by: Boshen <boshenc@gmail.com>

closes #442
2023-06-15 23:37:04 +08:00
u9g
631062514c
Fix confusing and/or incorrect condition in linter (#446) 2023-06-15 14:09:05 +08:00
u9g
ffa2895e5a
chore(minifier) Explain use of base 54/64 in mangler (#445)
Co-authored-by: Boshen <boshenc@gmail.com>
2023-06-15 10:58:40 +08:00
Boshen
ab25bdebe4
deps: bump deps 2023-06-14 22:37:27 +08:00
Boshen
a79480b078
feat(minifier): separate mangler pass (#439) 2023-06-14 10:46:13 +08:00
Boshen
166af12b9d
fix(parser): compile in wasm 2023-06-13 17:42:40 +08:00
Carter Snook
c0726e444f
feat(lexer): use linear lexing on WASM (#436)
Co-authored-by: Boshen <boshenc@gmail.com>
2023-06-13 15:18:02 +08:00
Boshen
57a2706c21
refactor(semantic): remove the unused mangler from oxc_semantic 2023-06-12 21:35:16 +08:00
Boshen
de403a297d
feat(hir): add enter_scope / leave_scope callbacks 2023-06-12 21:24:11 +08:00
Boshen
0dc6e025a1
refactor(semantic): move ScopeId and ScopeFlags to oxc_syntax 2023-06-12 21:10:38 +08:00
Boshen
dcb38f2277
refactor(semantic): move SymbolId and SymbolFlags to oxc_syntax 2023-06-12 20:55:16 +08:00
Carter Snook
985b8f21d9
feat: support hashbang interpreter comments (#431) 2023-06-11 23:55:58 +08:00
Boshen
12ae16a7f2
feat(hir): add visitor 2023-06-11 22:28:54 +08:00
Boshen
5c91fd54e3
feat(minifier): print [-In] Context (#428) 2023-06-11 16:44:48 +08:00
Carter Snook
9df1545602
feat(linter): improve eslint(no-eval) compat (#419) 2023-06-10 11:39:54 +08:00
Boshen
79188d70d0
refactor(wasm): clean up options passing (#418) 2023-06-09 21:29:28 +08:00
Carter Snook
eca8541032
feat(linter): add eslint(no-eval) (#417) 2023-06-09 10:36:12 +08:00
Boshen
664ff0cc17
fix(semantic): fix typos s/resovling/resolving 2023-06-09 10:33:48 +08:00
Boshen
1ed8df2d83
feat(parser): parse const type parameter from TypeScript v5.0 (#416) 2023-06-08 22:26:35 +08:00
Carter Snook
23d2a9f6d7
chore(typo): expect -> except (#415) 2023-06-08 14:28:29 +08:00
Ben
304eaddb8f
feat(type): Add oxc_type_synthesis (#413)
Co-authored-by: Boshen <boshenc@gmail.com>
2023-06-07 23:52:58 +08:00
Boshen
86efc07188
fix(ast): properly serialize FormalParameter (#411) 2023-06-07 12:26:58 +08:00
Wenzhe Wang
7c79fbc026
feat(minifier): try fold typeof (#408) 2023-06-07 10:44:28 +08:00
Wenzhe Wang
1a31c76ee9
refactor(minifier): reduce and clean match checks (#406) 2023-06-06 12:46:13 +08:00
Boshen
2bebbb5a77
feat(website): add linter / minifier / formatter to the playground (#407) 2023-06-04 15:30:55 +08:00
Wenzhe Wang
ddc129262d
feat(minifer): minify number (#405) 2023-06-03 21:24:39 +08:00
Boshen
e88fd86b17
feat(website): integrate oxc wasm into the playground (#404) 2023-06-03 10:20:50 +08:00
Boshen
180eac5523
refactor(rust): fix clippy errors 2023-06-02 10:09:32 +08:00
Boshen
f8125af850 feat(minimizer): print parentheses 2023-06-01 22:45:26 +08:00
Yagiz Nizipli
63c0491ec2 refactor: remove paranthesis expression from printer 2023-06-01 22:45:26 +08:00
Wenzhe Wang
4109c8b8a5
feat(parser): distinguish exponential number (#399) 2023-06-01 15:15:22 +08:00
Boshen
6acf33887c
fix(lower): avoid stack overflow during expression visit (#400) 2023-06-01 15:12:08 +08:00
Boshen
591bee2ba1
chore(linter): update snapshots 2023-05-31 16:44:46 +08:00
Boshen
6ef839b781
chore(rust): bump deps 2023-05-31 16:34:28 +08:00
Wenzhe Wang
3792b70dbd
feat(minifier): may add space before RegExpLiteral (#397) 2023-05-29 23:11:40 +08:00
Boshen
c01df484db
refactor(hir,syntax): define Precedence for hir expressions 2023-05-29 14:15:14 +08:00
Boshen
4706427575
refactor(syntax): move expression precedence from parser 2023-05-29 12:25:22 +08:00