extractCsharpReturnType's generics strip (`/<[^>]*>/g`) — deliberately non-nesting: `Task >` → `Task>` → the ident test fails → returnType undefined (same class of quirk as rust; PRESERVE).
()
| 66 | /// non-nesting: `Task<List<Foo>>` → `Task>` → the ident test fails → |
| 67 | /// returnType undefined (same class of quirk as rust; PRESERVE). |
| 68 | fn 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). |
| 73 | fn ascii_ident_re() -> &'static Regex { |
| 74 | static RE: OnceLock<Regex> = OnceLock::new(); |