extractDartReturnType's `<...>` strip (`/<[^>]*>/g`).
()
| 98 | } |
| 99 | /// extractDartReturnType's `<...>` strip (`/<[^>]*>/g`). |
| 100 | fn angle_args_re() -> &'static Regex { |
| 101 | static RE: OnceLock<Regex> = OnceLock::new(); |
| 102 | RE.get_or_init(|| Regex::new(r"<[^>]*>").unwrap()) |
| 103 | } |
| 104 | |
| 105 | /// The UpperCamel test of isDartTypeName (`/^[_$]*[A-Z]/`) — how Dart writes |
| 106 | /// a type, `_Private` and `$Generated` ones included. |