kdy1
3ec395ba75
Improve performance & update rustfmt ( #504 )
2019-12-13 06:21:25 +00:00
강동윤
6fc91f2017
Remove #[inline(never)]
2019-12-13 08:47:46 +09:00
강동윤
5076249c90
fixup! Add a test for #503
2019-12-13 08:38:46 +09:00
강동윤
126b6bc761
Add a test for #503
2019-12-13 08:35:32 +09:00
kdy1
0df908fdb4
ast & parser improvement ( #502 )
...
Parser can now parse typescript source code and rxjs.
Closes #468 .
2019-12-11 14:28:35 +00:00
강동윤
8622193d04
ParseOptions.is_module
2019-12-11 16:18:47 +09:00
강동윤
d53c94f1fb
Bump parser's version.
...
Closes #500
2019-12-11 15:56:27 +09:00
kdy1
fa98c470d6
Program instead of Module ( #499 )
...
This pr adds an option to parse file as script, not module.
Related: https://github.com/swc-project/swc/issues/491
2019-12-11 06:07:21 +00:00
강동윤
1a48efa4e4
ES3 ( #498 )
...
* Add a test for #496
- Better error message for TS1056
- Allow using dynamic import with es3 target
2019-12-11 13:35:15 +09:00
Nurbol Alpysbayev
79128a1d1e
Typo ( #497 )
2019-12-11 07:09:45 +09:00
Nurbol Alpysbayev
2f4ce50d06
Fix the Wasm blocker for Parser ( #495 )
2019-12-11 00:02:39 +09:00
강동윤
30869dc340
Fix template_literal in a script
2019-12-10 11:57:22 +09:00
강동윤
ef45401a18
Update tests
2019-12-10 10:50:37 +09:00
강동윤
cd486288b7
Bump version
2019-12-10 07:23:27 +09:00
강동윤
ae6de87abb
Add more tests ( #489 )
2019-12-09 21:02:51 +09:00
강동윤
552d20213f
Update
2019-12-07 19:37:49 +09:00
강동윤
69e768e6bd
Fix codegen of typescript enum ( #488 )
...
swc_ecma_trnsnofrms
- Handle export enum
2019-12-04 10:08:17 +09:00
강동윤
b4e93f2b53
Handle catch clause properly ( #484 )
...
swc_ecma_transforms
- Fix #483
2019-12-03 11:50:33 +09:00
강동윤
b3a2ee8e9b
Fix bugs ( #482 )
...
swc_ecma_parser:
- fix lexing of numbers like 9.09
swc_ecma_transforms:
- jsx_text_to_str
- use fxhash instead of ahash for exports
2019-12-02 20:19:15 +09:00
강동윤
bc19ee274b
Update parser test references
2019-12-02 17:12:53 +09:00
Zimon Dai
ec086a1dab
use 2018 edition syntax ( #479 )
2019-12-02 17:10:05 +09:00
강동윤
776e014a11
Fix tests ( #478 )
2019-12-01 18:11:59 +09:00
강동윤
153cf36168
Jsonify large pure object literals ( #477 )
...
swc_ecma_transforms:
- add `jsonify` transform
2019-12-01 17:32:44 +09:00
강동윤
3f2477196c
Fix typescript enum
2019-12-01 11:27:28 +09:00
강동윤
0d5da173d2
Remove loc from span
2019-11-30 14:51:22 +09:00
강동윤
265eb9e30c
Improve performance of serialization and deserialization ( #475 )
2019-11-30 14:49:18 +09:00
강동윤
51558c6c36
Final groundwork for plugin ( #474 )
...
swc:
- add serialization tests
ast_node:
- handle `*` tag properly
swc_ecma_ast:
- update serialization of ExprOrSpread
2019-11-30 11:12:34 +09:00
강동윤
a7a8a4a2e4
Plugin ( #473 )
...
swc_common:
- apply patch from rust-lang/rust#59693
swc:
- use &Options instead of Options
- configures commons::CM
- exposes `handler`
2019-11-29 23:46:06 +09:00
강동윤
55b473b744
#[serde(transparent)] for SyntaxContext
2019-11-28 20:04:50 +09:00
강동윤
4ab510827a
Fix serde of BytePos
2019-11-28 19:55:14 +09:00
강동윤
41c6941dc5
fixup! Don't omit empty values while serializing
2019-11-28 17:53:03 +09:00
강동윤
95a59338d3
Don't omit empty values while serializing
2019-11-28 17:49:51 +09:00
강동윤
5532e628b2
Don't run cargo clippy on push
2019-11-28 13:38:11 +09:00
강동윤
747a07f566
Update submodules
2019-11-26 20:42:41 +09:00
강동윤
3cdd4a8644
Make submodules shallow
2019-11-26 20:36:01 +09:00
강동윤
ed1ad6f9b5
Fix node-swc
2019-11-26 12:38:38 +09:00
강동윤
b81200b1db
Update references
2019-11-26 11:31:16 +09:00
강동윤
8c7005d7ab
More testing ( #469 )
...
swc:
- Move tests from node-swc to swc
- Add integration tests (webpack, rxjs, angular-core)
- Support `exclude`
swc_ecma_transforms:
- More span validation
- classes:
- Strip `TsIndexSignature`
swc_ecma_parser:
- Fix span of member expression
- Fix span of binary expression
- Fix span of unary expression
2019-11-26 10:08:48 +09:00
강동윤
9eab72f99f
Lint on push ( #465 )
...
Rust rustfmt and clippy on push
2019-11-24 22:01:47 +09:00
강동윤
fc9880e4f4
Bump parser's version
2019-11-24 14:42:08 +09:00
강동윤
b46c4ec300
Update dependencies ( #464 )
2019-11-24 14:17:27 +09:00
강동윤
7d4168f415
Parser performance ( #463 )
...
- Update string_cache from 0.7 to 0.8
- Update unicode_xid from 0.1 to 0.2
swc_ecma_parser:
- Add benchmarks for lexer
2019-11-23 23:03:19 +09:00
강동윤
fa941b3ea3
resolver: Handle arrow expression correctly ( #462 )
...
swc_ecma_transforms:
- resolver: Handle arrow expression correctly (#462 )
2019-11-23 19:14:52 +09:00
강동윤
8ec7a69572
Parser performance ( #459 )
...
- codegen-units = 1 for benchmarks
swc_ecma_parser:
- Add a benchmark for typescript lexer
- Remove dynamic dispatch in lexer
- Improve performance of typescript
2019-11-23 13:03:29 +09:00
강동윤
4a80790d73
Add benchmark for typescript parser
2019-11-22 21:13:14 +09:00
강동윤
107c35fb41
Fix renaming bug related to import ( #457 )
...
- Fix renaming bug related to import (#456 )
- Add tests for common_js / umd / amd
2019-11-20 21:32:42 +09:00
강동윤
210686011d
Resolver: Handle hoisting ( #455 )
...
swc_ecma_transforms:
- resolver: Handle variable hoisting
- resolver: Handle function hoisting
2019-11-19 19:10:15 +09:00
강동윤
3474c61a48
Fix codegen and parsing of template literal ( #453 )
...
- Fix codegen and parsing of template literal (#450 )
2019-11-18 19:54:24 +09:00
강동윤
d50ab99ef0
Fix #451 ( #452 )
...
swc_ecma_parser:
- Fix parser of eval and arguments
swc_ecma_transforms:
- Improve fixer (#451 )
2019-11-18 18:19:25 +09:00
강동윤
d074063867
Parser: Error recovery ( #449 )
...
Implement some error recovery logic to parser
2019-11-17 18:36:47 +09:00