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

Function short_name

src/diagnostics/invalid_class_kind.rs:422–424  ·  view source on GitHub ↗

Extract the short name from a potentially namespaced class name.

(name: &str)

Source from the content-addressed store, hash-verified

420
421/// Extract the short name from a potentially namespaced class name.
422fn short_name(name: &str) -> &str {
423 name.rsplit('\\').next().unwrap_or(name)
424}
425
426#[cfg(test)]
427mod tests {

Calls 1

nextMethod · 0.80

Tested by

no test coverage detected