All files / transpiler/types ITranspilerResult.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 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51                                                                                                     
import ITranspileError from "../../lib/types/ITranspileError";
import IGrammarCoverageReport from "../logic/analysis/types/IGrammarCoverageReport";
import IFileResult from "./IFileResult";
import type IRecordedRequirement from "./IRecordedRequirement";
import type IRecordedAdrSite from "./IRecordedAdrSite";
 
/**
 * Result of running the unified transpiler
 */
interface ITranspilerResult {
  /** Overall success - true only if all files transpiled without errors */
  success: boolean;
 
  /** Per-file transpilation results */
  files: IFileResult[];
 
  /** Total files processed */
  filesProcessed: number;
 
  /** Total symbols collected from C/C++ headers */
  symbolsCollected: number;
 
  /** Aggregate errors across all files */
  errors: ITranspileError[];
 
  /** Warnings (non-fatal issues) */
  warnings: string[];
 
  /** Output files generated */
  outputFiles: string[];
 
  /** Grammar coverage (if collectGrammarCoverage was enabled) */
  grammarCoverage?: IGrammarCoverageReport;
 
  /**
   * Issue #1143: Union of every file's toolchain requirements, with the source
   * sites that incurred each. Printed by ResultPrinter and used to answer
   * "what does *my* project need?" rather than "what might C-Next need?".
   */
  requirements?: readonly IRecordedRequirement[];
 
  /**
   * Issue #1241: every position at which an ADR's rule fired while generating
   * this run's output. Consumed by the scope-context matrix so a fixture that
   * asserts generated C -- rather than a diagnostic -- can occupy a cell.
   */
  adrSites?: readonly IRecordedAdrSite[];
}
 
export default ITranspilerResult;