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

Function build_callable_label

src/completion/builder.rs:255–257  ·  view source on GitHub ↗

Build a label showing a callable name and its parameter names. Works for both methods and standalone functions. Example: `regularCode($text, $frogs = ...)`

(name: &str, params: &[ParameterInfo])

Source from the content-addressed store, hash-verified

253///
254/// Example: `regularCode($text, $frogs = ...)`
255pub(crate) fn build_callable_label(name: &str, params: &[ParameterInfo]) -> String {
256 format!("{}({})", name, format_param_list(params))
257}
258
259/// Build the label showing the method name and parameter names.
260///

Callers 2

build_method_labelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected