MCPcopy Create free account
hub / github.com/microsoft/typescript-go / GetNodeIndexTable

Function GetNodeIndexTable

internal/api/encoder/encoder.go:391–393  ·  view source on GitHub ↗
(sourceFile *ast.SourceFile)

Source from the content-addressed store, hash-verified

389}
390
391func GetNodeIndexTable(sourceFile *ast.SourceFile) *NodeIndexTable {
392 return ast.GetOrComputeSourceFileData(sourceFile, nodeIndexTableKey, BuildNodeIndexTable)
393}
394
395// EncodeSourceFile encodes an entire source file AST into the binary format.
396// Returns the encoded bytes and a NodeIndexTable mapping encoder indices to AST nodes.

Callers 2

nodeHandleFromMethod · 0.92
resolveNodeHandleMethod · 0.92

Calls 1

Tested by

no test coverage detected