Boshen
|
4d32bfb55e
|
refactor: remove all declarations of const fn, which is useless for us
|
2023-03-07 21:29:47 +08:00 |
|
Boshen
|
6b9bbaa091
|
perf(lexer): try &static Atom for match_keyword (#143)
* perf(lexer): try phf_map for `match_keyword`
* wip
|
2023-03-07 13:14:22 +08:00 |
|
Boshen
|
c8e968f35d
|
perf(ast): shrink some struct sizes
relates #138
|
2023-03-06 06:29:18 -08:00 |
|
Fnll
|
81760da7cc
|
feat(parser): better diagnostic for missing semicolon in for loop statement (#133)
feat(parser): better diagnostic
Co-authored-by: kerui.lian <kerui.lian@bytedance.com>
|
2023-03-05 04:13:23 -08:00 |
|
Yoni Feng
|
dcfdce5bb7
|
refactor(lexer): avoid copying of self in SIMD functions (#104)
|
2023-03-03 21:46:55 -08:00 |
|
Ye Yangchen
|
b06ab627bf
|
fix(oxc_parser) correct span for decorators
|
2023-03-02 21:34:24 -08:00 |
|
Shannon Rothe
|
6647752e03
|
refactor(ast): change Option<Vec> to Vec for decorators (#84)
* remove `Option<Vec>` from `FormalParameter`
* `unwrap` -> `unwrap_or_else`
* prefer `AstBuilder` helper
* implement `consume_decorators`
|
2023-03-02 15:52:46 +08:00 |
|
Ye Yangchen
|
d8c6caf57f
|
feat(oxc_parser): Parse modifiers before declaration
|
2023-03-01 22:50:23 -08:00 |
|
Shannon Rothe
|
143edeb62f
|
prepend TS error code
|
2023-03-01 20:47:52 -08:00 |
|
Shannon Rothe
|
bc6a6d50ea
|
remove TODO
|
2023-03-01 20:47:52 -08:00 |
|
Shannon Rothe
|
4d894e7db1
|
parser: prevent JSX expressions using comma operator
|
2023-03-01 20:47:52 -08:00 |
|
Boshen
|
73ea3d6361
|
feat(ast,lexer,linter): save and check comments
|
2023-02-27 12:31:57 +08:00 |
|
Ye Yangchen
|
0bf8f817f5
|
feat(oxc_parser): Port isStartOfDeclaration form tsc
|
2023-02-27 12:27:44 +08:00 |
|
Xuan
|
6b43cbbe71
|
fix(oxc_parser): support export type with star symbol
|
2023-02-27 12:26:23 +08:00 |
|
Xuan
|
b6d09643e5
|
fix(oxc_parser): check access correctly
|
2023-02-27 03:10:02 +08:00 |
|
Boshen
|
915518b614
|
refactor(oxc_diagnostics): s/PError/Error
|
2023-02-26 02:02:05 +08:00 |
|
Xuan
|
457e85b4a0
|
fix(oxc_parser): check ambiguous for await
|
2023-02-24 12:46:59 +08:00 |
|
Xuan
|
65e81ce12c
|
fix(oxc_parser): eat decorator for export
|
2023-02-23 12:28:34 +08:00 |
|
Boshen
|
4f4a9802b7
|
refactor(diagnostics,parser): move diagnostics to parser
|
2023-02-22 19:23:01 +08:00 |
|
Boshen
|
5390d3e6b4
|
refactor(diagnostic): change Err type to miette::Error
This is the prerequisite for breaking up the large Diagnostic enum.
|
2023-02-22 11:08:21 +08:00 |
|
Boshen
|
4c6407b152
|
refactor(ast): s/node/span
This corrects the jargon for span. The term `node` came from `estree`,
which is a bit misleading here in Rust.
closes #9
|
2023-02-21 19:17:49 +08:00 |
|
Boshen
|
f3a7d5a026
|
feat(ast): add RegExpFlags bitflag for storing regex flags
This reduces `TokenValue` from 56 to 40 bytes, `Token` from 72 to 56 bytes.
|
2023-02-21 18:22:15 +08:00 |
|
Boshen
|
a733856536
|
refactor(ast,parser): use u32 for node spans
The next PR will fix the jargon where Node = Span.
relates to #9
|
2023-02-21 16:02:23 +08:00 |
|
Boshen
|
39a05030d7
|
refactor(ast,parser): box FormalParameters
|
2023-02-21 13:11:58 +08:00 |
|
Boshen
|
d57ab2f088
|
refactor(ast,parser): remove Node::ctx
This is adding too many bytes to the AST
|
2023-02-21 13:11:58 +08:00 |
|
Boshen
|
c640b4fb08
|
perf(ast): box PropertyKey enum
|
2023-02-21 13:11:58 +08:00 |
|
Boshen
|
cf278a2760
|
perf(parser): a few micro optimizations
|
2023-02-21 13:11:58 +08:00 |
|
Boshen
|
0bbbc7768f
|
perf(oxc_parser): use u8 for offset
|
2023-02-21 13:11:58 +08:00 |
|
Boshen
|
83c3f34af2
|
feat(lexer): use portable-SIMD to speed up multiline comment scanning
|
2023-02-20 21:58:08 +08:00 |
|
Boshen
|
ab68cea0b7
|
perf(lexer): use portable-SIMD to speed up whitespace scanning
closes #13
|
2023-02-20 19:03:15 +08:00 |
|
Xuan
|
362c02f8e1
|
docs(oxc_parser): add header symbol for parser.unexpected
|
2023-02-18 09:06:56 +08:00 |
|
Boshen
|
a347e3993e
|
Revert "perf(lexer): use portable-SIMD to speed up multiline comment scanning"
This reverts commit a51c7f9ba2.
|
2023-02-17 14:50:42 +08:00 |
|
Boshen
|
a51c7f9ba2
|
perf(lexer): use portable-SIMD to speed up multiline comment scanning
|
2023-02-15 19:51:13 -08:00 |
|
Boshen
|
85955d7147
|
refactor(parser): clean up some lexer code
|
2023-02-12 21:34:19 +08:00 |
|
Boshen
|
1fdc635638
|
feat(parser): add parser
|
2023-02-11 05:26:49 -08:00 |
|
Boshen
|
4ae70b9592
|
feat(parser): add lexer
|
2023-02-11 02:29:54 -08:00 |
|
Boshen
|
d026e33343
|
chore: add rust-toolchain.toml and Cargo.toml
|
2023-02-11 13:03:40 +08:00 |
|