| 1259 | * ═══════════════════════════════════════════════════════════════════════════ */ |
| 1260 | |
| 1261 | static const CBMImport *imp_by_local(const CBMFileResult *r, const char *local) { |
| 1262 | for (int i = 0; i < r->imports.count; i++) { |
| 1263 | if (r->imports.items[i].local_name && strcmp(r->imports.items[i].local_name, local) == 0) { |
| 1264 | return &r->imports.items[i]; |
| 1265 | } |
| 1266 | } |
| 1267 | return NULL; |
| 1268 | } |
| 1269 | |
| 1270 | /* `navigate` from `{ get as navigate }` binds axios's `get`: the call |
| 1271 | * resolvers spell a call through it as axios.get. The member is set for a |
no outgoing calls
no test coverage detected