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

Method is_element_available_attr

src/parser/mod.rs:93–98  ·  view source on GitHub ↗

Check whether `attr_short_name` resolves to `PhpStormStubsElementAvailable`.

(&self, attr_short_name: &str)

Source from the content-addressed store, hash-verified

91
92 /// Check whether `attr_short_name` resolves to `PhpStormStubsElementAvailable`.
93 pub(crate) fn is_element_available_attr(&self, attr_short_name: &str) -> bool {
94 let canonical = self
95 .resolve_attr_last_segment(attr_short_name)
96 .unwrap_or(attr_short_name);
97 canonical == ATTR_ELEMENT_AVAILABLE
98 }
99
100 /// Check whether `attr_short_name` resolves to `LanguageLevelTypeAware`.
101 fn is_language_level_type_aware_attr(&self, attr_short_name: &str) -> bool {

Callers 1

Calls 1

Tested by

no test coverage detected