All files / cnx/PARSE/2-Parse/types IHeaderServices.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                                   
import type THeaderDeclarationCache from "./THeaderDeclarationCache";
import type IHeaderCompiler from "../preprocessor/types/IHeaderCompiler";
import type IHeaderPreprocessor from "../preprocessor/types/IHeaderPreprocessor";
 
/** #1713: what 1.2 asks the host for to read a run's headers */
interface IHeaderServices {
  /**
   * The host's run of `compiler`, with the run's preprocessor cache; it is
   * unavailable when that compiler is not installed
   */
  readonly preprocessorFor: (compiler: IHeaderCompiler) => IHeaderPreprocessor;
 
  /** #1991: each header's cached declarations; null when the run has no cache */
  readonly headerCache: THeaderDeclarationCache | null;
}
 
export default IHeaderServices;