All files / PARSE/4-Resolve SMALL_PRIMITIVES.ts

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1

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                101x                          
/**
 * Primitive types small enough to pass by value (ADR-006).
 *
 * A shared runtime lookup rather than a constant inside the analyzer, for a
 * layering reason: #1511 makes pass-by-value eligibility a fact 1.4 Resolve
 * authors, and `PARSE/` may not import `TRANSPILE/`, so the list cannot stay
 * where the analyzer had it.
 */
const SMALL_PRIMITIVES: ReadonlySet<string> = new Set([
  "u8",
  "i8",
  "u16",
  "i16",
  "u32",
  "i32",
  "u64",
  "i64",
  "bool",
]);
 
export default SMALL_PRIMITIVES;