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

Function is_upper_camel

codegraph-kernel/src/dart.rs:107–113  ·  view source on GitHub ↗

The UpperCamel test of isDartTypeName (`/^[_$]*[A-Z]/`) — how Dart writes a type, `_Private` and `$Generated` ones included.

(text: &str)

Source from the content-addressed store, hash-verified

105/// The UpperCamel test of isDartTypeName (`/^[_$]*[A-Z]/`) — how Dart writes
106/// a type, `_Private` and `$Generated` ones included.
107fn 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

Callers 3

is_type_name_dartMethod · 0.85

Calls 2

mapMethod · 0.80
nextMethod · 0.80

Tested by

no test coverage detected