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

Function ascii_ident_re

codegraph-kernel/src/swift.rs:85–88  ·  view source on GitHub ↗

`/^[A-Za-z_]\w*$/` with JS's ASCII `\w`.

()

Source from the content-addressed store, hash-verified

83
84/// `/^[A-Za-z_]\w*$/` with JS's ASCII `\w`.
85fn ascii_ident_re() -> &'static Regex {
86 static RE: OnceLock<Regex> = OnceLock::new();
87 RE.get_or_init(|| Regex::new(r"^[A-Za-z_][0-9A-Za-z_]*$").unwrap())
88}
89/// getReturnType's generics strip (`/<[^>]*>/g`) — non-nesting (rust-class quirk).
90fn generic_args_re() -> &'static Regex {
91 static RE: OnceLock<Regex> = OnceLock::new();

Callers 1

return_type_ofMethod · 0.70

Calls 1

unwrapMethod · 0.60

Tested by

no test coverage detected