The UpperCamel test of isDartTypeName (`/^[_$]*[A-Z]/`) — how Dart writes a type, `_Private` and `$Generated` ones included.
(text: &str)
| 105 | /// The UpperCamel test of isDartTypeName (`/^[_$]*[A-Z]/`) — how Dart writes |
| 106 | /// a type, `_Private` and `$Generated` ones included. |
| 107 | fn is_upper_camel(text: &str) -> bool { |
| 108 | text.trim_start_matches(&['_', '$'][..]) |
| 109 | .chars() |
| 110 | .next() |
| 111 | .map(|c| c.is_ascii_uppercase()) |
| 112 | .unwrap_or(false) |
| 113 | } |
| 114 | |
| 115 | /// DART_BODILESS_CTORS (dart.ts) — `const Foo.bar();` and a redirecting |
| 116 | /// factory `const factory Foo.bar() = _Bar;`, each a signature kind of its |
no test coverage detected