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

Function simple_callable_re

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

String-callable simple-name shape (`/^[A-Za-z_][A-Za-z0-9_]*$/`).

()

Source from the content-addressed store, hash-verified

93}
94/// String-callable simple-name shape (`/^[A-Za-z_][A-Za-z0-9_]*$/`).
95fn simple_callable_re() -> &'static Regex {
96 static RE: OnceLock<Regex> = OnceLock::new();
97 RE.get_or_init(|| Regex::new(r"^[A-Za-z_][A-Za-z0-9_]*$").unwrap())
98}
99/// String-callable qualified shape (`/^\w+::\w+$/`, JS ASCII `\w`).
100fn qualified_callable_re() -> &'static Regex {
101 static RE: OnceLock<Regex> = OnceLock::new();

Callers 1

Calls 1

unwrapMethod · 0.60

Tested by

no test coverage detected