mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-06 08:23:19 +08:00
symbol.declarations, symbol.valueDeclaration and signature.declaration return nodes, as tsc-ts's Symbol and Signature do, instead of the facade's declarationsOf, valueDeclarationOf and signatureDeclaration resolving their handles. Each symbol and signature resolves its handles in its own project on first read and keeps the nodes. The handles stay available as declarationHandles, valueDeclarationHandle and declarationHandle. A program's checker and its symbols belong to the same project, so the nodes are the ones the facade returned. The frontend's 432 calls of the three facade methods become property reads, and the methods and their caches go.