Pig Fang
61e711c912
feat(es/ast): Support TypeScript Instantiation Expression ( #3642 )
2022-02-20 15:51:31 +00:00
Donny/강동윤
9b76783281
refactor(common): Cleanup & rustfmt ( #3495 )
...
swc_common:
- Merge identical source codes.
swc_css_parser:
- Deny `clippy::all`.
- Fix lints.
2022-02-09 06:33:32 +00:00
Austaras
26565b1ae9
feat(es/parser): Disallow assignment to optional chaining expressions ( #3483 )
2022-02-08 12:51:26 +00:00
Donny/강동윤
8bf5cf4d03
chore(es): Fix clippy warnings ( #3482 )
2022-02-08 19:50:22 +09:00
Donny/강동윤
5a806c5b81
fix(es/parser): Fix parsing of decorators ( #3449 )
...
swc_ecma_parser:
- Parse decorators using `parse_subscripts`.
2022-02-04 17:54:03 +09:00
RiESAEX
cc185f01cb
feat(es/parser): Add an option to allow super
outside of class methods ( #3427 )
2022-02-04 13:21:16 +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/강동윤
15b604b6d6
refactor(*): Fix some clippy warnings ( #3257 )
2022-01-14 07:20:45 +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
Sosuke Suzuki
432f877790
feat(es/ast): Use ModuleExportName
for ExportNamespaceSpecifier
( #3195 )
2022-01-06 20:19:11 +09:00
Sosuke Suzuki
07c0489575
feat(es/ast): Add ModuleExportName
( #3048 )
...
swc_ecma_ast:
- Allow using string as import/export specifiers.
2022-01-03 08:44:11 +00:00
Donny/강동윤
7a83c0cb57
perf(es/ast/serde): Make deserialization faster ( #3160 )
...
ast_node:
- Improve deserialization of enums.
swc_css_ast:
- Fix a compilation issue.
swc_ecma_ast:
- Update `serde`.
swc_ecma_parser:
- Fix a compilation issue.
swc_estree_ast:
- Fix serialization.
2022-01-02 12:49:09 +09: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
Sosuke Suzuki
f1a28329cb
feat(es/parser): Report an error for export type * from "mod";
( #3064 )
2021-12-19 05:02:36 +09:00
Donny/강동윤
b4d95b44a7
perf(es/parser): Improve performance ( #3059 )
...
swc_common:
- Optimize `StringInput`.
swc_ecma_parser:
- Optimize `skip_space`.
- Remove useless `.clone()`.
2021-12-19 00:18:00 +09:00
asterite3
0c813ae453
fix(es/lexer): Fix lexing of numbers with large exponent ( #3061 )
...
swc_ecma_parser:
- Fix lexing of numbers where exponents are large enough to be parsed as `Infinity`. (Closes #3060 )
2021-12-18 23:14: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
Sosuke Suzuki
b4c210d1d9
fix(es/parser): Allow trailing comma in dynamic imports if import assertion is enabled ( #3018 )
2021-12-13 05:42:19 +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
RiESAEX
d8c8641e59
fix(es/parser, es/compat): transform tagged template with invalid escape sequence ( #2939 )
...
swc_ecma_parser:
- Preserve more data for invalid escapes in template literals.
swc_ecma_transforms_compat:
- Fix handling of template literals. (Closes #2674 )
2021-12-02 15:49:45 +09: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
Donny/강동윤
f5af22ef71
chore: Document features ( #2890 )
2021-11-27 16:55:42 +09: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
RiESAEX
1caa61a182
fix(es/parser): Allow static
/declare
to be optional class property name ( #2782 )
2021-11-18 06:46:07 +00:00
Max Graey
1bb2c687c0
refactor(es/parser): Simplify skip_line_comment
( #2768 )
2021-11-17 13:49:43 +09:00
Donny/강동윤
2462b9941f
refactor: Cleanup ( #2749 )
2021-11-15 15:24:25 +09:00
RiESAEX
6e10168207
fix(es/parser): Check for more typescript class names ( #2732 )
...
swc_ecma_parser:
- Check for more invalid typescript class names. (Closes #1218 )
2021-11-12 21:26:37 +09:00
RiESAEX
11d1fa56c0
fix(es/lexer): Fix handling of jsx escapes ( #2723 )
...
swc_ecma_parser:
- Remove logic for unescaping jsx escapes. (Closes #2162 )
2021-11-11 14:37:21 +00:00
Donny/강동윤
2b2f6955f2
refactor: Flatten ecmascript
( #2708 )
2021-11-10 19:00:54 +09:00