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

Function labels

tests/integration/inlay_hints.rs:47–49  ·  view source on GitHub ↗

Collect the labels from a slice of hints.

(hints: &[&InlayHint])

Source from the content-addressed store, hash-verified

45
46/// Collect the labels from a slice of hints.
47fn labels(hints: &[&InlayHint]) -> Vec<String> {
48 hints.iter().map(|h| hint_label(h)).collect()
49}
50
51/// Find all hints at a specific line.
52fn hints_at_line(hints: &[InlayHint], line: u32) -> Vec<&InlayHint> {

Calls 3

hint_labelFunction · 0.85
iterMethod · 0.80
mapMethod · 0.45

Tested by

no test coverage detected