Donny/강동윤
7ee86d1d25
test: Use correct extensions for fixture tests ( #6539 )
2022-11-29 09:47:56 +00:00
Donny/강동윤
b8fe04f720
feat(common): Add contexts to the error messages ( #6526 )
...
**Description:**
This PR makes the error reporter print contexts.
**Related issue:**
- https://github.com/swc-project/swc/issues/6525 .
2022-11-29 00:56:47 +09:00
Donny/강동윤
2ba88154fc
fix(es/codegen): Align sourcemap with terser ( #5657 )
2022-09-26 18:12:42 +09:00
David Sherret
cffe5ca58e
feat(es/parser): Allow parsing files with missing close braces ( #4187 )
2022-03-30 20:31:24 +00:00
David Sherret
1759567fc4
chore(es/parser): Add span tests back ( #4186 )
2022-03-30 06:07:40 +00:00
Edwin Coronado
57802cfcce
fix(common): Fix the line number of errors ( #4082 )
2022-03-19 23:56:12 +09:00
Donny/강동윤
40b8a4e596
feat(common): Implement a pretty error reporter ( #3946 )
2022-03-13 19:07:18 +00:00
Austaras
2cb66ae075
refactor(es/ast): Change definition of optional chaining expressions ( #3645 )
2022-02-21 07:12:09 +00: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
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
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
Austaras
38955c0c8d
refactor(es/ast): Change type or the key
of ClassProp
to PropName
( #3038 )
2021-12-15 16:21:30 +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