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

Method has_class_imports

src/completion/use_edit.rs:147–149  ·  view source on GitHub ↗

Check whether the existing use block contains any class (plain `use`) imports — i.e. imports that are neither `use function` nor `use const`.

(&self)

Source from the content-addressed store, hash-verified

145 /// `use`) imports — i.e. imports that are neither `use function`
146 /// nor `use const`.
147 pub(crate) fn has_class_imports(&self) -> bool {
148 self.existing.iter().any(|(_, k)| Self::key_group(k) == 0)
149 }
150
151 /// Check whether a `use function` import already exists whose short
152 /// name (case-insensitive) matches the given short name but whose

Callers 1

build_use_function_editFunction · 0.80

Calls 1

iterMethod · 0.80

Tested by

no test coverage detected