Content returns the source code for a particular node.
()
| 46 | |
| 47 | // Content returns the source code for a particular node. |
| 48 | func (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 |
no outgoing calls
no test coverage detected