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

Function is_magic_method

src/completion/builder.rs:219–221  ·  view source on GitHub ↗

Check whether a method name is a PHP magic method that should be excluded from completion results.

(name: &str)

Source from the content-addressed store, hash-verified

217/// Check whether a method name is a PHP magic method that should be
218/// excluded from completion results.
219fn is_magic_method(name: &str) -> bool {
220 MAGIC_METHODS.iter().any(|&m| m.eq_ignore_ascii_case(name))
221}
222
223/// Format a parameter list into a display string.
224///

Callers 1

build_completion_itemsFunction · 0.85

Calls 1

iterMethod · 0.80

Tested by

no test coverage detected