polyglot-piranha 0.3.9__cp38-cp38-macosx_10_16_x86_64.whl → 0.3.11__cp38-cp38-macosx_10_16_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.
@@ -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
- number_of_children: int
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
- number_of_children: int = 4294967295 # u32::MAX
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]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: polyglot_piranha
3
- Version: 0.3.9
3
+ Version: 0.3.11
4
4
  License-File: LICENSE
5
5
  License-File: LICENSE
6
6
  License-File: NOTICE
@@ -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=vTn1IZDgoknlk6_gLv3d7i0WnH3bVTo4ItfHNW0_v8g,104
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-darwin.so,sha256=Nc7o7aN5q1gP9_R-ZrHNWS7inI58WZRuik4WETv3JGc,13947776
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=vTn1IZDgoknlk6_gLv3d7i0WnH3bVTo4ItfHNW0_v8g,104
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-darwin.so,sha256=QH3iAUJ22vlt0zNRt-NQrwBrmknlgryDc0hvAcVd0QQ,13653184
10
- polyglot_piranha-0.3.9.dist-info/RECORD,,