MCPcopy Create free account
hub / github.com/PHPantom-dev/phpantom_lsp / parse_functions

Method parse_functions

src/parser/mod.rs:1144–1146  ·  view source on GitHub ↗

Parse PHP source text and extract standalone function definitions. Returns a list of `FunctionInfo` for every `function` declaration found at the top level (or inside a namespace block).

(&self, content: &str)

Source from the content-addressed store, hash-verified

1142 /// Returns a list of `FunctionInfo` for every `function` declaration
1143 /// found at the top level (or inside a namespace block).
1144 pub fn parse_functions(&self, content: &str) -> Vec<FunctionInfo> {
1145 self.parse_functions_versioned(content, None)
1146 }
1147
1148 /// Version-aware variant of [`parse_functions`].
1149 ///

Calls 1