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

Function parse_single_file_body

tests/fixture_runner.rs:243–254  ·  view source on GitHub ↗
(body: &str)

Source from the content-addressed store, hash-verified

241}
242
243fn parse_single_file_body(body: &str) -> Result<(Vec<FixtureFile>, usize, u32, u32), String> {
244 let (content, line, char) = strip_cursor(body)?;
245 Ok((
246 vec![FixtureFile {
247 path: "test.php".to_string(),
248 content,
249 }],
250 0,
251 line,
252 char,
253 ))
254}
255
256fn parse_multi_file_body(body: &str) -> Result<(Vec<FixtureFile>, usize, u32, u32), String> {
257 let mut files = Vec::new();

Callers 1

parse_bodyFunction · 0.85

Calls 1

strip_cursorFunction · 0.70

Tested by

no test coverage detected