MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / php_string_content

Method php_string_content

codegraph-kernel/src/php.rs:1325–1333  ·  view source on GitHub ↗

phpStringContent: the string's first string_content child, trimmed.

(&self, node: Node)

Source from the content-addressed store, hash-verified

1323
1324 /// phpStringContent: the string's first string_content child, trimmed.
1325 fn php_string_content(&self, node: Node) -> Option<String> {
1326 for i in 0..node.named_child_count() {
1327 let Some(c) = node.named_child(i) else { continue };
1328 if c.kind() == "string_content" {
1329 return Some(self.text(c).trim().to_string());
1330 }
1331 }
1332 None
1333 }
1334
1335 fn push_fn_ref_cand(&mut self, from: u32, name: &str, node: Node, skip_gate: bool) {
1336 if name.is_empty() || is_stoplisted(name) {

Callers 1

Calls 1

textMethod · 0.65

Tested by

no test coverage detected