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

Function format_visibility

src/hover/formatting.rs:47–53  ·  view source on GitHub ↗

Format a visibility keyword.

(vis: Visibility)

Source from the content-addressed store, hash-verified

45
46/// Format a visibility keyword.
47pub(super) fn format_visibility(vis: Visibility) -> &'static str {
48 match vis {
49 Visibility::Public => "public ",
50 Visibility::Protected => "protected ",
51 Visibility::Private => "private ",
52 }
53}
54
55/// Format a parameter list using native PHP type hints only.
56///

Callers 3

hover_for_methodMethod · 0.85
hover_for_propertyMethod · 0.85
hover_for_constantMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected