@@ -177,16 +177,16 @@ def __init__(
177177 self .globals_env : Dict [int , Value ] = {}
178178 self .scope_env : Dict [int , Tuple [Node , Set [int ]]] = {}
179179 self .api_env : Dict [int , API ] = {}
180-
180+
181181 # Dictionary storing mapping from the root node of the scope to its scope id
182182 self .scope_root_to_scope_id : Dict [Node , int ] = {}
183-
183+
184184 # Dictionary storing mapping from function root node to its scope id
185185 self .function_root_to_scope_id : Dict [Node , int ] = {}
186-
186+
187187 # Dictionary storing mapping from a scope id to all the non locals it is depended on
188188 self .child_scope_id_to_non_locals : Dict [int , Set [Value ]] = {}
189-
189+
190190 # Dictionary storing mapping from a non local value to its child scopes
191191 self .non_local_to_child_scopes : Dict [Value , Set [int ]] = {}
192192
@@ -266,9 +266,9 @@ def parse_project(self) -> None:
266266 self .fileContentDic [file_path ] = source
267267 pbar .update (1 )
268268 pbar .close ()
269-
269+
270270 self .extract_nonlocal_info ()
271-
271+
272272 # Analyzes extracted functions
273273 with concurrent .futures .ThreadPoolExecutor (
274274 max_workers = self .max_symbolic_workers_num
@@ -288,7 +288,7 @@ def parse_project(self) -> None:
288288 self .function_env [func_id ] = current_function
289289 pbar .update (1 )
290290 pbar .close ()
291-
291+
292292 # Analyzes extracted global variables
293293 pbar = tqdm (
294294 total = len (self .globalsRawDataDic ), desc = "Analyzing Global Variables"
@@ -343,14 +343,14 @@ def extract_scope_info(self, tree: tree_sitter.Tree) -> None:
343343 :param tree: Parsed syntax tree
344344 """
345345 pass
346-
346+
347347 @abstractmethod
348348 def extract_nonlocal_info (self ) -> None :
349349 """
350350 Traverse the scopes to identify declarations of non locals
351351 """
352352 pass
353-
353+
354354 @abstractmethod
355355 def extract_function_info (
356356 self , file_path : str , source_code : str , tree : Tree
@@ -730,7 +730,7 @@ def get_loop_statements(
730730 :return: A dictionary mapping (start_line, end_line) to loop statement info.
731731 """
732732 pass
733-
733+
734734 @abstractmethod
735735 def get_global_expressions_by_identifier (
736736 self , identifier : str , program_root : Node
@@ -871,7 +871,7 @@ def get_function_global_value_reference(
871871 references .setdefault (function , []).append (ref_value )
872872
873873 return references
874-
874+
875875 def get_function_from_localvalue (self , value : Value ) -> Optional [Function ]:
876876 """
877877 Retrieve the function corresponding to a local value.
0 commit comments