Commit Graph

1488 Commits

Author SHA1 Message Date
bors[bot]
48b2607b28 Merge
362: Fix  r=kdy1 a=kdy1

Fix 

Co-authored-by: 강동윤 <kdy1@outlook.kr>
2019-04-07 14:10:29 +00:00
강동윤
fe451d5809 Fix and update rustc 2019-04-05 12:19:18 +09:00
Jagannath Bhat
8905ea2cef Some proof-reading work () 2019-03-25 15:43:17 +09:00
강동윤
adcc5954ee Fix 2019-03-25 12:11:15 +09:00
Michael Stewart
6f97012821 fix test imports for latest nightly () 2019-03-23 13:18:55 +09:00
寧靜
84973890e7 Update util.rs ()
swc_ecma_parser:
 - handle unicode_xid properly
2019-03-19 21:51:12 +09:00
강동윤
5114dc9e95
Extract resolver pass () 2019-03-14 15:54:33 +09:00
강동윤
8674a1dae9
Chores ()
- add tests for .
 - add backer
2019-03-12 17:24:51 +09:00
강동윤
13bf89d08c
Fix bugs ()
swc_ecma_parser:
 - fix parsing of type query ()
 - fix parsing of `in` in a let / const declaration ()

swc_ecma_transforms:
 - string literal is computed ()
 - modules: handle imports in lhs of assignment correctly ()
2019-03-11 20:33:15 +09:00
강동윤
2025f20e8c
Handle imported stuffs in shorthand property. ()
swc_ecma_transforms:
 - handle imported stuffs in shorthand property ()
2019-03-10 22:17:08 +09:00
강동윤
8a8aa6f0b2
Add backer () 2019-03-09 14:33:28 +09:00
강동윤
a40518f667
v1.0.36 ()
swc_ecma_parser
 - decorator_before_export is true for typescript. ()
 - fix parsing of dynamic imports. ()
 - fix parsing of conditional expression. ()
2019-03-09 09:07:15 +09:00
강동윤
248a53ce7c
Make deserialization faster ()
swc_ecma_ast:
 - make deserialization faster
2019-03-08 11:36:23 +09:00
강동윤
dd5f17463e
hygiene now handles class name correctly () 2019-03-07 22:42:16 +09:00
강동윤
a311f42acf
Bugs ()
swc_ecma_parser:
 - add a test to ensure that \r\n is lexed correctly ()

swc_ecma_transforms:
 - destructuring pass now handle variable exports correctly ()
 - es2017::async_to_generator now handles module items. Fix .
 - prevent hygiene pass from de-exporting class and funcrion ()
2019-03-07 15:48:45 +09:00
강동윤
ed100700f1
Make deserialization fast ()
swc_ecma_ast:
  - add deserialization benchmark

ast_node:
 - #[ast_node] on enum now implements faster deserialization
2019-03-05 23:16:45 +09:00
강동윤
b4a391b3a7
es2015::destructuring pass ()
swc_ecma_transforms:
 - es2015::destructuring pass now uses computed member if necessary. ()
2019-03-05 17:44:47 +09:00
강동윤
5f16412273
Fix class properties pass ()
swc_ecma_transforms:
  - Class properties pass handle nested scope correctly ()
2019-03-03 17:01:23 +09:00
강동윤
b5d3b9a7c7
Initialize var to undefined in loops ()
swc_ecma_transforms:
 - block_scoping: initialize var to undefined if it's declared in a loop ()
2019-03-02 16:19:19 +09:00
강동윤
5dc4ba181d
Improve fixer ()
swc_ecma_transforms:
 - fixer: handle member exprssion correctly
 - fixer: handle binary expression correctly
 - fixer: handle conditional expression correctly
 - fixer: handle unary expression correctly
2019-03-01 22:50:43 +09:00
강동윤
1a0f1108a1
Bugs ()
swc_ecma_transforms:
 - report error if jsx namespace is used ()
2019-03-01 18:18:57 +09:00
강동윤
a2144bbbf5 Handle escapes in jsx attributes. Fix . 2019-03-01 16:31:26 +09:00
강동윤
99e34ddbbd
Fix ()
swc_ecma_transforms:
 - hygiene::operator now handles export correctly ()
 - make function hoisting respect directives
2019-03-01 14:02:33 +09:00
강동윤
21f3f792d1
Fixes ()
swc_ecma_transforms:
  - block_scoped_fn: don't fold self-modifing functions. ().
  - fixer: fix assignment in conditional expression ()
  - make resolver work with self modifying function ()
