(text: String)
| 423 | } |
| 424 | |
| 425 | fn clean_identifier(text: String) -> String { |
| 426 | let trimmed = text.trim(); |
| 427 | if (trimmed.starts_with('"') && trimmed.ends_with('"')) |
| 428 | || (trimmed.starts_with('\'') && trimmed.ends_with('\'')) |
| 429 | || (trimmed.starts_with('`') && trimmed.ends_with('`')) |
| 430 | { |
| 431 | trimmed[1..trimmed.len().saturating_sub(1)].to_string() |
| 432 | } else { |
| 433 | trimmed.to_string() |
| 434 | } |
| 435 | } |
| 436 | |
| 437 | fn node_text(node: Node, source: &str) -> String { |
| 438 | let start = node.start_byte(); |
no outgoing calls
no test coverage detected