(Ctx: IssuesClass)
| 1125 | // call that leaves its errors unread costs (on schemabenchmarks.dev's invalid |
| 1126 | // product, 255 instructions a call where this is 139) |
| 1127 | const unreadOf = (Ctx: IssuesClass): IssuesClass => { |
| 1128 | if (Ctx === ArkErrors) return (unreadArkErrors ??= unreadClassOf(Ctx)) |
| 1129 | let unread = unreadClasses.get(Ctx) |
| 1130 | if (!unread) unreadClasses.set(Ctx, (unread = unreadClassOf(Ctx))) |
| 1131 | return unread |
| 1132 | } |
| 1133 | |
| 1134 | // An Apply reporting into ArkErrors calls no user code, so its issues can wait |
| 1135 | // until they're read: errors are built with what finds them, in the place a |
no test coverage detected