2019-02-28 23:07:31 +09:00
강동윤
f49fbea2af Update referenes 2019-02-28 19:30:58 +09:00
강동윤
a46804ab48 swc_ecma_ast:
- Split class member / property into separate types
2019-02-28 19:25:38 +09:00
강동윤
6275831b30 Fix links of backers 2019-02-28 16:52:19 +09:00
강동윤
8c1b773eec
Bug fixes ()
swc_ecma_transforms:
 - fix assignment expression in callee position ()
 - don't name funtion if function's body reference function name ()
2019-02-28 16:30:56 +09:00
강동윤
cdf4a09e65
Fixes ()
swc_ecma_transforms:
 - Remove State / Clone
 - Fix hygiene bug of labels ()
 - Fix sequence expression in unary expression ()
2019-02-27 22:40:19 +09:00
강동윤
892b4f01cd FIx 2019-02-27 18:56:12 +09:00
강동윤
ae91b724b7 Fix helpers 2019-02-27 18:46:34 +09:00
강동윤
74dc5582f1 Don't inject @swc/helpers if nothing is used 2019-02-27 18:31:30 +09:00
강동윤
1e38d2e124 Handle sourcemap correctly 2019-02-27 17:44:11 +09:00
강동윤
a5bc5c1490
Publish (again) ()
- swc_ecma_codegen@0.6.1
 - swc_ecma_codegen_macros@0.3.0
 - swc_ecma_parser@0.9.1
 - swc_ecma_parser_macros@0.3.0
2019-02-27 10:48:02 +09:00
강동윤
10cb9a4b21
Publish ()
- swc_macros_common@0.2.0
 - ast_node@0.4.1
 - string_enum @0.2.0 
 - swc_ecma_ast@0.8.0
 - swc_ecma_parser_macros@0.3.0
 - swc_ecma_codegen_macros@0.3.0
 - swc_ecma_parser@0.9.1
 - swc_ecma_parser@0.6.1
2019-02-27 10:42:22 +09:00
강동윤
968046586f Add Backer 2019-02-26 22:51:24 +09:00
강동윤
22f2f02f5f Gitter -> Slack 2019-02-26 21:03:02 +09:00
강동윤
1b28766c26
Improve comment api ()
swc_ecma_parser:
 - parser now take comments by reference
2019-02-26 13:56:58 +09:00
강동윤
c8c346d42d Update benchmark 2019-02-25 23:45:36 +09:00
강동윤
a75dbdf2f2 Update references 2019-02-25 19:47:53 +09:00
강동윤
b6a4d1548a FIx 2019-02-25 19:14:23 +09:00
강동윤
27cd169522 More works for ast node serialization 2019-02-25 19:07:20 +09:00
강동윤
3e2750ba5e Make const_module pass parse expressions itself 2019-02-25 12:42:23 +09:00
강동윤
906d6a0625 Fix codegen of yield, break, continue. Fixes . 2019-02-25 11:42:50 +09:00
강동윤
dff2cb8f75
Implement deserialize for ast nodes ()
string_enum:
 - #[derive(StringEnum)] now derives `Deserialize`

swc_ecma_ast:
 - implement deserialize for ast nodes.
 - change ast to make it serialized / deserialized correctly

swc_ecma_parser:
 - jsx, test262, typescript tests now verify serialization and deserialization of module
2019-02-24 14:12:04 +09:00
강동윤
02cf33f56b Add backer 2019-02-24 12:19:03 +09:00
강동윤
78f4b25480
Bug Fixes ()
swc_ecma_transforms:
 - fix spread pass ()
 - add babel's fixture tests for spreads
 - change order of passes ()
 - handle updates of private class fields ()
2019-02-23 21:56:12 +09:00
강동윤
7dcb2e34af Add test for . 2019-02-22 15:55:04 +09:00
강동윤
a785ecc960
Add const_modules pass ()
swc_ecma_transforms:
 - use fxhash for inline_globals pass
 - handle member expression in inlne_globals pass
 - add const_modules pass
2019-02-22 15:42:27 +09:00
강동윤
c1de0a5c86
Improve codegen of binary expression which contains unary expression. ()
swc_ecma_codegen:
 - improve codegen of binary expression which contains unary expression ()
2019-02-22 12:04:41 +09:00