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

Function has_any_keyword

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

Source from the content-addressed store, hash-verified

1557/// constants).
1558#[inline]
1559fn has_any_keyword(content: &[u8]) -> bool {
1560 memmem::find(content, b"class").is_some()
1561 || memmem::find(content, b"interface").is_some()
1562 || memmem::find(content, b"trait").is_some()
1563 || memmem::find(content, b"enum").is_some()
1564 || memmem::find(content, b"function").is_some()
1565 || memmem::find(content, b"define").is_some()
1566 || memmem::find(content, b"const").is_some()
1567}
1568
1569/// Check if a character is a valid boundary (not part of an identifier).
1570#[inline]

Callers 1

find_symbolsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected