Skip to content

swc for the stable rustc #886

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 127 commits into from
Jul 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
127 commits
Select commit Hold shift + click to select a range
074371f
Bump?
kdy1 Jul 17, 2020
cffd1b1
unused
kdy1 Jul 17, 2020
43b4a85
No specialization
kdy1 Jul 17, 2020
25615ff
Make noop real noop (?)
kdy1 Jul 17, 2020
c5c8de5
macro seems easier than direct work
kdy1 Jul 17, 2020
1ad56f6
macros.optional (Cargo feature)
kdy1 Jul 17, 2020
45ad306
Optional<V>
kdy1 Jul 17, 2020
b3684bb
WIP: macro for Optional
kdy1 Jul 17, 2020
60568d8
tests requires Optional
kdy1 Jul 17, 2020
3721ad4
WIP: is_for_optional
kdy1 Jul 17, 2020
fc6ef55
Optional
kdy1 Jul 17, 2020
24064f5
Optional
kdy1 Jul 17, 2020
018d7bf
WIP: Removing Pass
kdy1 Jul 17, 2020
2d27776
Removing Pass
kdy1 Jul 17, 2020
ee0a471
rust-toolchain
kdy1 Jul 17, 2020
6d37f5a
TEMP: I need autocompletion
kdy1 Jul 17, 2020
8f78822
optional_catch_binding
kdy1 Jul 17, 2020
5d8e8db
I want rustfmt
kdy1 Jul 17, 2020
0b9759a
optional_catch_binding
kdy1 Jul 17, 2020
ab4d64a
Backup before creating swc_ecma_visit::{FoldWith, VisitWith}
kdy1 Jul 17, 2020
68f4621
Revert "TEMP: I need autocompletion"
kdy1 Jul 17, 2020
9179a1c
{Fold, Visit}With is almost done
kdy1 Jul 17, 2020
32ba2c9
Deduplicate
kdy1 Jul 17, 2020
d22b9a0
FoldWith
kdy1 Jul 17, 2020
7fd7094
Make make_method return Option<T>
kdy1 Jul 17, 2020
79f02b8
No visitor method for primitives
kdy1 Jul 17, 2020
9f0c074
Bump
kdy1 Jul 17, 2020
d8efc2f
Bump
kdy1 Jul 17, 2020
a6261da
WIP: Extracting visitor code
kdy1 Jul 17, 2020
8a45e15
Extracted visit_expr
kdy1 Jul 17, 2020
a6c588f
FoldWith / VisitWith
kdy1 Jul 17, 2020
25c0625
TEMP: Autocompletion again
kdy1 Jul 17, 2020
c99a09a
Remove chain_at!
kdy1 Jul 17, 2020
23c3b48
Backup before implementing Fold / Visit for `chain!`
kdy1 Jul 17, 2020
159a09a
More work
kdy1 Jul 17, 2020
b9602db
480 errors
kdy1 Jul 17, 2020
2ba5f0d
Bump versions
kdy1 Jul 17, 2020
70e4525
Groundwork for swc_visit
kdy1 Jul 17, 2020
e4741aa
WIP: swc_visit: Initialize
kdy1 Jul 17, 2020
e9e5974
Cleanup
kdy1 Jul 17, 2020
2a3aae1
WIP: Removing `fold`
kdy1 Jul 17, 2020
a58222a
Remove `fold`
kdy1 Jul 17, 2020
c55691a
No specialization
kdy1 Jul 17, 2020
d9bfcd7
TEMP: I need autocompletion
kdy1 Jul 17, 2020
c5bb848
More work
kdy1 Jul 17, 2020
2eaa641
More work
kdy1 Jul 17, 2020
2041f2f
More work
kdy1 Jul 17, 2020
440009b
More work
kdy1 Jul 17, 2020
8cdd9fe
Stopped before fold/visit_children
kdy1 Jul 17, 2020
9bf23ba
More
kdy1 Jul 18, 2020
e2f9266
Fix tests
kdy1 Jul 18, 2020
32a8379
WIP: visit_children_with
kdy1 Jul 18, 2020
2f08bb6
adjust
kdy1 Jul 18, 2020
6164fe8
visit_children_with / fold_children_with
kdy1 Jul 18, 2020
7cabf99
Use visit_children_with / fold_children_with
kdy1 Jul 18, 2020
4ab4259
swc_visit: Handle `Box<T>`
kdy1 Jul 18, 2020
eddde67
swc_visit: Handle `Box<T>` correctly
kdy1 Jul 18, 2020
f92d3be
TEMP: swc_ecma_visit: Box<T>
kdy1 Jul 18, 2020
3b5b317
swc_visit: visit_children: 2 args inculding self
kdy1 Jul 18, 2020
359c5a1
TEMP: Update swc_ecma_visit
kdy1 Jul 18, 2020
eb56574
Fixed swc_ecma_utils
kdy1 Jul 18, 2020
7321ecf
lint
kdy1 Jul 18, 2020
3c73432
swc_common: re-export chain
kdy1 Jul 18, 2020
bd4cb2c
Updating imports...
kdy1 Jul 18, 2020
24dcb8a
Updating imports... (2)
kdy1 Jul 18, 2020
c02f047
Updating imports... (3)
kdy1 Jul 18, 2020
163d5f1
swc_visit: Fix chain!
kdy1 Jul 18, 2020
de383ab
Update imports
kdy1 Jul 18, 2020
ed54ba1
lint
kdy1 Jul 18, 2020
c15b815
WIP: transforms: switch to swc_ecma_visit
kdy1 Jul 18, 2020
92d5a37
Safe works
kdy1 Jul 18, 2020
f08b0af
Safe works
kdy1 Jul 18, 2020
c371c5e
fold_stmt_like
kdy1 Jul 19, 2020
0e04511
Fix
kdy1 Jul 19, 2020
e3244d2
lint
kdy1 Jul 19, 2020
02b870e
Merge
kdy1 Jul 19, 2020
cee2123
Minor fix
kdy1 Jul 19, 2020
213ae35
chain!
kdy1 Jul 19, 2020
4190fb7
Fix compilation
kdy1 Jul 19, 2020
9a677bf
Either && Optional
kdy1 Jul 20, 2020
6f48d99
Visit/Fold for Either
kdy1 Jul 20, 2020
960a457
Fix tests
kdy1 Jul 20, 2020
1d200f5
swc_visit: Box<V>, &'_ mut V
kdy1 Jul 20, 2020
6e9827a
Fix compilation
kdy1 Jul 20, 2020
f207853
Fix regression
kdy1 Jul 20, 2020
371022b
Fix swc_visit
kdy1 Jul 20, 2020
299bfd9
Fix: other crates
kdy1 Jul 20, 2020
26f1655
Fix spack
kdy1 Jul 20, 2020
12e6a85
VisitMut & Fix spack
kdy1 Jul 21, 2020
097d4ac
Fix compilation of tests
kdy1 Jul 21, 2020
2ecdfa1
Fix jsx test
kdy1 Jul 21, 2020
62fded0
typo
kdy1 Jul 21, 2020
550d108
WIP...
kdy1 Jul 21, 2020
3bd2321
second try
kdy1 Jul 21, 2020
b7bb9a8
third try
kdy1 Jul 21, 2020
d5d2eb6
Fixed it!
kdy1 Jul 21, 2020
cc910a4
WIP: fixer
kdy1 Jul 22, 2020
fedc236
Fix fixer
kdy1 Jul 22, 2020
d519af3
Fix tests
kdy1 Jul 22, 2020
ab478fb
Fix tests
kdy1 Jul 22, 2020
bcd92a9
Fix
kdy1 Jul 22, 2020
56da69f
No box_syntax
kdy1 Jul 22, 2020
e6da32c
Fix for box_syntax
kdy1 Jul 22, 2020
20cf26c
739 errors in swc_ecma_transforms
kdy1 Jul 22, 2020
3ec2e3d
730 errors in swc_ecma_transforms
kdy1 Jul 22, 2020
1cdd0aa
726 errors in swc_ecma_transforms
kdy1 Jul 22, 2020
e8c481b
Removing box_syntax
kdy1 Jul 22, 2020
8f3d7c3
Fix benchmakrs
kdy1 Jul 23, 2020
3770e5e
Remove unused features
kdy1 Jul 23, 2020
1e38f0a
Remove box_patterns
kdy1 Jul 23, 2020
a66849c
Removing box_patterns
kdy1 Jul 23, 2020
9aa8b53
I need more macro
kdy1 Jul 23, 2020
cc4586f
More work for swc_ecma_transforms
kdy1 Jul 23, 2020
173fe5c
Need better cpu or ide...
kdy1 Jul 23, 2020
51dc5ce
78 errors from swc_ecma_transforms
kdy1 Jul 23, 2020
e924799
Remove box_patterns
kdy1 Jul 23, 2020
9f5999e
Fixing
kdy1 Jul 23, 2020
cfda939
Remove box_patterns
kdy1 Jul 23, 2020
11a8874
Update for removed box_patterns
kdy1 Jul 23, 2020
41ec42d
Rollback for swc_ecma_visit
kdy1 Jul 23, 2020
9dad00a
Oh... There was a bomb
kdy1 Jul 23, 2020
a6af1d5
Fix for the bomb
kdy1 Jul 23, 2020
96ff349
jsx requries special Normalizer
kdy1 Jul 23, 2020
b536a37
Fix simplifier
kdy1 Jul 23, 2020
04df12f
fixup! Fix simplifier
kdy1 Jul 23, 2020
8477ae0
fixup! Fix simplifier
kdy1 Jul 23, 2020
c8d1200
Fix swc_ecma_transforms
kdy1 Jul 23, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
required_version = "1.4.14"
required_version = "1.4.18"
use_field_init_shorthand = true
merge_imports = true
wrap_comments = true
Expand Down
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace]
members = ["ecmascript/visit", "native", "spack", "wasm"]
members = ["native", "spack", "wasm"]

