( binding: Binding, module: SourceModule )
| 262 | } |
| 263 | |
| 264 | private locate( |
| 265 | binding: Binding, |
| 266 | module: SourceModule |
| 267 | ): Located | "arktype" | undefined { |
| 268 | if (binding.kind !== "import") return [binding, module] |
| 269 | const target = this.graph.importOf(binding, module) |
| 270 | return ( |
| 271 | target.kind === "binding" ? [target.binding, target.module] |
| 272 | : target.kind === "arktype" || target.kind === "arktypeNamespace" ? |
| 273 | "arktype" |
| 274 | : undefined |
| 275 | ) |
| 276 | } |
| 277 | |
| 278 | // how many levels down what a const holds can be written, which nothing does |
| 279 | private fixedDepthOfBinding( |
no test coverage detected