Commit Graph

60 Commits

Author SHA1 Message Date
Divy Srivastava
723970db1f
fix(typo): dowloads => downloads (#1222) 2020-11-19 20:06:47 +09:00
강동윤
4490e2551d
swc.rs (#1085)
Changes url from https://swc-project.github.io to https://swc.rs
2020-09-21 22:53:48 +09:00
강동윤
5baa636a4b
Chores (coverage, documentation, etc..) (#925) 2020-08-02 19:10:28 +09:00
Chris Barnes
5fe625ea7a
Add brief explanation of project to README (#891) 2020-07-24 17:24:41 +09:00
Veetaha
db1d54940b
Remove comma separators in benchmark presentation (#795) 2020-05-24 18:51:57 +09:00
kdy1
15e5d9ce79 Chores (#563)
- updated README.md (open collective)
 - fixed travis
2020-01-04 08:54:34 +00:00
강동윤
78daec2c14
Re-enable travis to make bors work (#562) 2020-01-04 15:58:21 +09:00
강동윤
6fa85b646f
preset-env (#537)
swc_ecma_preset_env:
 - can inject polyfills automatically
 - can apply transforms automatically

swc:
 - added env config to .swcrc
2019-12-28 11:25:54 +09:00
강동윤
b1e4122b02
Nullish coalescing / optional chaining / comments (#529)
swc_ecma_ast:
 - rename `TsOptChain` to `OptChainExpr` (Fixes #525)
 - add `BinOp::NullishCoalescing`

swc_ecma_parser:
 - parse `??` (Fixes #526)

swc_ecma_transforms:
 - remap comments from fixer (Fixes #528)
2019-12-24 17:01:32 +09:00
강동윤
552d20213f Update 2019-12-07 19:37:49 +09:00
강동윤
d7d22c2d5e
Optional try catch binding (#422)
swc_ecma_parser:
 - Add test for optional try catch binding
 
swc_ecma_transforms:
 - Implement optional catch binding (#411)
2019-09-22 19:31:32 +09:00
강동윤
9b82fce07e Add backer 2019-04-28 15:14:06 +09:00
강동윤
a55c2c2f64 Add backers 2019-04-26 20:56:34 +09:00
강동윤
8674a1dae9
Chores (#341)
- add tests for #340.
 - add backer
2019-03-12 17:24:51 +09:00
강동윤
8a8aa6f0b2
Add backer (#331) 2019-03-09 14:33:28 +09:00
강동윤
6275831b30 Fix links of backers 2019-02-28 16:52:19 +09:00
강동윤
8c1b773eec
Bug fixes (#289)
swc_ecma_transforms:
 - fix assignment expression in callee position (#286)
 - don't name funtion if function's body reference function name (#288)
2019-02-28 16:30:56 +09:00
강동윤
968046586f Add Backer 2019-02-26 22:51:24 +09:00
강동윤
22f2f02f5f Gitter -> Slack 2019-02-26 21:03:02 +09:00
강동윤
c8c346d42d Update benchmark 2019-02-25 23:45:36 +09:00
강동윤
02cf33f56b Add backer 2019-02-24 12:19:03 +09:00
강동윤
2a094e42db Update link to node package 2019-02-15 20:24:00 +09:00
강동윤
10e7c9821a
Fix backer link 2019-02-14 16:36:57 +09:00
강동윤
4bab61d0d0 Fix link 2019-02-13 18:28:47 +09:00
강동윤
4e2406c616 Include backers in readme 2019-02-13 18:25:19 +09:00
Hans Ott
77fe1f5371 Fix link to docs (#144) 2019-02-11 09:39:54 +09:00
강동윤
1a29087242 Add logo 2019-02-02 21:42:46 +09:00
강동윤
d4ef56eb5b fix a link in README.md 2019-01-24 16:32:45 +09:00
강동윤
334b25c7b8
Update README.md
typescript parser is implemented
2019-01-24 16:10:39 +09:00
강동윤
ed6ba04cf3 fix link 2019-01-22 17:41:44 +09:00
강동윤
afe19877f1 Add some badges 2019-01-22 17:28:31 +09:00
Fábio Santos
e75e1180a1 Link to docs, people need to know how it works! (#120) 2019-01-19 21:25:34 +09:00
강동윤
b437488082
implement es3::reserved_word (#103) 2018-12-30 12:56:04 +09:00
강동윤
603b83291d
jsx support (#100)
swc_ecma_parser:
 - implement parser for jsx

swc_ecma_transforms:
 - implement react::jsx transform

swc_ecma_codegen:
 - implement code generator for jsx
2018-12-30 11:57:27 +09:00
Max Mathys
f1852fc085
Add benchmark 2018-12-28 17:12:41 +01:00
강동윤
4d4e4ce979
Implement object rest / spread (#98)
swc_ecma_parser:
 - improve parser's tests
It now shows the code failed to parse
 - allow rest pattern in catch clause
 - fix parsing of named export (semicolon)

swc_ecma_transforms:
 - implement array spread
 - add helper methods (objectWithoutProperties)
 - add some fast paths
 - make es2015::parameters handle catch clauses
 - don't show helpers when execution failed
 - export fixer
2018-12-26 17:09:48 +09:00
강동윤
22b40e2b17
implements async to generator (#91)
swc_ecma_parser:
 - fix parsing of arrow expression

swc_ecma_codegen:
 - fix codegen of async function

swc_ecma_transforms:
 - implement es2017::async_to_generator
2018-12-24 10:58:40 +09:00
Viktor Kuroljov
946a32adf8 readme: Fix npm install command (#89) 2018-12-22 17:19:16 +09:00
강동윤
fb77e996bd
v1.0.0-alpha (#88)
Currently using this library requires nightly rustc toolchian
2018-12-22 14:08:18 +09:00
강동윤
6a0a2cf34e
Class getter / setter (#86)
Implement class getter / setter.
2018-12-22 12:15:04 +09:00
강동윤
145d6f39eb
For-of loop (#85)
Implements `es2015::for_of`
2018-12-21 21:39:42 +09:00
강동윤
f0e4598f41
Update README.md
render table correctly
2018-12-21 16:58:44 +09:00
강동윤
4ff6d4ed4a
Performance & Node binding (#84)
swc_common:
 - update rustc-ap crates to v313

swc_ecma_ast:
 - use bool instead of Option<Span>


swc_ecma_parser:
 - remove LexerInput
 - use uncons_while
 - assert only on debug mode
 - use Visit instead of Fold while verifying
 - replace debug! with trace!
 - disable logging while benchmarking
 - drop slog

swc_ecma_transforms:
 - classes: fold Decl instead of Stmt

swc:
 - add nodejs binding
2018-12-21 16:54:36 +09:00
강동윤
f82c722588 update README.md 2018-11-28 12:26:19 +09:00
강동윤
ab7d46c5bc
Es2015 (#80)
swc_common:
 - implement VisitWith for &T and [T]

swc_ecma_ast:
 - fix codegen of `===`

swc_ecma_parser:
 - fix parsing of array pattern


swc_ecma_transforms:
 - implement es2015::destructuring
 - implement es2015::computed_properties
 - implement es2015::duplicate_keys
 - implement es2015::parameters
 - fix `InjectHelper` pass

Note that getters / setters in class are not supported yet

 - Run execution tests via jest
 - ignore es2016::exponentation tests
2018-11-28 12:24:08 +09:00
강동윤
33d296af31
block scoped function and tagged template literal (#77)
swc_ecma_transforms:
 - implement es2015::block_scoped_functions
 - implement tagged template literal without escape handling
 - hygiene: rename to different number
 - scope: handle pattern by folding children


swc_ecma_ast:
 - use Str instead of String for template literal

swc_ecma_parser:
 - fix lexer tests
 - handle template literal correctly
template literals now have cooked field


swc_ecma_codegen:
 - escape newline character and backslash ('\')
2018-11-25 11:31:48 +09:00
강동윤
8524d93e9a spdy -> speedy & black box for benchmark 2018-11-23 19:52:46 +09:00
강동윤
7c58b89571
Scope analysis via ident hygiene (#74)
testing:
 - preserve context of the span in `::testing::DropSpan`

swc_ecma_codegen:
 - disable get_text_of_node to avoid deoptimization

swc_ecma_transforms:
 - allow using this inside arrow expression
 - implement es2015::block_scoping with hygiene ident
2018-11-23 19:22:07 +09:00
강동윤
d3e14b6533
Parser & transformers (#71)
swc_ecma_transforms:
 - implement es2015::arrow (without this support)
 - implement basical scope analysis
 - implement es2015::function_name
 - new.target is supported
 - implement untagged template literals

swc_ecma_parser
 - make test to use load_file()
 - fix eof handling
 - bump version
2018-11-21 18:59:17 +09:00
강동윤
1d0c78de6c
More works (#66)
ecma_transforms:
 - implement es2015::instanceof
 - implement es2015::typeof_symbol
 - implement inline_globals pass

ecma_parser:
 - `PResult<T>` is now `Result<T, ()>` and `Err(())` means that an error is emitted.
 - add docs
2018-11-18 14:00:07 +09:00