forked from firka/flutter
Fix typos (#121171)
* Fix typos * lowercase animated & opacity * Undo typo fix --------- Co-authored-by: Michael Goderbauer <goderbauer@google.com>
This commit is contained in:
@@ -437,7 +437,7 @@ void sanityCheckDocs([Platform platform = const LocalPlatform()]) {
|
||||
|
||||
// Check a "dartpad" example, any one will do, and check for the correct URL
|
||||
// arguments.
|
||||
// Just use "master" for any branch other than the LUCH_BRANCH.
|
||||
// Just use "master" for any branch other than the LUCI_BRANCH.
|
||||
final String? luciBranch = platform.environment['LUCI_BRANCH']?.trim();
|
||||
final String expectedBranch = luciBranch != null && luciBranch.isNotEmpty ? luciBranch : 'master';
|
||||
final List<String> argumentRegExps = <String>[
|
||||
|
||||
@@ -9,8 +9,8 @@ import 'logical_key_data.dart';
|
||||
import 'physical_key_data.dart';
|
||||
import 'utils.dart';
|
||||
|
||||
String _toUpperCammel(String lowerCammel) {
|
||||
return lowerCammel.substring(0, 1).toUpperCase() + lowerCammel.substring(1);
|
||||
String _toUpperCamel(String lowerCamel) {
|
||||
return lowerCamel.substring(0, 1).toUpperCase() + lowerCamel.substring(1);
|
||||
}
|
||||
|
||||
/// Generates the common/testing/key_codes.h based on the information in the key
|
||||
@@ -23,7 +23,7 @@ class KeyCodesCcGenerator extends BaseCodeGenerator {
|
||||
final OutputLines<int> lines = OutputLines<int>('Physical Key list');
|
||||
for (final PhysicalKeyEntry entry in keyData.entries) {
|
||||
lines.add(entry.usbHidCode, '''
|
||||
constexpr uint64_t kPhysical${_toUpperCammel(entry.constantName)} = ${toHex(entry.usbHidCode)};''');
|
||||
constexpr uint64_t kPhysical${_toUpperCamel(entry.constantName)} = ${toHex(entry.usbHidCode)};''');
|
||||
}
|
||||
return lines.sortedJoin().trimRight();
|
||||
}
|
||||
@@ -33,7 +33,7 @@ constexpr uint64_t kPhysical${_toUpperCammel(entry.constantName)} = ${toHex(entr
|
||||
final OutputLines<int> lines = OutputLines<int>('Logical Key list', behavior: DeduplicateBehavior.kSkip);
|
||||
for (final LogicalKeyEntry entry in logicalData.entries) {
|
||||
lines.add(entry.value, '''
|
||||
constexpr uint64_t kLogical${_toUpperCammel(entry.constantName)} = ${toHex(entry.value, digits: 11)};''');
|
||||
constexpr uint64_t kLogical${_toUpperCamel(entry.constantName)} = ${toHex(entry.value, digits: 11)};''');
|
||||
}
|
||||
return lines.sortedJoin().trimRight();
|
||||
}
|
||||
|
||||
@@ -9,9 +9,9 @@ import 'logical_key_data.dart';
|
||||
import 'physical_key_data.dart';
|
||||
import 'utils.dart';
|
||||
|
||||
String _toUpperSnake(String lowerCammel) {
|
||||
String _toUpperSnake(String lowerCamel) {
|
||||
// Converts 'myTVFoo' to 'myTvFoo'.
|
||||
final String trueUpperCammel = lowerCammel.replaceAllMapped(
|
||||
final String trueUpperCamel = lowerCamel.replaceAllMapped(
|
||||
RegExp(r'([A-Z]{3,})'),
|
||||
(Match match) {
|
||||
final String matched = match.group(1)!;
|
||||
@@ -20,7 +20,7 @@ String _toUpperSnake(String lowerCammel) {
|
||||
+ matched.substring(matched.length - 2, matched.length - 1);
|
||||
});
|
||||
// Converts 'myTvFoo' to 'MY_TV_FOO'.
|
||||
return trueUpperCammel.replaceAllMapped(
|
||||
return trueUpperCamel.replaceAllMapped(
|
||||
RegExp(r'([A-Z])'),
|
||||
(Match match) => '_${match.group(1)!}').toUpperCase();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user