mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-27 06:43:19 +08:00
The frontend calls tokenStartOfNode, getTextOfNode, getSourceFileOfNode and forEachChild instead of AstNode's position and traversal methods. Node lists answer hasTrailingComma(), and a declaration's modifiers are a modifier list with their flags. Symbol, Type, Signature, IndexInfo, TypePredicate, Program, TypeChecker and Diagnostic have tsc-ts/api's members and types. Compiler code reads symbol names with symbolName(symbol). tsc-ts goes to 0.0.5. api-conformance.ts asserts that AstNode, AstNodeList, SourceFile and each node interface are assignable to tsc-ts/api's interface of the same name, and names the members where the wire format differs.