(source, pos)
| 29 | |
| 30 | |
| 31 | def 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 | |
| 41 | def find_ids_in_source_file(file_name, id_to_file_names): |
no outgoing calls
no test coverage detected