MCPcopy Index your code
hub / github.com/microsoft/typescript-go / DecodeNodes

Function DecodeNodes

internal/api/encoder/decoder.go:45–51  ·  view source on GitHub ↗

DecodeNodes decodes binary-encoded AST data into a tree of *ast.Node objects.

(data []byte)

Source from the content-addressed store, hash-verified

43
44// DecodeNodes decodes binary-encoded AST data into a tree of *ast.Node objects.
45func DecodeNodes(data []byte) (*ast.Node, error) {
46 d, err := newASTDecoder(data)
47 if err != nil {
48 return nil, err
49 }
50 return d.decode()
51}
52
53func newASTDecoder(data []byte) (*astDecoder, error) {
54 if len(data) < HeaderSize {

Callers 3

handlePrintNodeMethod · 0.92
DecodeSourceFileFunction · 0.85

Calls 2

newASTDecoderFunction · 0.85
decodeMethod · 0.65

Tested by 1