(item)
| 297 | # TODO: swiftc模块的增量更新 |
| 298 | # 根据ident(file属性),增量覆盖更新 |
| 299 | def identifier(item): |
| 300 | if isinstance(item, dict): |
| 301 | return item.get("file") or item.get("module_name") |
| 302 | return None # other type info without identifier simplely append into file |
| 303 | |
| 304 | with open(database_path, "r+") as f: |
| 305 | # try best effort to keep old data |
no test coverage detected