Gets the text of a tree-sitter node from the source.
(&self, node: TsNode<'_>)
| 74 | |
| 75 | /// Gets the text of a tree-sitter node from the source. |
| 76 | fn node_text(&self, node: TsNode<'_>) -> String { |
| 77 | node.utf8_text(&self.source) |
| 78 | .unwrap_or("<invalid utf8>") |
| 79 | .to_string() |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | impl AnnotationEmitterState for ExtractionState { |
no test coverage detected