Gets the text of a tree-sitter node from the source.
(&self, node: TsNode<'_>)
| 64 | |
| 65 | /// Gets the text of a tree-sitter node from the source. |
| 66 | fn node_text(&self, node: TsNode<'_>) -> String { |
| 67 | node.utf8_text(&self.source) |
| 68 | .unwrap_or("<invalid utf8>") |
| 69 | .to_string() |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | impl ZigExtractor { |
no outgoing calls
no test coverage detected