MCPcopy
hub / github.com/BishopFox/jsluice / content

Function content

tree.go:501–506  ·  view source on GitHub ↗

content returns the source for the provided tree-sitter node, checking if the node is nil first.

(n *sitter.Node, source []byte)

Source from the content-addressed store, hash-verified

499// content returns the source for the provided tree-sitter
500// node, checking if the node is nil first.
501func content(n *sitter.Node, source []byte) string {
502 if n == nil {
503 return ""
504 }
505 return n.Content(source)
506}
507
508// PrintTree returns a string representation of the syntax tree
509// for the provided JavaScript source

Callers 1

getTreeFunction · 0.85

Calls 1

ContentMethod · 0.80

Tested by

no test coverage detected