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

Method Content

tree.go:48–53  ·  view source on GitHub ↗

Content returns the source code for a particular node.

()

Source from the content-addressed store, hash-verified

46
47// Content returns the source code for a particular node.
48func (n *Node) Content() string {
49 if n.node == nil {
50 return ""
51 }
52 return n.node.Content(n.source)
53}
54
55// Type returns the tree-sitter type string for a Node.
56// E.g. string, object, call_expression. If the node is

Callers 12

RawStringMethod · 0.95
DecodedStringMethod · 0.95
AsGoTypeMethod · 0.95
AsNumberMethod · 0.95
FormatMethod · 0.95
IsStringyMethod · 0.95
matchJQueryFunction · 0.80
contentFunction · 0.80
AllURLMatchersFunction · 0.80
matchXHRFunction · 0.80
mainFunction · 0.80
runQueryFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected