All files / types INamedTypeResolution.ts

0% Statements 0/0
0% Branches 0/0
0% Functions 0/0
0% Lines 0/0

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21                                         
/**
 * Which syntactic branch answered for a NAMED type, what was written, and what
 * it resolved to.
 *
 * `branch` is the part a resolved name cannot carry. `written` is the
 * identifier before any scope qualification, which a caller that must defer has
 * to record -- ADR-057 resolves from the parse tree, so the written form is the
 * input, not the output.
 *
 * #1445: lifted out of `TypeBinding` so a pass that must not name a parse type
 * can still receive the ladder's answer. It names none itself, which is what
 * lets 2.3 Render take this instead of the accessors it used to be handed.
 */
interface INamedTypeResolution {
  readonly branch: "this" | "global" | "qualified" | "bare";
  readonly written: string;
  readonly name: string;
}
 
export default INamedTypeResolution;