(ctx: BaseParseContext)
| 296 | // again by its next reference, which queues them again. Registered, so that |
| 297 | // an alias holding what it resolved to reaches the same resolution |
| 298 | const unresolve = (ctx: BaseParseContext): void => { |
| 299 | if (ctx.phase !== "resolved") return |
| 300 | ctx.phase = "unresolved" |
| 301 | nodesById.set(ctx.id, ctx) |
| 302 | ctx.$.res[ctx.alias!] = ctx |
| 303 | } |
| 304 | |
| 305 | const registerParseContext = <ctx extends BaseParseContext>(ctx: ctx): ctx => |
| 306 | nodesById.pin(ctx.id, ctx) as ctx |
no test coverage detected