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

Function parses_reference_param

src/completion/phpdoc/generation.rs:2170–2178  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2168
2169 #[test]
2170 fn parses_reference_param() {
2171 let text = "function test(array &$data): void {}";
2172 let info = parse_declaration_info(text);
2173 assert_eq!(info.params.len(), 1);
2174 assert_eq!(
2175 info.params[0],
2176 (Some(PhpType::parse("array")), "$data".to_string())
2177 );
2178 }
2179
2180 #[test]
2181 fn parses_param_with_default() {

Callers

nothing calls this directly

Calls 1

parse_declaration_infoFunction · 0.85

Tested by

no test coverage detected