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