All files / transpiler/constants BUILTIN_TYPE_NAMES.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                      27x      
/**
 * Type names that are spelled as a bare identifier but are built into the
 * language, so they reach `userType` in the grammar without ever being
 * declared.
 *
 * - `ISR`     — ADR-009, lowered to `typedef void (*ISR)(void)`
 * - `cstring` — ADR-046, lowered to `char*` for C library interop
 *
 * These must not be reported as undefined types (E0426) or undefined values
 * (E0427): they are defined by the language, just not by the program.
 */
const BUILTIN_TYPE_NAMES: ReadonlySet<string> = new Set(["ISR", "cstring"]);
 
export default BUILTIN_TYPE_NAMES;