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

Function parses_no_params

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

Source from the content-addressed store, hash-verified

2190
2191 #[test]
2192 fn parses_no_params() {
2193 let text = "function test(): void {}";
2194 let info = parse_declaration_info(text);
2195 assert!(info.params.is_empty());
2196 assert_eq!(info.return_type, Some(PhpType::parse("void")));
2197 }
2198
2199 #[test]
2200 fn parses_property_type() {

Callers

nothing calls this directly

Calls 1

parse_declaration_infoFunction · 0.85

Tested by

no test coverage detected