indexes

tcmts.core.analyze.indexes · #5nzkfodx · term · runs anywhere

A file's nodes by their index, for turning a checker's NodeHandle into the node it denotes.

import type { Node as ts_Node, SourceFile as ts_SourceFile } from "typescript/ast";

export const indexes = new WeakMap<ts_SourceFile, Map<number, ts_Node>>()

used by