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