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

Method nodeField

internal/api/encoder/decoder.go:107–109  ·  view source on GitHub ↗

nodeField reads a uint32 field from node i at the given field offset.

(i int, field int)

Source from the content-addressed store, hash-verified

105
106// nodeField reads a uint32 field from node i at the given field offset.
107func (d *astDecoder) nodeField(i int, field int) uint32 {
108 return readLE32(d.raw, int(d.nodeOff)+i*NodeSize+field)
109}
110
111func (d *astDecoder) getString(idx uint32) string {
112 offBase := int(d.strTable) + int(idx)*4

Callers 3

collectChildrenMethod · 0.95
decodeMethod · 0.95

Calls 2

readLE32Function · 0.85
intInterface · 0.50

Tested by

no test coverage detected