Skip to content

Commit

Permalink
feat(transform): oxc_traverse crate (#3169)
Browse files Browse the repository at this point in the history
First part of #3152.

This adds a crate `oxc_traverse`, but doesn't connect it up to the
transformer or anything else yet.

I think we could merge this now - as it doesn't affect any code that's
in use - and then iterate on it to add scopes before using it in
transformer. Please see
#3152 (comment) for
the broader picture.
  • Loading branch information
overlookmotel authored May 6, 2024
1 parent 0ceeec8 commit be87ca8
Show file tree
Hide file tree
Showing 30 changed files with 19,626 additions and 4 deletions.
101 changes: 101 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,12 @@ oxc_transformer = { version = "0.12.5", path = "crates/oxc_transformer" }
oxc_sourcemap = { version = "0.12.5", path = "crates/oxc_sourcemap" }

# publish = false
oxc_ast_macros = { path = "crates/oxc_ast_macros" }
oxc_macros = { path = "crates/oxc_macros" }
oxc_linter = { path = "crates/oxc_linter" }
oxc_prettier = { path = "crates/oxc_prettier" }
oxc_tasks_common = { path = "tasks/common" }
oxc_traverse = { path = "crates/oxc_traverse" }

napi = "2"
napi-derive = "2"
Expand All @@ -110,6 +112,7 @@ ignore = "0.4.22"
itertools = "0.12.1"
jemallocator = "0.5.4"
lazy_static = "1.4.0"
memoffset = "0.9.1"
miette = { version = "7.2.0", features = ["fancy-no-syscall"] }
mimalloc = "0.1.41"
num-bigint = "0.4.4"
Expand All @@ -132,6 +135,7 @@ tempfile = "3.10.1"
thiserror = "1.0.59"
tokio = "1"
tower-lsp = "0.20.0"
trybuild = "1.0.93"
unicode-id-start = "1.1.2"
ureq = { version = "2.9.6", default-features = false }
url = "2.5.0"
Expand Down Expand Up @@ -169,7 +173,7 @@ unicode-width = "0.1.12"
saphyr = "0.0.1"

[workspace.metadata.cargo-shear]
ignored = ["napi"]
ignored = ["napi", "oxc_traverse"]

[profile.dev]
# Disabling debug info speeds up local and CI builds,
Expand Down
7 changes: 4 additions & 3 deletions crates/oxc_ast/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ workspace = true
doctest = false

[dependencies]
oxc_allocator = { workspace = true }
oxc_span = { workspace = true }
oxc_syntax = { workspace = true }
oxc_allocator = { workspace = true }
oxc_ast_macros = { workspace = true }
oxc_span = { workspace = true }
oxc_syntax = { workspace = true }

bitflags = { workspace = true }
num-bigint = { workspace = true }
Expand Down
Loading

0 comments on commit be87ca8

Please sign in to comment.