( name: string )
| 701 | } |
| 702 | |
| 703 | maybeResolve( |
| 704 | name: string |
| 705 | ): Exclude<CachedResolution, BaseParseContext> | undefined { |
| 706 | const cached = this.res[name] |
| 707 | if (cached && !hasArkKind(cached, "context")) { |
| 708 | $ark.reached?.cached(this.res, name) |
| 709 | if (hasArkKind(cached, "root") && cached.topAlias) |
| 710 | return this.resolvePending(name, cached) |
| 711 | return this.bindRef(cached) |
| 712 | } |
| 713 | const mark = $ark.reached?.mark() |
| 714 | const resolution = this.resolveUncached(name, cached, mark) |
| 715 | $ark.reached?.store(mark, this.res, name) |
| 716 | return resolution |
| 717 | } |
| 718 | |
| 719 | // resolves the context of an alias's definition, by the phase a reference finds it in |
| 720 | private resolveDefinition( |
nothing calls this directly
no test coverage detected