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

Function php_use_alias_re

codegraph-kernel/src/php.rs:1687–1690  ·  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

1685/// to single spaces first, so ASCII `\s` reads it the same; ASCII
1686/// case-insensitive, as JS `/i` without `u` is.
1687fn php_use_alias_re() -> &'static Regex {
1688 static RE: OnceLock<Regex> = OnceLock::new();
1689 RE.get_or_init(|| Regex::new(r"(?i-u)\s+as\s+").unwrap())
1690}
1691
1692/// `s` without its prefix `p` when `s` starts with `p` in any ASCII letter
1693/// case (JS `/^p/i`).

Callers 1

php_use_shadows_dirnameFunction · 0.85

Calls 1

unwrapMethod · 0.60

Tested by

no test coverage detected