MCPcopy Create free account
hub / github.com/argotorg/solidity / fix_ids_in_source_files

Function fix_ids_in_source_files

scripts/error_codes.py:101–109  ·  view source on GitHub ↗

Fixes ids in given source files; id_to_count contains number of appearances of every id in sources

(file_names, id_to_count)

Source from the content-addressed store, hash-verified

99
100
101def fix_ids_in_source_files(file_names, id_to_count):
102 """
103 Fixes ids in given source files;
104 id_to_count contains number of appearances of every id in sources
105 """
106
107 available_ids = {str(error_id) for error_id in range(1000, 10000)} - id_to_count.keys()
108 for file_name in file_names:
109 fix_ids_in_source_file(file_name, id_to_count, available_ids)
110
111
112def find_files(top_dir, sub_dirs, extensions):

Callers 1

mainFunction · 0.85

Calls 1

fix_ids_in_source_fileFunction · 0.85

Tested by

no test coverage detected