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

Function symbol_info_nullable_property

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

Source from the content-addressed store, hash-verified

1232
1233#[test]
1234fn symbol_info_nullable_property() {
1235 let content = concat!(
1236 "<?php\nclass Foo {\n",
1237 " /**\n",
1238 " * @\n",
1239 " */\n",
1240 " protected ?int $count = 0;\n",
1241 "}\n",
1242 );
1243 let pos = Position {
1244 line: 3,
1245 character: 8,
1246 };
1247 let info = extract_symbol_info(content, pos);
1248 assert_eq!(info.type_hint, Some(PhpType::parse("?int")));
1249}
1250
1251#[test]
1252fn symbol_info_readonly_property() {

Callers

nothing calls this directly

Calls 1

extract_symbol_infoFunction · 0.85

Tested by

no test coverage detected