Skip to content
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

WIP: AST Traverse #2987

Closed
wants to merge 28 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
45275f2
Traversable AST WIP
overlookmotel Apr 27, 2024
673100e
Don't apply `Clone` to traversable types
overlookmotel Apr 27, 2024
18d6a45
Box `AssignmentTargetRest`
overlookmotel Apr 28, 2024
a08e0f8
Box `BindingIdentifier`
overlookmotel Apr 28, 2024
bf0fcb7
Box `BindingPattern`
overlookmotel Apr 28, 2024
3111578
Box `CatchParameter`
overlookmotel Apr 28, 2024
67396b0
Box `Elision`
overlookmotel Apr 28, 2024
7eba8a5
Box `Hashbang`
overlookmotel Apr 28, 2024
de19101
Box `IdentifierReference`
overlookmotel Apr 29, 2024
709fad6
Fix: Add missing export to `traverse/ast.rs`
overlookmotel Apr 29, 2024
c5e10be
`Traverse` trait
overlookmotel Apr 29, 2024
d6589fa
`Ancestor` enum
overlookmotel Apr 29, 2024
a91d4f9
Add `AstBuilder` + `TraverseCtx`
overlookmotel Apr 29, 2024
15ae0e7
Add `transform` function
overlookmotel Apr 29, 2024
e730ac5
TSImportAttributes
milesj Apr 29, 2024
c7f6c9c
TSThisParameter
milesj Apr 29, 2024
c952760
TSThisType
milesj Apr 29, 2024
f81fc56
TemplateLiteral
milesj Apr 29, 2024
e8e46cd
WithClause
milesj Apr 29, 2024
d997cca
JSXEmptyExpression
milesj Apr 29, 2024
9ea0484
JSXIdentifier
milesj Apr 29, 2024
10fd302
LabelIdentifier
milesj Apr 29, 2024
feeb02c
PrivateIdentifier
milesj Apr 29, 2024
93fb092
Box `StringLiteral`
overlookmotel Apr 30, 2024
b218244
Box `IdentifierName`
overlookmotel Apr 30, 2024
4da2a3a
Fix type inspection
overlookmotel Apr 30, 2024
fb7bce1
Update inspect script
overlookmotel Apr 30, 2024
2b22b02
feat(macros): add impls for traversable ast types. (#3149)
rzvxa Jun 25, 2024
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: 2 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ extend-exclude = [
"**/*.snap",
"pnpm-lock.yaml",
"**/*/CHANGELOG.md",
"Cargo.toml",
]

[default.extend-words]
Expand All @@ -24,6 +25,7 @@ trivia = "trivia"
xdescribe = "xdescribe"
seeked = "seeked"
labeledby = "labeledby"
ser = "ser"

[default.extend-identifiers]
IIFEs = "IIFEs"
127 changes: 103 additions & 24 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ serde_yaml = "0.9.34"
similar = "2.5.0"
textwrap = "0.16.0"
unicode-width = "0.1.12"
layout_inspect = { git = "https://github.com/overlookmotel/layout_inspect", rev = "5ba0afe" }

[workspace.metadata.cargo-shear]
ignored = ["napi"]
Expand Down
2 changes: 2 additions & 0 deletions crates/oxc_allocator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ allocator-api2 = { workspace = true }

serde = { workspace = true, optional = true }

layout_inspect = { workspace = true, features = ["unique_names"] }

[dev-dependencies]
serde = { workspace = true }
serde_json = { workspace = true }
Expand Down
Loading