ast-grep-py 0.39.0__tar.gz → 0.39.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of ast-grep-py might be problematic. Click here for more details.
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/Cargo.lock +10 -16
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/Cargo.toml +6 -6
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/PKG-INFO +1 -1
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/config/src/rule/selector.rs +4 -4
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/pyproject.toml +1 -1
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/README.md +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/ast_grep_py/__init__.py +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/ast_grep_py/ast_grep_py.pyi +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/ast_grep_py/py.typed +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/config/Cargo.toml +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/config/src/check_var.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/config/src/combined.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/config/src/fixer.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/config/src/label.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/config/src/lib.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/config/src/maybe.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/config/src/rule/deserialize_env.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/config/src/rule/mod.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/config/src/rule/nth_child.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/config/src/rule/range.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/config/src/rule/referent_rule.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/config/src/rule/relational_rule.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/config/src/rule/stop_by.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/config/src/rule_collection.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/config/src/rule_config.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/config/src/rule_core.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/config/src/transform/mod.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/config/src/transform/parse.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/config/src/transform/rewrite.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/config/src/transform/string_case.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/config/src/transform/trans.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/core/Cargo.toml +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/core/src/language.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/core/src/lib.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/core/src/match_tree/match_node.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/core/src/match_tree/mod.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/core/src/match_tree/strictness.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/core/src/matcher/kind.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/core/src/matcher/node_match.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/core/src/matcher/pattern.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/core/src/matcher/text.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/core/src/matcher.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/core/src/meta_var.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/core/src/node.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/core/src/ops.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/core/src/pinned.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/core/src/replacer/indent.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/core/src/replacer/structural.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/core/src/replacer/template.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/core/src/replacer.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/core/src/source.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/core/src/tree_sitter/mod.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/core/src/tree_sitter/traversal.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/dynamic/Cargo.toml +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/dynamic/src/custom_lang.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/dynamic/src/lib.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/language/Cargo.toml +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/language/src/bash.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/language/src/cpp.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/language/src/csharp.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/language/src/css.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/language/src/elixir.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/language/src/go.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/language/src/haskell.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/language/src/html.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/language/src/json.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/language/src/kotlin.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/language/src/lib.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/language/src/lua.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/language/src/nix.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/language/src/parsers.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/language/src/php.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/language/src/python.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/language/src/ruby.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/language/src/rust.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/language/src/scala.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/language/src/solidity.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/language/src/swift.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/language/src/yaml.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/pyo3/Cargo.toml +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/pyo3/README.md +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/pyo3/ast_grep_py/__init__.py +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/pyo3/ast_grep_py/ast_grep_py.pyi +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/pyo3/ast_grep_py/py.typed +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/pyo3/src/lib.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/pyo3/src/py_lang.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/pyo3/src/py_node.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/pyo3/src/range.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/pyo3/src/unicode_position.rs +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/pyo3/tests/test_fix.py +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/pyo3/tests/test_range.py +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/pyo3/tests/test_register_lang.py +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/pyo3/tests/test_rule.py +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/pyo3/tests/test_simple.py +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/pyo3/tests/test_traversal.py +0 -0
- {ast_grep_py-0.39.0 → ast_grep_py-0.39.1}/crates/pyo3/tests/test_wrong_usage.py +0 -0
|
@@ -109,7 +109,7 @@ dependencies = [
|
|
|
109
109
|
|
|
110
110
|
[[package]]
|
|
111
111
|
name = "ast-grep"
|
|
112
|
-
version = "0.39.
|
|
112
|
+
version = "0.39.1"
|
|
113
113
|
dependencies = [
|
|
114
114
|
"ansi_term",
|
|
115
115
|
"anyhow",
|
|
@@ -143,7 +143,7 @@ dependencies = [
|
|
|
143
143
|
|
|
144
144
|
[[package]]
|
|
145
145
|
name = "ast-grep-config"
|
|
146
|
-
version = "0.39.
|
|
146
|
+
version = "0.39.1"
|
|
147
147
|
dependencies = [
|
|
148
148
|
"ast-grep-core",
|
|
149
149
|
"bit-set",
|
|
@@ -158,7 +158,7 @@ dependencies = [
|
|
|
158
158
|
|
|
159
159
|
[[package]]
|
|
160
160
|
name = "ast-grep-core"
|
|
161
|
-
version = "0.39.
|
|
161
|
+
version = "0.39.1"
|
|
162
162
|
dependencies = [
|
|
163
163
|
"bit-set",
|
|
164
164
|
"regex",
|
|
@@ -169,7 +169,7 @@ dependencies = [
|
|
|
169
169
|
|
|
170
170
|
[[package]]
|
|
171
171
|
name = "ast-grep-dynamic"
|
|
172
|
-
version = "0.39.
|
|
172
|
+
version = "0.39.1"
|
|
173
173
|
dependencies = [
|
|
174
174
|
"ast-grep-core",
|
|
175
175
|
"ignore",
|
|
@@ -183,7 +183,7 @@ dependencies = [
|
|
|
183
183
|
|
|
184
184
|
[[package]]
|
|
185
185
|
name = "ast-grep-language"
|
|
186
|
-
version = "0.39.
|
|
186
|
+
version = "0.39.1"
|
|
187
187
|
dependencies = [
|
|
188
188
|
"ast-grep-core",
|
|
189
189
|
"ignore",
|
|
@@ -217,7 +217,7 @@ dependencies = [
|
|
|
217
217
|
|
|
218
218
|
[[package]]
|
|
219
219
|
name = "ast-grep-lsp"
|
|
220
|
-
version = "0.39.
|
|
220
|
+
version = "0.39.1"
|
|
221
221
|
dependencies = [
|
|
222
222
|
"ast-grep-config",
|
|
223
223
|
"ast-grep-core",
|
|
@@ -231,7 +231,7 @@ dependencies = [
|
|
|
231
231
|
|
|
232
232
|
[[package]]
|
|
233
233
|
name = "ast-grep-napi"
|
|
234
|
-
version = "0.39.
|
|
234
|
+
version = "0.39.1"
|
|
235
235
|
dependencies = [
|
|
236
236
|
"ast-grep-config",
|
|
237
237
|
"ast-grep-core",
|
|
@@ -239,7 +239,7 @@ dependencies = [
|
|
|
239
239
|
"ast-grep-language",
|
|
240
240
|
"ignore",
|
|
241
241
|
"napi",
|
|
242
|
-
"napi-build
|
|
242
|
+
"napi-build",
|
|
243
243
|
"napi-derive",
|
|
244
244
|
"serde_json",
|
|
245
245
|
"tree-sitter",
|
|
@@ -247,7 +247,7 @@ dependencies = [
|
|
|
247
247
|
|
|
248
248
|
[[package]]
|
|
249
249
|
name = "ast-grep-py"
|
|
250
|
-
version = "0.39.
|
|
250
|
+
version = "0.39.1"
|
|
251
251
|
dependencies = [
|
|
252
252
|
"anyhow",
|
|
253
253
|
"ast-grep-config",
|
|
@@ -1090,7 +1090,7 @@ dependencies = [
|
|
|
1090
1090
|
"anyhow",
|
|
1091
1091
|
"bitflags 2.9.0",
|
|
1092
1092
|
"ctor",
|
|
1093
|
-
"napi-build
|
|
1093
|
+
"napi-build",
|
|
1094
1094
|
"napi-sys",
|
|
1095
1095
|
"nohash-hasher",
|
|
1096
1096
|
"rustc-hash",
|
|
@@ -1104,12 +1104,6 @@ version = "2.2.2"
|
|
|
1104
1104
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1105
1105
|
checksum = "fff539e61c5e3dd4d7d283610662f5d672c2aea0f158df78af694f13dbb3287b"
|
|
1106
1106
|
|
|
1107
|
-
[[package]]
|
|
1108
|
-
name = "napi-build"
|
|
1109
|
-
version = "3.0.0-beta.0"
|
|
1110
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1111
|
-
checksum = "42908a235da4c4a18c481eb5a8bb38570daa18581a68c508ca8efab662e38bc6"
|
|
1112
|
-
|
|
1113
1107
|
[[package]]
|
|
1114
1108
|
name = "napi-derive"
|
|
1115
1109
|
version = "3.0.0"
|
|
@@ -7,7 +7,7 @@ resolver = "2"
|
|
|
7
7
|
lto = true
|
|
8
8
|
|
|
9
9
|
[workspace.package]
|
|
10
|
-
version = "0.39.
|
|
10
|
+
version = "0.39.1"
|
|
11
11
|
authors = ["Herrington Darkholme <2883231+HerringtonDarkholme@users.noreply.github.com>"]
|
|
12
12
|
edition = "2021"
|
|
13
13
|
license = "MIT"
|
|
@@ -18,11 +18,11 @@ rust-version = "1.79"
|
|
|
18
18
|
readme = "README.md"
|
|
19
19
|
|
|
20
20
|
[workspace.dependencies]
|
|
21
|
-
ast-grep-core = { path = "crates/core", version = "0.39.
|
|
22
|
-
ast-grep-config = { path = "crates/config", version = "0.39.
|
|
23
|
-
ast-grep-dynamic = { path = "crates/dynamic", version = "0.39.
|
|
24
|
-
ast-grep-language = { path = "crates/language", version = "0.39.
|
|
25
|
-
ast-grep-lsp = { path = "crates/lsp", version = "0.39.
|
|
21
|
+
ast-grep-core = { path = "crates/core", version = "0.39.1", default-features = false }
|
|
22
|
+
ast-grep-config = { path = "crates/config", version = "0.39.1" }
|
|
23
|
+
ast-grep-dynamic = { path = "crates/dynamic", version = "0.39.1" }
|
|
24
|
+
ast-grep-language = { path = "crates/language", version = "0.39.1" }
|
|
25
|
+
ast-grep-lsp = { path = "crates/lsp", version = "0.39.1" }
|
|
26
26
|
|
|
27
27
|
bit-set = { version = "0.8.0" }
|
|
28
28
|
ignore = { version = "0.4.22" }
|
|
@@ -180,9 +180,9 @@ fn try_parse_subclass_selector<'a, L: Language>(
|
|
|
180
180
|
input: &mut Input<'a, L>,
|
|
181
181
|
) -> Result<Option<Rule>, SelectorError> {
|
|
182
182
|
if let Some(Token::ClassDot) = input.peek()? {
|
|
183
|
-
|
|
183
|
+
return Err(SelectorError::Unsupported("class-selector"));
|
|
184
184
|
} else if let Some(Token::PseudoColon) = input.peek()? {
|
|
185
|
-
|
|
185
|
+
return Err(SelectorError::Unsupported("pseudo-class-selector"));
|
|
186
186
|
}
|
|
187
187
|
Ok(None)
|
|
188
188
|
}
|
|
@@ -197,6 +197,8 @@ pub enum SelectorError {
|
|
|
197
197
|
MissingSelector,
|
|
198
198
|
#[error("Invalid Kind")]
|
|
199
199
|
InvalidKind(#[from] KindMatcherError),
|
|
200
|
+
#[error("{0} is not supported yet")]
|
|
201
|
+
Unsupported(&'static str),
|
|
200
202
|
}
|
|
201
203
|
|
|
202
204
|
struct Input<'a, L: Language> {
|
|
@@ -284,8 +286,6 @@ impl<'a, L: Language> Input<'a, L> {
|
|
|
284
286
|
|
|
285
287
|
#[cfg(test)]
|
|
286
288
|
mod test {
|
|
287
|
-
use std::num;
|
|
288
|
-
|
|
289
289
|
use super::*;
|
|
290
290
|
use crate::test::TypeScript as TS;
|
|
291
291
|
use ast_grep_core::tree_sitter::LanguageExt;
|
|
@@ -5,7 +5,7 @@ build-backend = "maturin"
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "ast-grep-py"
|
|
7
7
|
requires-python = ">=3.8"
|
|
8
|
-
version = "0.39.
|
|
8
|
+
version = "0.39.1"
|
|
9
9
|
description = "Structural Search and Rewrite code at large scale using precise AST pattern."
|
|
10
10
|
authors = [{ name = "Herrington Darkholme", email = "2883231+HerringtonDarkholme@users.noreply.github.com" }]
|
|
11
11
|
maintainers = [{ name = "Herrington Darkholme", email = "2883231+HerringtonDarkholme@users.noreply.github.com" }]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|