@@ -32,8 +32,8 @@ def from_string_node(cls, node: Node, parent: "Trie | None") -> "Trie":
3232 """
3333 if node .type == "string" and node .children == 3 :
3434 node = node .children [1 ]
35- text = UNI . node2text (node )
36- _range = UNI . node2range (node )
35+ text = UNI (node ). text
36+ _range = UNI (node ). range
3737 if node .type in {"string" , "raw_string" } and node .children != 3 :
3838 text = text .strip ("'\" " )
3939 _range .start .character += 1
@@ -61,13 +61,13 @@ def from_node(cls, node: Node, parent: "Trie | None") -> "Trie":
6161 if node .type in string_types :
6262 return cls .from_string_node (node , parent )
6363 if node .type == "function_definition" :
64- return cls (UNI . node2range (node ), parent , 0 )
64+ return cls (UNI (node ). range , parent , 0 )
6565 if node .type == "variable_assignment" :
6666 if len (node .children ) < 3 :
67- return cls (UNI . node2range (node ), parent , "" )
67+ return cls (UNI (node ). range , parent , "" )
6868 node = node .children [2 ]
6969 if node .type == "array" :
70- trie = cls (UNI . node2range (node ), parent , [])
70+ trie = cls (UNI (node ). range , parent , [])
7171 value : list [Trie ] = trie .value # type: ignore
7272 trie .value = [
7373 cls .from_node (child , trie )
@@ -85,7 +85,7 @@ def from_node(cls, node: Node, parent: "Trie | None") -> "Trie":
8585 "variable_assignment" ,
8686 "function_definition" ,
8787 }:
88- value [UNI . node2text (child .children [0 ])] = cls .from_node (
88+ value [UNI (child .children [0 ]). text ] = cls .from_node (
8989 child , trie
9090 )
9191 return trie
0 commit comments