Boshen
4d4fb3ac7f
chore: update submodule and snapshots
2023-04-18 21:12:18 +08:00
Boshen
65e8fcd51b
chore(coverage): include conformance tests from the compiler directory
2023-04-15 17:28:25 +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
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
7db1643425
fix(parser): allow non-last rest element in ambient contexts
2023-04-02 16:41:53 +08:00
Boshen
e6079a1b4e
feat(coverage): read jsx attribute from typescript files
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
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
yangchenye
929b0efebb
feat(linter): implement isolated_declaration ( #209 )
...
* feat(linter): implement isolated_declaration
* Implement check for class elements
* Set up Export SymbolFlag and store declaration AST in Symbol
* Fix tests and comments
2023-03-26 04:37:10 -07:00
Boshen
5a1a72204e
chore(coverage): update snapshots
2023-03-25 14:21:22 +08:00
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
bee548b945
fix(coverage): correct the number on AST Parsed
2023-03-17 11:15:33 +08:00
Boshen
9ed682a38e
fix(semantic): fix function redeclaration errors
...
The problem here we face here is that TypeScript does not consider Annex
B.3.2, which makes implementation a bit more difficult.
This implementation conforms to test262.
2023-03-17 10:06:02 +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
89f28e9f93
feat(linter): check module in javascript and skip in typescript
2023-03-14 08:53:16 +08:00
Boshen
7b1a7d47b6
feat(linter): check await in ClassStaticBlock in javascript
2023-03-14 08:08:24 +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
c706d1825d
feat(semantic): turn on strict mode in semantic builder
2023-03-14 00:30:22 +08:00
Boshen
76118e4901
feat(linter): check NewTarget in javascript
2023-03-14 00:05:37 +08:00
Boshen
39795dbb1b
feat(linter): check ArrayPattern in javascript
2023-03-13 23:52:36 +08:00
Boshen
76f7e58036
feat(linter): check FormalParameter in javascript
2023-03-13 23:43:31 +08:00
Boshen
5381fd0cf8
feat(linter): check Directive in javascript
2023-03-13 23:19:35 +08:00
Boshen
7269d32346
feat(linter): check FormalParameters in javascript
2023-03-13 23:12:42 +08:00
Boshen
040e41240b
feat(linter): check AwaitExpression and YieldExpression in javascript
2023-03-13 13:45:49 +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
84eaa0b7e3
feat(linter): check eval and arguments in JavaScript
2023-03-12 23:25:57 +08:00
Boshen
93b06e948a
feat(ast_parser): check await and yield identifier error
2023-03-12 23:22:10 +08:00
Boshen
b1e01d0774
feat(linter): check top level ModuleDeclaration
2023-03-11 21:09:03 +08:00
Boshen
021345173f
feat(linter): check expressions in javascript
2023-03-11 20:18:20 +08:00
Boshen
403682960f
feat(linter): check ForStatementLeft in javascript
2023-03-11 19:12:29 +08:00
Boshen
82ef1f2944
feat(linter): check Super in javascript
2023-03-11 18:48:34 +08:00
Boshen
6c28948faf
feat(linter): check duplicate constructor in javascript
2023-03-11 18:34:05 +08:00
Boshen
d5075a95e9
fix(linter): diagnostics should not print quotes
2023-03-11 17:44:27 +08:00
Boshen
58e2741ec9
feat(semantic): bind Function name
2023-03-10 23:28:51 -08:00
Boshen
995e7c1767
feat(linter): bind CatchVariable
2023-03-10 23:28:51 -08:00
Boshen
323bb9a2b6
feat(semantic): bind VariableDeclarator
2023-03-10 23:28:51 -08:00
Boshen
b1e802cecc
feat(semantic): bind Class
2023-03-10 23:28:51 -08:00
Boshen
be6fa2e7a0
chore(coverage): bump submodules
2023-03-10 23:28:51 -08:00
Boshen
5b8bdaabab
feat(linter): check IdentifierReference in javascript
2023-03-09 20:20:58 +08:00
Boshen
185acc49bd
feat(linter): check BindingIdentifier in javascript
2023-03-09 01:27:14 -08:00
Boshen
4ea7ac373d
feat(linter): check Identifier in javascript
2023-03-09 01:27:14 -08:00