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

Function simple_ident_re

codegraph-kernel/src/go.rs:33–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31 RE.get_or_init(|| Regex::new(r"\(\s*(?:[A-Za-z_]\w*\s+)?\*?\s*([A-Za-z_]\w*)").unwrap())
32}
33fn simple_ident_re() -> &'static Regex {
34 static RE: OnceLock<Regex> = OnceLock::new();
35 RE.get_or_init(|| Regex::new(r"^[A-Za-z_]\w*$").unwrap())
36}
37fn go_two_hop_re() -> &'static Regex {
38 static RE: OnceLock<Regex> = OnceLock::new();
39 RE.get_or_init(|| Regex::new(r"^[A-Za-z_]\w*\.[A-Za-z_]\w*$").unwrap())

Callers 1

return_type_ofMethod · 0.70

Calls 1

unwrapMethod · 0.60

Tested by

no test coverage detected