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

Function generic_angle_re

codegraph-kernel/src/rustlang.rs:63–66  ·  view source on GitHub ↗

JS `/<[^>]*>/g` — the non-nested generic strip (breaks on nested generics by design: `Result , E>` → `Result, E>` → returnType undefined).

()

Source from the content-addressed store, hash-verified

61/// JS `/<[^>]*>/g` — the non-nested generic strip (breaks on nested generics
62/// by design: `Result<Vec<Foo>, E>` → `Result, E>` → returnType undefined).
63fn generic_angle_re() -> &'static Regex {
64 static RE: OnceLock<Regex> = OnceLock::new();
65 RE.get_or_init(|| Regex::new(r"<[^>]*>").unwrap())
66}
67/// JS `/^[A-Za-z_]\w*$/` (ASCII \w — the regex crate's \w is Unicode).
68fn simple_ident_re() -> &'static Regex {
69 static RE: OnceLock<Regex> = OnceLock::new();

Callers 1

return_type_ofMethod · 0.70

Calls 1

unwrapMethod · 0.60

Tested by

no test coverage detected