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