mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-01 07:33:12 +08:00
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.