@@ -50,7 +50,7 @@ class UnsortedKeywordFinder(UnFixedOrderFinder):
5050 def __init__ (
5151 self ,
5252 filetype : FILETYPE ,
53- message : str = "{{uni.get_text() }}: is unsorted due to {{_uni}}" ,
53+ message : str = "{{uni.text }}: is unsorted due to {{_uni}}" ,
5454 severity : DiagnosticSeverity = DiagnosticSeverity .Warning ,
5555 ) -> None :
5656 r"""Init.
@@ -154,7 +154,7 @@ def filter(self, uni: UNI) -> bool:
154154 :type uni: UNI
155155 :rtype: bool
156156 """
157- text = uni .get_text ()
157+ text = uni .text
158158 return (
159159 text in self .order
160160 and text in self .keywords
@@ -194,7 +194,7 @@ class UnsortedCSVFinder(Finder):
194194 def __init__ (
195195 self ,
196196 filetype : FILETYPE ,
197- message : str = "{{uni.get_text() }}: unsorted" ,
197+ message : str = "{{uni.text }}: unsorted" ,
198198 severity : DiagnosticSeverity = DiagnosticSeverity .Warning ,
199199 ) -> None :
200200 r"""Init.
@@ -231,7 +231,7 @@ def __call__(self, uni: UNI) -> bool:
231231 :type uni: UNI
232232 :rtype: bool
233233 """
234- return self .is_csv (uni ) and self .sort (uni .get_text ()) != uni .get_text ()
234+ return self .is_csv (uni ) and self .sort (uni .text ) != uni .text
235235
236236 def is_csv (self , uni : UNI ) -> bool :
237237 r"""Is csv.
@@ -277,7 +277,7 @@ def get_text_edits(self, uri: str, tree: Tree) -> list[TextEdit]:
277277 :rtype: list[TextEdit]
278278 """
279279 text_edits = [
280- TextEdit (uni .get_range () , self .sort (uni .get_text () ))
280+ TextEdit (uni .range , self .sort (uni .text ))
281281 for uni in self .find_all (uri , tree )
282282 ]
283283 return text_edits
@@ -319,7 +319,7 @@ def get_document_links(
319319 links = []
320320 for uni in self .find_all (uri , tree ):
321321 start = list (uni .node .start_point )
322- text = uni .get_text ()
322+ text = uni .text
323323 if text .startswith ('"' ):
324324 text = text .strip ('"' )
325325 start [1 ] += 1
@@ -346,7 +346,7 @@ class PackageFinder(QueryFinder):
346346
347347 def __init__ (
348348 self ,
349- message : str = "{{uni.get_text() }}: no such file" ,
349+ message : str = "{{uni.text }}: no such file" ,
350350 severity : DiagnosticSeverity = DiagnosticSeverity .Error ,
351351 ) -> None :
352352 r"""Init.
@@ -380,7 +380,7 @@ class MinGWFinder(QueryFinder):
380380
381381 def __init__ (
382382 self ,
383- message : str = "{{uni.get_text() }}: no such file" ,
383+ message : str = "{{uni.text }}: no such file" ,
384384 severity : DiagnosticSeverity = DiagnosticSeverity .Error ,
385385 ) -> None :
386386 r"""Init.
0 commit comments