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

Function member_value_re

codegraph-kernel/src/csharp.rs:79–82  ·  view source on GitHub ↗

A method group's `receiver.Member` (function-ref.ts member_access_expression): `/^[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)+$/` with JS's ASCII `\w`.

()

Source from the content-addressed store, hash-verified

77/// A method group's `receiver.Member` (function-ref.ts member_access_expression):
78/// `/^[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)+$/` with JS's ASCII `\w`.
79fn member_value_re() -> &'static Regex {
80 static RE: OnceLock<Regex> = OnceLock::new();
81 RE.get_or_init(|| Regex::new(r"^[A-Za-z_][0-9A-Za-z_]*(?:\.[A-Za-z_][0-9A-Za-z_]*)+$").unwrap())
82}
83/// `/^[A-Za-z_]\w*$/` with JS's ASCII `\w` (Rust's default `\w` is Unicode).
84fn ascii_ident_re() -> &'static Regex {
85 static RE: OnceLock<Regex> = OnceLock::new();

Callers 1

Calls 1

unwrapMethod · 0.60

Tested by

no test coverage detected