RiESAEX
cc185f01cb
feat(es/parser): Add an option to allow super
outside of class methods ( #3427 )
2022-02-04 13:21:16 +09:00
Donny/강동윤
839d0ac480
refactor(es/parser): Flatten tests to make git
faster ( #3393 )
2022-01-28 19:11:30 +09:00
LongYinan
9608605772
build(node-swc): Fix GLIBC < 2.18 compatible issues and android arm binary loading issue ( #3314 )
2022-01-20 02:21:24 +00:00
RiESAEX
6406b49df2
fix(es/parser): Throw an error when function body has use strict and paramaters is not simple ( #3278 )
2022-01-16 04:21:02 +09:00
Donny/강동윤
357a350390
refactor(*): Cleanup ( #3274 )
2022-01-15 16:43:34 +09:00
Donny/강동윤
978de5943e
chore(ci): Configure clippy
( #3250 )
2022-01-13 23:06:11 +09:00
David Sherret
105cbc2017
fix(es/parser): Fix span of ComputedPropName
( #3234 )
2022-01-12 04:45:52 +09:00
Sosuke Suzuki
3fb76f64c4
feat(es/parser): Accept strings for import/exports ( #3190 )
2022-01-10 23:48:04 +09:00
Austaras
f58b50bea7
refactor(es/ast): Change types of member-like expressions ( #3178 )
...
swc_ecma_ast:
- Split `MemberExpr` into `MemberExpr` and `SuperPropExpr`.
- Use `Box<Expr>` for `MemberExpr.obj`.
- Use ad-hoc type for `MemberExpr.prop`.
- Use ad-hoc type for `SuperPropExpr.prop`.
- Use `Callee` instead of `ExprOrSpread` for `CallExpr`.
- Simplify types for meta property expressions.
2022-01-10 13:54:42 +00:00
Jim Berlage
a4e8e53c19
test(es/parser): Add tests about null escape ( #3147 )
2021-12-30 08:54:10 +00:00
Andreu Botella
2f3ca22ecf
fix(es/parser): Support import assertions in specifier-less imports ( #3134 )
2021-12-28 14:00:00 +00:00
Donny/강동윤
8afb5af517
chore(repo): Make git
faster ( #3075 )
...
swc_ecma_parser:
- Flatten parser test suite ported from `tsc`.
swc:
- Flatten the reference directory for the `tsc` test suite.
2021-12-20 14:05:57 +09:00
Sosuke Suzuki
f1a28329cb
feat(es/parser): Report an error for export type * from "mod";
( #3064 )
2021-12-19 05:02:36 +09:00
Donny/강동윤
61e9b5f841
fix(es/lexer): Don't report lexer errors while backtracking ( #3051 )
...
swc_ecma_parser:
- Share backtracking state with the lexer.
- Don't report lexing errors while backtracking (Closes #2896 )
2021-12-16 19:57:19 +09:00
magic-akari
23a59db9bb
fix(es/parser): Allow assignment assertions in typescript classes ( #3047 )
2021-12-16 15:30:34 +09:00
Austaras
38955c0c8d
refactor(es/ast): Change type or the key
of ClassProp
to PropName
( #3038 )
2021-12-15 16:21:30 +09:00
Donny/강동윤
7236a2213e
refactor(es/parser): Make some verification logic optional ( #3024 )
...
swc_ecma_parser:
- Make dependency on `swc_ecma_visit` optional.
2021-12-13 11:39:17 +09:00
Donny/강동윤
e48263b2f3
refactor(visit): Remove &dyn Node
from Visit
( #2984 )
...
swc_visit_macros:
- Remove `&dyn Node` from `Visit`.
- Implement `VisitWith<V>` for `[T]`.
2021-12-07 14:34:16 +09:00
Donny/강동윤
1ea965cecb
fix(es/parser): Drop outdated options ( #2974 )
...
swc_ecma_parser:
- Drop flags in `EsConfig`.
- Drop flags in `TsConfig`.
- Drop unused variants from `SyntaxError`.
2021-12-05 17:33:34 +09:00
David Sherret
97df4cef80
refactor(es/parser): Remove import_assertions
from TsConfig
( #2950 )
2021-12-05 05:43:41 +00:00
such0624
c186aa443a
fix(es/parser): Fix parser ( #2903 )
...
swc_ecma_parser:
- Fix `skip_ts_parameter_start`. (Closes #2160 )
2021-11-29 07:46:14 +00:00
David Sherret
b853d4ac95
feat(es/parser): Implement more error recovery ( #2874 )
...
swc_ecma_parser:
- Recover from unterminated string literals.
2021-11-25 23:12:40 +00:00
RiESAEX
cf777c5ba1
fix(es/lexer): Fix lexing of hexadecimal escape sequences ( #2838 )
2021-11-24 05:26:38 +00:00
Donny/강동윤
79ba13cbb5
fix(es/parser): Fix comments of empty modules ( #2828 )
...
swc_ecma_parser:
- Use correct span for storing comments when module is empty.
2021-11-22 01:02:28 +09:00
Donny/강동윤
9525ea178f
fix(es/parser): Fix span of empty modules ( #2827 )
...
swc_ecma_parser:
- Don't use dummy span for empty modules.
2021-11-21 23:42:36 +09:00
David Sherret
338b8fd98e
fix(es/parser): Fix span of named export ( #2813 )
...
swc_ecma_parser:
- Include semicolon in span of a named export.
2021-11-20 15:52:08 +09:00
Donny/강동윤
2b2f6955f2
refactor: Flatten ecmascript
( #2708 )
2021-11-10 19:00:54 +09:00