Skip to content

Commit c8fb807

Browse files
committed
⬆️ Upgrade lsp-tree-sitter
1 parent 3fa4e46 commit c8fb807

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/make_language_server/finders.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,15 +119,15 @@ def __init__(self, node: Node) -> None:
119119
:rtype: None
120120
"""
121121
super().__init__()
122-
self.name = UNI.node2text(node)
122+
self.name = UNI(node).text
123123
parent = node.parent
124124
if parent is None:
125125
raise TypeError
126126
self.is_define = lambda _: False
127127
if parent.type == "arguments":
128128
self.is_define = self.is_function_define
129129
# https://github.com/alemuller/tree-sitter-make/issues/8
130-
self.name = UNI.node2text(node).split(",")[0]
130+
self.name = UNI(node).text.split(",")[0]
131131
elif node.type == "word" and (
132132
parent.type == "variable_reference"
133133
or parent.parent is not None
@@ -212,7 +212,7 @@ def uni2document(uni: UNI) -> str:
212212
raise TypeError
213213
return f"""<{uni.uri}>
214214
```make
215-
{UNI.node2text(parent)}
215+
{UNI(parent).text}
216216
```"""
217217

218218

@@ -228,7 +228,7 @@ def __init__(self, node: Node) -> None:
228228
:rtype: None
229229
"""
230230
super().__init__()
231-
self.name = UNI.node2text(node)
231+
self.name = UNI(node).text
232232
parent = node.parent
233233
if parent is None:
234234
raise TypeError
@@ -254,7 +254,7 @@ def is_function_reference(self, uni: UNI) -> bool:
254254
return (
255255
parent.type == "arguments"
256256
# https://github.com/alemuller/tree-sitter-make/issues/8
257-
and self.name in UNI.node2text(node).split(",")
257+
and self.name in UNI(node).text.split(",")
258258
)
259259

260260
def is_variable_reference(self, uni: UNI) -> bool:

0 commit comments

Comments
 (0)