yangchenye
|
4549fb3cdd
|
fix(parser): parse decorator with separate grammar (#192)
|
2023-03-19 11:35:59 +08:00 |
|
Boshen
|
37c7b7a752
|
refactor(oxc_parser): simply diagnostic messages
|
2023-03-18 14:39:44 +08:00 |
|
Boshen
|
14babe92a0
|
refactor(oxc_parser): remove unused diagnostics
|
2023-03-18 14:05:29 +08:00 |
|
Boshen
|
57f3065d68
|
refactor: remove unused #[allow(clippy:..)]
|
2023-03-17 13:28:06 +08:00 |
|
Boshen
|
bee548b945
|
fix(coverage): correct the number on AST Parsed
|
2023-03-17 11:15:33 +08:00 |
|
yangchenye
|
37ad6f3a15
|
feat(parser): support decorators in class expression (#190)
feat(parser): support decorator in class expression
|
2023-03-17 09:33:04 +08:00 |
|
Boshen
|
297ce2743f
|
Revert "feat(linter): check await in class static block"
This reverts commit 7add71c9dd.
|
2023-03-14 07:56:04 +08:00 |
|
Boshen
|
7add71c9dd
|
feat(linter): check await in class static block
|
2023-03-14 07:46:11 +08:00 |
|
Boshen
|
78bd76e8d0
|
feat(parser): check function name for await and yield
|
2023-03-14 07:39:07 +08:00 |
|
Boshen
|
2fe8fba5b6
|
refactor(lexer): make TokenValue 8 bytes smaller by changing RegExp.pattern to &'a str (#175)
|
2023-03-13 23:20:52 +08:00 |
|
Boshen
|
f36e3301fd
|
refactor(lexer): change TokenValue::String(Atom) to TokenValue::String(&str) (#174)
|
2023-03-13 09:33:44 +08:00 |
|
Boshen
|
fce6e1ec73
|
feat(parser): check YieldExpression
|
2023-03-12 23:41:27 +08:00 |
|
Boshen
|
88fd0a05ec
|
feat(parser): check AwaitExpression
|
2023-03-12 23:37:21 +08:00 |
|
Boshen
|
d6e8c6fb2f
|
feat(parser): check ReturnStatement in return context
|
2023-03-12 23:30:32 +08:00 |
|
Boshen
|
93b06e948a
|
feat(ast_parser): check await and yield identifier error
|
2023-03-12 23:22:10 +08:00 |
|
Boshen
|
605684f4c0
|
fix: fix clippy warnings
|
2023-03-12 21:53:08 +08:00 |
|
Boshen
|
66207e74a4
|
refactor(lexer): remove LexerContext::JsxChild (#172)
|
2023-03-12 20:19:51 +08:00 |
|
Shannon Rothe
|
901f4948c1
|
refactor(parser): move import specifier parsing to list.rs (#167)
|
2023-03-12 10:45:02 +08:00 |
|
Boshen
|
1b93d83ff7
|
chore(oxc_parser): setup fuzzer
closes #155
|
2023-03-12 00:44:42 +08:00 |
|
Boshen
|
c2f760f1ed
|
chore: run `types -w" to fix all typos
|
2023-03-11 23:37:19 +08:00 |
|
Boshen
|
d5075a95e9
|
fix(linter): diagnostics should not print quotes
|
2023-03-11 17:44:27 +08:00 |
|
Boshen
|
a5f00e8e1c
|
refactor(oxc_ast): remove unnecessary SourceTypeBuilder
|
2023-03-11 16:21:14 +08:00 |
|
Boshen
|
5c8670d1c8
|
feat(semantic): declare symbol and reference Identifier
|
2023-03-10 23:28:51 -08:00 |
|
Boshen
|
2ee0b40656
|
chore: fix clippy warnings
|
2023-03-10 11:09:44 -08:00 |
|
Boshen
|
94fdd54368
|
perf(lexer): fine tune identifier checking with less redundant branches (#154)
perf(lexer): fine tune checking of identifiers with less redundant branches
|
2023-03-08 22:00:15 +08:00 |
|
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 |
|
Boshen
|
94fddffc70
|
chore: use fancy-no-backtrace from miette
See https://github.com/zkat/miette/issues/132
|
2023-03-05 15:16:26 +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
|
df78044c87
|
lint
|
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
|
3b887dbeaf
|
feat(parser): print json in parser example
|
2023-02-28 00:05:54 +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 |
|
Boshen
|
4684118c9e
|
fix: change example names so their binary names don't collide with each other
|
2023-02-23 21:46:39 +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
|
7a44a657e1
|
feat: add miette fancy report to examples
|
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 |
|