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

Function format_native_params

src/hover/formatting.rs:59–61  ·  view source on GitHub ↗

Format a parameter list using native PHP type hints only. Used inside `<?php` code blocks so the displayed declaration matches what the actual PHP source code looks like.

(params: &[ParameterInfo])

Source from the content-addressed store, hash-verified

57/// Used inside `<?php` code blocks so the displayed declaration matches
58/// what the actual PHP source code looks like.
59pub(super) fn format_native_params(params: &[ParameterInfo]) -> String {
60 format_params_inner(params, true)
61}
62
63/// Shared implementation for parameter formatting.
64///

Callers 3

hover_for_methodMethod · 0.85
build_trait_summary_bodyFunction · 0.85
hover_for_functionFunction · 0.85

Calls 1

format_params_innerFunction · 0.85

Tested by

no test coverage detected