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

Method has_function_imports

src/completion/use_edit.rs:140–142  ·  view source on GitHub ↗

Check whether the existing use block contains any `use function` imports.

(&self)

Source from the content-addressed store, hash-verified

138 /// Check whether the existing use block contains any `use function`
139 /// imports.
140 pub(crate) fn has_function_imports(&self) -> bool {
141 self.existing.iter().any(|(_, k)| Self::key_group(k) == 2)
142 }
143
144 /// Check whether the existing use block contains any class (plain
145 /// `use`) imports — i.e. imports that are neither `use function`

Callers 1

build_use_function_editFunction · 0.80

Calls 1

iterMethod · 0.80

Tested by

no test coverage detected