phpStringContent: the string's first string_content child, trimmed.
(&self, node: Node)
| 1312 | |
| 1313 | /// phpStringContent: the string's first string_content child, trimmed. |
| 1314 | fn php_string_content(&self, node: Node) -> Option<String> { |
| 1315 | for i in 0..node.named_child_count() { |
| 1316 | let Some(c) = node.named_child(i) else { continue }; |
| 1317 | if c.kind() == "string_content" { |
| 1318 | return Some(self.text(c).trim().to_string()); |
| 1319 | } |
| 1320 | } |
| 1321 | None |
| 1322 | } |
| 1323 | |
| 1324 | fn push_fn_ref_cand(&mut self, from: u32, name: &str, node: Node, skip_gate: bool) { |
| 1325 | if name.is_empty() || is_stoplisted(name) { |
no test coverage detected