Files
scriptc/packages/compiler/test/fixtures
Chris Tate ce1f3c4d2b Read TypeScript 7.1's binary AST format beside 7.0's
The AST reader accepts protocol 9, TypeScript 7.1's encoding, as well as
protocol 5 (7.0's), so scriptc can read either checker's responses:

- the 64-byte header of protocol 9;
- its node kinds, which count 7.1's SourceKeyword: each kind above it
  reads as 7.0's, and node handles name the response's own kinds;
- a module declaration's child mask, whose attributes slot moves the
  body to slot 3.

A protocol 9 response with a node 7.0 has no form for (a SourceKeyword
node, import attributes on a module declaration, or an `import source`
clause) throws an AstDecodeError that names it.
2026-10-26 11:27:36 -05:00
..