Commit graph

664 commits

Author SHA1 Message Date
Boshen
2914b439b3
feat(semantic2): add slot based mangler 2023-05-14 18:21:07 +08:00
Boshen
73b2a9a52b
feat(minifier): print decorators 2023-05-14 18:18:39 +08:00
Wenzhe Wang
e6737fdc48
fix(minifier): continue compress left expr (#356) 2023-05-14 13:03:34 +08:00
Boshen
9d0ac75f87
feat(semantic2): track symbol references 2023-05-14 11:44:37 +08:00
Boshen
d14329e74e
feat(semantic2): bind identifiers 2023-05-13 22:58:42 +08:00
Boshen
d0bc5ac023
refactor: separate semantic interface 2023-05-13 21:59:42 +08:00
Boshen
48398ea74c
feat(hir,minifier): wire up identifier reference for mangle 2023-05-13 21:59:42 +08:00
Boshen
ebfaa3b940
feat(hir,minifier): wire up mangling 2023-05-13 21:59:42 +08:00
Boshen
6db5f4e59b
fix(minifier): print SequenceExpression and ObjectExpression with parens 2023-05-13 21:57:02 +08:00
Boshen
6e8d342403
feat(minifier): add mangle option 2023-05-13 16:03:43 +08:00
Boshen
1f5fa8d6cb
feat: reimplement semantic builder (#354) 2023-05-13 15:20:00 +08:00
Boshen
2812591e4a
chore(rust): allow clippy::new_without_default 2023-05-13 15:07:00 +08:00
Wenzhe Wang
7b834d4bd9
fix(minifier): not merge different kinds of declarations. (#353) 2023-05-13 10:51:10 +08:00
Boshen
14720e7c69
refactor: move SourceType from oxc_ast to oxc_span (#351)
related #350
2023-05-12 23:16:14 +08:00
Boshen
9465b5f596
refactor(span): move base54 function to oxc_span 2023-05-12 17:02:27 +08:00
Boshen
af1cd1c520
refactor(span): make Atom a newtype 2023-05-12 14:25:27 +08:00
Boshen
ec092eab01
deps(rust): bump dependencies 2023-05-12 11:23:41 +08:00
Boshen
7f93e58f10
chore: remove all #[must_use] 2023-05-11 21:08:00 +08:00
Boshen
ed693d9941
chore(clippy): allow #[must_use] 2023-05-11 20:58:52 +08:00
Boshen
7496bb521f
fix(minifier): print if.consequent correctly (#349) 2023-05-11 11:00:49 +08:00
Boshen
25a359bdd7
fix(benchmark): fix AstLower benchmark taking up too much memory 2023-05-11 10:42:55 +08:00
Boshen
48e524ddcf
feat(ast_lower): scope tree (#344) 2023-05-10 22:38:34 +08:00
Boshen
60485669bb
ci: cache release for benchmark, benchmark use fewer files (#345) 2023-05-10 22:13:11 +08:00
Boshen
6924e59c5c
chore: remove unused dependencies found by cargo-machete 2023-05-10 19:22:22 +08:00
Boshen
0a445b4556
chore(coverage): run typescript tests for formatter 2023-05-09 23:19:35 +08:00
Boshen
b6fb509b87
refactor: remove unused code from formatter and printer 2023-05-09 23:19:34 +08:00
Boshen
a12eb7c2d1
fix(ast_lower): fix broken example due to not implementing serde 2023-05-09 22:08:30 +08:00
Boshen
b94fe5ebfa
refactor(syntax): clean up Operator 2023-05-09 22:04:50 +08:00
Boshen
8161ac2800
refactor: clean up Cargo.toml (put features table on top) 2023-05-09 21:53:47 +08:00
Boshen
e753a886d2
fix(minifier): add parentheses to CallExpression on FunctionExpression 2023-05-08 23:04:35 +08:00
Boshen
0f57a512f5
refactor(Formatter): remove minification logic 2023-05-08 22:59:18 +08:00
Boshen
fb6fdfa3ae
ci: remove unnecessary steps from benchmark 2023-05-08 22:42:32 +08:00
Boshen
1b83e6c16e
feat(oxc_index): add static_assert_size for compile time evaluation (#343) 2023-05-08 22:20:54 +08:00
Boshen
c5c88a965d
feat(oxc_index): add crate (#342) 2023-05-08 22:01:18 +08:00
Boshen
34f045d84d
chore(hir): removed unused PartialEq on NullLiteral 2023-05-08 20:41:42 +08:00
Boshen
65a445f512
refactor: move operator to oxc_syntax (#341) 2023-05-08 15:35:01 +08:00
Wenzhe Wang
52aa59bb38
feat(semantic): early check of simple assignment (#340) 2023-05-07 23:05:08 +08:00
Boshen
ba3c2bc40f
chore: ignore unused visit_mut for codecov 2023-05-07 23:04:30 +08:00
Boshen
ebe8466500
refactor(span): remove unused code 2023-05-07 23:01:12 +08:00
Boshen
29beb851f6
refactor(ast,hir): remove unnessary Eq and PartialEq 2023-05-07 22:42:57 +08:00
Boshen
f4d04c1443
refactor(coverage): use ast.json() method for serialization test 2023-05-07 22:23:31 +08:00
Boshen
e897306f3d
chore(coverage): test serialization on ast and hir (#339) 2023-05-07 22:05:45 +08:00
Boshen
ddf4ac9cc2
refactor(formatter): remove whitespace minification from formatter (#337) 2023-05-07 17:58:57 +08:00
Boshen
c2428d8abd
chore: rename oxc_printer to oxc_formatter (#336) 2023-05-07 17:47:13 +08:00
Boshen
e07c9c5b03
chore(benchmark): disable benchmarking ast_lower 2023-05-07 17:23:50 +08:00
Boshen
86c01c7fb8
feat(minifier): use hir (#335) 2023-05-07 17:23:00 +08:00
Boshen
aed7b5d795
feat(hir): remove more TypeScript syntax 2023-05-07 13:06:09 +08:00
Boshen
9c6fc7dc51
Update README.md 2023-05-06 23:24:18 +08:00
Boshen
72ba29f88b
feat(hir): complete first iteration of ast lowering (#327) 2023-05-06 19:13:44 +08:00
Boshen
5d06600063
chore: adjust just codecov command to output html 2023-05-06 18:47:38 +08:00