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

Function has_class_keyword

src/classmap_scanner.rs:1548–1553  ·  view source on GitHub ↗
(content: &[u8])

Source from the content-addressed store, hash-verified

1546/// any of the class-like keywords.
1547#[inline]
1548fn has_class_keyword(content: &[u8]) -> bool {
1549 memmem::find(content, b"class").is_some()
1550 || memmem::find(content, b"interface").is_some()
1551 || memmem::find(content, b"trait").is_some()
1552 || memmem::find(content, b"enum").is_some()
1553}
1554
1555/// SIMD-accelerated pre-screening: check whether the content contains
1556/// any keyword relevant to symbol extraction (classes, functions,

Callers 1

find_classesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected