Skip to content

Commit 192379c

Browse files
Move range from Attributed to Nodes (#22)
* Move `range` from `Attributed` to `Node`s * No Attributed + custom for Range PoC * Generate all located variants, generate enum implementations * Implement `Copy` on simple enums * Move `Suite` to `ranged` and `located` * Update tests --------- Co-authored-by: Jeong YunWon <jeong@youknowone.org>
1 parent a983f43 commit 192379c

File tree

126 files changed

+22537
-23797
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+22537
-23797
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ members = [
1717

1818
[workspace.dependencies]
1919
rustpython-ast = { path = "ast", default-features = false }
20-
rustpython-parser-core = { path = "core", default-features = false }
20+
rustpython-parser-core = { path = "core", features = [] }
2121
rustpython-literal = { path = "literal" }
2222

2323
ahash = "0.7.6"

ast/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@ location = ["fold", "rustpython-parser-core/location"]
1414
fold = []
1515
unparse = ["rustpython-literal"]
1616
visitor = []
17+
all-nodes-with-ranges = []
1718

1819
[dependencies]
1920
rustpython-parser-core = { workspace = true }
2021
rustpython-literal = { workspace = true, optional = true }
2122

2223
is-macro = { workspace = true }
2324
num-bigint = { workspace = true }
25+
static_assertions = "1.1.0"

0 commit comments

Comments
 (0)