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

Function symbol_info_no_params

tests/unit/phpdoc_internals.rs:1316–1331  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1314
1315#[test]
1316fn symbol_info_no_params() {
1317 let content = concat!(
1318 "<?php\n",
1319 "/**\n",
1320 " * @\n",
1321 " */\n",
1322 "function now(): DateTimeImmutable {}\n",
1323 );
1324 let pos = Position {
1325 line: 2,
1326 character: 4,
1327 };
1328 let info = extract_symbol_info(content, pos);
1329 assert!(info.params.is_empty());
1330 assert_eq!(info.return_type, Some(PhpType::parse("DateTimeImmutable")));
1331}
1332
1333// ── find_existing_param_tags ─────────────────────────────────────
1334

Callers

nothing calls this directly

Calls 1

extract_symbol_infoFunction · 0.85

Tested by

no test coverage detected