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

Function generic_args_re

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

extractCsharpReturnType's generics strip (`/<[^>]*>/g`) — deliberately non-nesting: `Task >` → `Task>` → the ident test fails → returnType undefined (same class of quirk as rust; PRESERVE).

()

Source from the content-addressed store, hash-verified

66/// non-nesting: `Task<List<Foo>>` → `Task>` → the ident test fails →
67/// returnType undefined (same class of quirk as rust; PRESERVE).
68fn generic_args_re() -> &'static Regex {
69 static RE: OnceLock<Regex> = OnceLock::new();
70 RE.get_or_init(|| Regex::new(r"<[^>]*>").unwrap())
71}
72/// `/^[A-Za-z_]\w*$/` with JS's ASCII `\w` (Rust's default `\w` is Unicode).
73fn ascii_ident_re() -> &'static Regex {
74 static RE: OnceLock<Regex> = OnceLock::new();

Callers 1

return_type_ofMethod · 0.70

Calls 1

unwrapMethod · 0.60

Tested by

no test coverage detected