phpStringContent: the string's first string_content child, trimmed.
(&self, node: Node)
| 1456 | |
| 1457 | /// phpStringContent: the string's first string_content child, trimmed. |
| 1458 | fn php_string_content(&self, node: Node) -> Option<String> { |
| 1459 | for c in node.named_children(&mut node.walk()) { |
| 1460 | if c.kind() == "string_content" { |
| 1461 | return Some(self.text(c).trim().to_string()); |
| 1462 | } |
| 1463 | } |
| 1464 | None |
| 1465 | } |
| 1466 | |
| 1467 | fn push_fn_ref_cand(&mut self, from: u32, name: &str, node: Node, skip_gate: bool) { |
| 1468 | if name.is_empty() || is_stoplisted(name) { |
no test coverage detected