MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / php_use_alias_re

Function php_use_alias_re

codegraph-kernel/src/php.rs:1655–1658  ·  view source on GitHub ↗

`/\s+as\s+/i`, the alias split of a `use` clause. The text is collapsed to single spaces first, so ASCII `\s` reads it the same; ASCII case-insensitive, as JS `/i` without `u` is.

()

Source from the content-addressed store, hash-verified

1653/// to single spaces first, so ASCII `\s` reads it the same; ASCII
1654/// case-insensitive, as JS `/i` without `u` is.
1655fn php_use_alias_re() -> &'static Regex {
1656 static RE: OnceLock<Regex> = OnceLock::new();
1657 RE.get_or_init(|| Regex::new(r"(?i-u)\s+as\s+").unwrap())
1658}
1659
1660/// `s` without its prefix `p` when `s` starts with `p` in any ASCII letter
1661/// case (JS `/^p/i`).

Callers 1

php_use_shadows_dirnameFunction · 0.85

Calls 1

unwrapMethod · 0.60

Tested by

no test coverage detected