[package]
name = "swc"
Expand All @@ -18,6 +18,7 @@ name = "swc"
swc_atoms = { path ="./atoms" }
swc_common = { path ="./common" }
swc_ecmascript = { path ="./ecmascript" }
swc_visit = { path ="./visit" }
anyhow = "1"
log = { version = "0.4", features = ["release_max_level_info"] }
serde = { version = "1", features = ["derive"] }
Expand Down
11 changes: 3 additions & 8 deletions common/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
[package]
name = "swc_common"
version = "0.6.2"
version = "0.7.0"
authors = ["강동윤 <[email protected]>"]
license = "Apache-2.0/MIT"
repository = "https://github.com/swc-project/swc.git"
documentation = "https://swc-project.github.io/rustdoc/swc_common/"
description = "Common utilities for the swc project."
edition = "2018"

[features]
default = []
# Enable folder and visitor. Requires nightly compiler.
fold = ["ast_node/fold"]


[dependencies]
ast_node = { version = "0.6", path = "../macros/ast_node" }
ast_node = { version = "0.7", path = "../macros/ast_node" }
from_variant = { version = "0.1", path = "../macros/from_variant" }
swc_visit = { version = "0.1", path = "../visit" }
string_cache = "0.8"
either = "1.5"
scoped-tls = { version = "1" }
Expand Down
75 changes: 0 additions & 75 deletions common/benches/and_then.rs

This file was deleted.

1 change: 0 additions & 1 deletion common/benches/serde.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![feature(box_syntax)]
#![feature(test)]

extern crate test;
Expand Down
Loading