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

Function hint_kind_is_parameter

tests/integration/inlay_hints.rs:94–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92
93#[tokio::test]
94async fn hint_kind_is_parameter() {
95 let backend = create_test_backend();
96 let uri = Url::parse("file:///test/inlay.php").unwrap();
97 let text = r#"<?php
98function foo(string $bar): void {}
99foo('hello');
100"#;
101
102 let hints = inlay_hints_for(&backend, &uri, text).await;
103 assert_eq!(hints.len(), 1);
104 assert_eq!(hints[0].kind, Some(InlayHintKind::PARAMETER));
105}
106
107// ─── Suppression: variable name matches parameter name ──────────────────────
108

Callers

nothing calls this directly

Calls 3

create_test_backendFunction · 0.85
inlay_hints_forFunction · 0.85
unwrapMethod · 0.45

Tested by

no test coverage detected