extractCsharpReturnType's trailing-nullable strip (`/\?+$/`).
()
| 59 | |
| 60 | /// extractCsharpReturnType's trailing-nullable strip (`/\?+$/`). |
| 61 | fn trailing_nullable_re() -> &'static Regex { |
| 62 | static RE: OnceLock<Regex> = OnceLock::new(); |
| 63 | RE.get_or_init(|| Regex::new(r"\?+$").unwrap()) |
| 64 | } |
| 65 | /// extractCsharpReturnType's generics strip (`/<[^>]*>/g`) — deliberately |
| 66 | /// non-nesting: `Task<List<Foo>>` → `Task>` → the ident test fails → |
| 67 | /// returnType undefined (same class of quirk as rust; PRESERVE). |