All files / PARSE/1-Discover/types IInMemorySource.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                                         
/**
 * A C-Next file whose text is supplied rather than read: the root of a
 * `{ kind: "source" }` run.
 *
 * #1435: discovery resolves it with the same loop as every file on disk. Only
 * where its text comes from and which directory it is resolved from differ, so
 * those are the only two things this carries beyond its path.
 */
interface IInMemorySource {
  readonly path: string;
  readonly source: string;
  /**
   * The directory the text is resolved from, standing in for `dirname(path)`:
   * the directory of its path when it has one, else the caller's
   * `workingDir`.
   */
  readonly directory: string;
}
 
export default IInMemorySource;