polyglot-piranha 0.3.9__cp38-cp38-manylinux_2_34_x86_64.whl → 0.3.11__cp38-cp38-manylinux_2_34_x86_64.whl
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.
- polyglot_piranha/__init__.pyi +7 -2
- polyglot_piranha/polyglot_piranha.cpython-38-x86_64-linux-gnu.so +0 -0
- {polyglot_piranha-0.3.9.dist-info → polyglot_piranha-0.3.11.dist-info}/METADATA +1 -1
- polyglot_piranha-0.3.11.dist-info/RECORD +10 -0
- polyglot_piranha-0.3.9.dist-info/RECORD +0 -10
- {polyglot_piranha-0.3.9.dist-info → polyglot_piranha-0.3.11.dist-info}/WHEEL +0 -0
- {polyglot_piranha-0.3.9.dist-info → polyglot_piranha-0.3.11.dist-info}/license_files/LICENSE +0 -0
- {polyglot_piranha-0.3.9.dist-info → polyglot_piranha-0.3.11.dist-info}/license_files/NOTICE +0 -0
polyglot_piranha/__init__.pyi
CHANGED
@@ -172,8 +172,10 @@ class Filter:
|
|
172
172
|
"The minimum number of times the contains query should match in the enclosing node"
|
173
173
|
at_most: int
|
174
174
|
"The maximum number of times the contains query should match in the enclosing node"
|
175
|
-
|
175
|
+
child_count: int
|
176
176
|
"Number of named children under the primary matched node"
|
177
|
+
sibling_count: int
|
178
|
+
"Number of named siblings of the primary matched node"
|
177
179
|
def __init__(
|
178
180
|
self,
|
179
181
|
enclosing_node: Optional[str] = None,
|
@@ -182,7 +184,8 @@ class Filter:
|
|
182
184
|
contains: Optional[str] = None,
|
183
185
|
at_least: int = 1,
|
184
186
|
at_most: int = 4294967295, # u32::MAX
|
185
|
-
|
187
|
+
child_count: int = 4294967295, # u32::MAX
|
188
|
+
sibling_count: int = 4294967295 # u32::MAX
|
186
189
|
):
|
187
190
|
"""
|
188
191
|
Constructs `Filter`
|
@@ -205,6 +208,8 @@ class Rule:
|
|
205
208
|
"Tree-sitter query as string"
|
206
209
|
replace_node: str
|
207
210
|
"The tag corresponding to the node to be replaced"
|
211
|
+
replace_node_idx: str
|
212
|
+
"The i'th child of node corresponding to the replace_node tag will be replaced"
|
208
213
|
replace: str
|
209
214
|
"Replacement pattern"
|
210
215
|
groups: set[str]
|
Binary file
|
@@ -0,0 +1,10 @@
|
|
1
|
+
polyglot_piranha-0.3.11.dist-info/METADATA,sha256=7rKJmP5mct6CLuNjjtYBkyZ-7NcTdv6rKJuPnHqUMoc,3798
|
2
|
+
polyglot_piranha-0.3.11.dist-info/WHEEL,sha256=NSfzezoBy6QHV519XNwEClanafcRll9i8rtrnsGC7eo,106
|
3
|
+
polyglot_piranha-0.3.11.dist-info/license_files/LICENSE,sha256=7qqytxojDvLpt8CphcCVvEQilegiJ0x_oDkwHJU-1z4,11359
|
4
|
+
polyglot_piranha-0.3.11.dist-info/license_files/LICENSE,sha256=7qqytxojDvLpt8CphcCVvEQilegiJ0x_oDkwHJU-1z4,11359
|
5
|
+
polyglot_piranha-0.3.11.dist-info/license_files/NOTICE,sha256=9bEJKCdL0MABjEknpMHXbYBZSkGVGRXYcSxSXS293X0,147
|
6
|
+
polyglot_piranha/__init__.py,sha256=pghVgChf0-NgAG_zd7CzKtvFuBDxg5Wh-GcHx2PoTzg,147
|
7
|
+
polyglot_piranha/__init__.pyi,sha256=dP6cZPoMO5D15obullyYRHi4Il1y0MWBszs1VEGISEw,10076
|
8
|
+
polyglot_piranha/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
9
|
+
polyglot_piranha/polyglot_piranha.cpython-38-x86_64-linux-gnu.so,sha256=A0rAqaZL4YPQeHvE6SOpTSB-Ie7ryUR9TpDE54XSQHo,94328736
|
10
|
+
polyglot_piranha-0.3.11.dist-info/RECORD,,
|
@@ -1,10 +0,0 @@
|
|
1
|
-
polyglot_piranha-0.3.9.dist-info/METADATA,sha256=s6FAWTQR4VZOsXViPADV48GN5e6V-2ErO33a7yMhL78,3797
|
2
|
-
polyglot_piranha-0.3.9.dist-info/WHEEL,sha256=NSfzezoBy6QHV519XNwEClanafcRll9i8rtrnsGC7eo,106
|
3
|
-
polyglot_piranha-0.3.9.dist-info/license_files/LICENSE,sha256=7qqytxojDvLpt8CphcCVvEQilegiJ0x_oDkwHJU-1z4,11359
|
4
|
-
polyglot_piranha-0.3.9.dist-info/license_files/LICENSE,sha256=7qqytxojDvLpt8CphcCVvEQilegiJ0x_oDkwHJU-1z4,11359
|
5
|
-
polyglot_piranha-0.3.9.dist-info/license_files/NOTICE,sha256=9bEJKCdL0MABjEknpMHXbYBZSkGVGRXYcSxSXS293X0,147
|
6
|
-
polyglot_piranha/__init__.py,sha256=pghVgChf0-NgAG_zd7CzKtvFuBDxg5Wh-GcHx2PoTzg,147
|
7
|
-
polyglot_piranha/__init__.pyi,sha256=yORhe-Vk3Ilmw5wDrEgL2xKZh2bLwl0QALlGCp9pKmw,9846
|
8
|
-
polyglot_piranha/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
9
|
-
polyglot_piranha/polyglot_piranha.cpython-38-x86_64-linux-gnu.so,sha256=ZclSWynsTgeqlTNbYBoO2CAmR3Bm87qjj3wHCcYkSYg,88771056
|
10
|
-
polyglot_piranha-0.3.9.dist-info/RECORD,,
|
File without changes
|
{polyglot_piranha-0.3.9.dist-info → polyglot_piranha-0.3.11.dist-info}/license_files/LICENSE
RENAMED
File without changes
|
File without changes
|