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

Function owner_name_suffix

src/hover/formatting.rs:281–287  ·  view source on GitHub ↗

Return the suffix after the owner name for backed enums (e.g. `": string"`). Returns an empty string for non-enums and unit enums.

(owner: &ClassInfo)

Source from the content-addressed store, hash-verified

279///
280/// Returns an empty string for non-enums and unit enums.
281pub(super) fn owner_name_suffix(owner: &ClassInfo) -> String {
282 if let Some(ref bt) = owner.backed_type {
283 format!(": {}", bt)
284 } else {
285 String::new()
286 }
287}
288
289/// Build a PHP code block wrapping a member inside its owning class,
290/// with an optional single-line `/** @var ... */` annotation above it.

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