Boshen
bb18132da5
refactor(oxc_diagnostics): remove error declarations
...
Make this crate not dependent on `oxc_ast`
2023-04-10 22:21:05 +08:00
Boshen
04592b3e4f
feat(cli): add --threads 1 option for rayon to use only 1 threads
2023-04-10 22:13:41 +08:00
Boshen
48736e53af
fix(parser): fix panic in unexpected token
2023-04-10 21:57:31 +08:00
Boshen
aedaa1a110
refactor(linter,semantic): move syntax check from linter to semantic ( #272 )
...
Syntax checker is part of semantic analyzer,
it doesn't make sense for the user to add a linter just for semantic errors
2023-04-10 12:23:53 +08:00
yangchenye
35b19e7edf
feat(semantic): Add index mapping from span to reference id ( #270 )
...
* feat(semantic): Add index mapping from span to reference id
* Switch to BTreeMap for index
2023-04-10 10:20:15 +08:00
Wenzhe Wang
b51c2df3cc
feat(linter): no constant condition ( #271 )
...
* feat(linter): if statement
* feat: add conditionalExpression
* feat(linter): add test for loop
* chore(linter): allow too many lines
* refactor(linter): use GetSpan trait
2023-04-09 18:49:46 +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
Wei Zhu
034ca98182
fix(linter): fix panic when directive appears at the first line ( #264 )
2023-04-06 20:46:01 +08:00
Wei Zhu
f9347b55b7
fix(parser): fix parse error on JSXText preceded by JSXFragment ( #262 )
...
Current implement was unable to parse `<div><></>foo</div>`, as `foo` was identified as Identifier.
2023-04-06 17:17:46 +08:00
Boshen
dc090208c4
fix(parser): fix crashing on empty ParenthesizedExpression with comments ( #263 )
...
relates #232
2023-04-06 17:16:15 +08:00
Wei Zhu
b17181a0c4
fix(parser): fix additional char being consumed in JSXText ( #259 )
2023-04-06 13:52:04 +08:00
Boshen
021271b953
Release oxc_diagnostics@0.0.4
2023-04-05 21:11:12 +08:00
Boshen
513931f672
Release oxc_ast@0.0.4 oxc_parser@0.0.4 oxc_semantic@0.0.3
2023-04-05 20:59:50 +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
043a751dc7
chore(linter) move bad_bitwise_operator to restriction category
...
closes #243
2023-04-05 14:29:32 +08:00
Boshen
1c2acd121c
refactor(parser): clean up parsing of ForStatement ( #251 )
...
closes #176
2023-04-04 22:36:35 +08:00
Boshen
181d8bcc4a
refactor(ast): make BoundNames take a closure so it does not allocate ( #249 )
...
closes #237
2023-04-04 20:55:00 +08:00
yangchenye
222dcb3bf1
perf(semantics): avoid hashing when resolving references ( #248 )
2023-04-03 14:47:59 +08:00
Wenzhe Wang
b17335d724
feat(linter): bad bitwise operator rule ( #246 )
2023-04-02 23:34:37 +08:00
Boshen
236d53ad9d
fix(parser): fix panic on multi-byte char in ExpectCatchFinally error
2023-04-02 20:09:38 +08:00
Boshen
089c2ba0ca
Release 0.0.3
2023-04-02 16:59:15 +08:00
Boshen
abcda95e8e
deps: bump deps
2023-04-02 16:48:45 +08:00
Boshen
36f4a12b9f
chore: update README about conformance
2023-04-02 16:41:53 +08:00
Boshen
7db1643425
fix(parser): allow non-last rest element in ambient contexts
2023-04-02 16:41:53 +08:00
Boshen
adedc1a405
feat(parser): parse jsx element and fragment in JSXAttributeValue
2023-04-02 16:41:53 +08:00
Boshen
1130f48278
feat(parser): parse ts satisfies operator
2023-04-02 16:41:53 +08:00
Boshen
90e2d386d7
fix(parser): do not check static prototype in ambient contexts
2023-04-02 16:41:53 +08:00
Boshen
a62c9335a2
fix(parser): fix remaining errors around auto accessors
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
fb01c4e210
Release 0.0.2
2023-04-02 00:50:05 +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
Ash
ab2ef4f89b
fix: nullish coalescing operator precedence ( #240 )
2023-04-01 23:40:25 +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
fdbe365ac7
refactor(oxc_ast): improve doc and reexports
2023-04-01 18:01:33 +08:00
Boshen
249cf96ad2
refactor(ast): make serde an optional feature ( #236 )
...
This should also reduce compilation time a bit
oxc_parser compilation time 9.5s -> 8.8s
relates to #223
2023-04-01 17:12:23 +08:00
Boshen
f2fcbb30c3
refactor(oxc_parser): removed not needed generic from unexpected function
2023-04-01 15:59:42 +08:00
Boshen
59476e42d4
refactor(oxc_diagnostics): remove over complicated Diagnostics struct
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
adef772d6c
refactor: clean up code around code coverage
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
f8790d4b89
feat(semantic): can turned off ModuleRecordBuilder
...
relates to #224
2023-04-01 00:41:52 +08:00
Wenzhe Wang
20693dc072
feat(linter): add no-bitwise rule ( #228 )
2023-03-31 09:11:46 -07:00
Boshen
d232199e1c
refactor(parser): return Rc<Trivias> from TriviaBuilder ( #231 )
...
closes #229
2023-03-31 09:02:48 -07:00
Boshen
f8224bb4bc
fix(ast): fix is_bitwise method not including shift operators
2023-03-31 14:57:18 +08:00
Boshen
7789d7bc43
deps: fix oxc_printer
2023-03-31 00:04:08 +08:00
Boshen
79fd35c9cb
deps: fix versions depending on each other
2023-03-30 23:59:41 +08:00