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

Function symbol_info_readonly_property

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

Source from the content-addressed store, hash-verified

1250
1251#[test]
1252fn symbol_info_readonly_property() {
1253 let content = concat!(
1254 "<?php\nclass Foo {\n",
1255 " /**\n",
1256 " * @\n",
1257 " */\n",
1258 " public readonly string $name;\n",
1259 "}\n",
1260 );
1261 let pos = Position {
1262 line: 3,
1263 character: 8,
1264 };
1265 let info = extract_symbol_info(content, pos);
1266 assert_eq!(info.type_hint, Some(PhpType::parse("string")));
1267}
1268
1269#[test]
1270fn symbol_info_variadic_param() {

Callers

nothing calls this directly

Calls 1

extract_symbol_infoFunction · 0.85

Tested by

no test coverage detected