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