Boshen
cd276c2850
feat: add oxc_span crate ( #323 )
2023-04-27 21:51:15 +08:00
Boshen
08dfbc98b2
fix(oxc_ast,oxc_parser): fix clippy warnings
2023-04-22 16:24:50 +08:00
Boshen
6cbfc29c90
refactor(parser): remove some useless derive(Debug)
2023-04-16 12:19:39 +08:00
Boshen
48736e53af
fix(parser): fix panic in unexpected token
2023-04-10 21:57:31 +08:00
Boshen
024f1a1552
fix(parser): fix [+In] Destructuring Binding Pattern Initializer ( #267 )
2023-04-06 21:47:07 +08:00
Boshen
398dbfd2a7
fix(paresr): parse [+In] in template ( #266 )
...
relates #255
2023-04-06 21:37:34 +08:00
Boshen
6360bdad31
fix(parser): fix [+in] context in CallArguments ( #265 )
...
relates #255
2023-04-06 21:02:30 +08:00
Boshen
dc090208c4
fix(parser): fix crashing on empty ParenthesizedExpression with comments ( #263 )
...
relates #232
2023-04-06 17:16:15 +08:00
Boshen
0674899b88
Fuzz async ( #257 )
...
* fix(parser): parse `async(...null)` as call expression
relates #255
* fix(parser): parse `null?async():null`
relates #255
2023-04-05 14:36:37 +08:00
Boshen
36f4a12b9f
chore: update README about conformance
2023-04-02 16:41:53 +08:00
Boshen
96ad67db92
fix(parser): clean up type arguments parsing ( #242 )
...
closes #169
2023-04-02 12:06:52 +08:00
Boshen
e576b50fe2
docs(parser): add details
2023-04-02 00:23:21 +08:00
Boshen
61d2aedd43
docs(oxc_parser): add section on performance and visitor
2023-04-02 00:11:19 +08:00
Boshen
b11f774c41
refactor(oxc_parser): clean up doc
2023-04-01 19:03:33 +08:00
Boshen
d917348f9b
refactor(ast,parser): move parsing context from ast to parser
2023-04-01 18:01:33 +08:00
Boshen
f2fcbb30c3
refactor(oxc_parser): removed not needed generic from unexpected function
2023-04-01 15:59:42 +08:00
Boshen
d4ff0bb40e
refactor(oxc_parser): parser and lexer does not need to share the errors vec
2023-04-01 15:59:42 +08:00
Boshen
174330561c
fix(parser): fix panic on multi-byte characaters ( #233 )
...
* fix(oxc_parser): fix panic when EOF on a multi-byte character
relates #232
* fix(parser): fix panic on multi-byte char in private identifer
relates #232
2023-04-01 13:34:18 +08:00
Boshen
d232199e1c
refactor(parser): return Rc<Trivias> from TriviaBuilder ( #231 )
...
closes #229
2023-03-31 09:02:48 -07:00
Boshen
37c7b7a752
refactor(oxc_parser): simply diagnostic messages
2023-03-18 14:39:44 +08:00
Boshen
bee548b945
fix(coverage): correct the number on AST Parsed
2023-03-17 11:15:33 +08:00
Boshen
f36e3301fd
refactor(lexer): change TokenValue::String(Atom) to TokenValue::String(&str) ( #174 )
2023-03-13 09:33:44 +08:00
Boshen
4d32bfb55e
refactor: remove all declarations of const fn, which is useless for us
2023-03-07 21:29:47 +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
Boshen
73ea3d6361
feat(ast,lexer,linter): save and check comments
2023-02-27 12:31:57 +08:00
Boshen
915518b614
refactor(oxc_diagnostics): s/PError/Error
2023-02-26 02:02:05 +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
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
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
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
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