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

Function in_comment

scripts/error_codes.py:31–38  ·  view source on GitHub ↗
(source, pos)

Source from the content-addressed store, hash-verified

29
30
31def in_comment(source, pos):
32 slash_slash_pos = source.rfind("//", 0, pos)
33 lf_pos = source.rfind("\n", 0, pos)
34 if slash_slash_pos > lf_pos:
35 return True
36 slash_star_pos = source.rfind("/*", 0, pos)
37 star_slash_pos = source.rfind("*/", 0, pos)
38 return slash_star_pos > star_slash_pos
39
40
41def find_ids_in_source_file(file_name, id_to_file_names):

Callers 2

find_ids_in_source_fileFunction · 0.85
fix_ids_in_source_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected