Skip to content

Commit

Permalink
🩹 Rename name to label
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Dec 31, 2024
1 parent 00a3624 commit 9ae5722
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/lsp_tree_sitter/finders.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,18 +610,18 @@ def captures2unis(
:rtype: list[UNI]
"""
unis = []
for name, nodes in captures.items():
if uni := self.capture2uni(name, nodes, uri):
for label, nodes in captures.items():
if uni := self.capture2uni(label, nodes, uri):
unis += [uni]
return unis

def capture2uni(
self, name: str, nodes: list[Node], uri: str
self, label: str, nodes: list[Node], uri: str
) -> UNI | None:
r"""Capture2uni. can return ``None`` to skip.
:param name:
:type name: str
:param label:
:type label: str
:param nodes:
:type nodes: list[Node]
:param uri:
Expand Down

0 comments on commit 9ae5722

Please sign in to comment.