Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(553)

Unified Diff: mojo/dart/packages/mojo_services/lib/mojo/net_address.mojom.dart

Issue 1529423002: Dart: Fix conversion of identifiers to lowerCamelCase. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Comments Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/dart/packages/mojo_services/lib/mojo/net_address.mojom.dart
diff --git a/mojo/dart/packages/mojo_services/lib/mojo/net_address.mojom.dart b/mojo/dart/packages/mojo_services/lib/mojo/net_address.mojom.dart
index 30d87be182fa7efff52779924880e0ae0b0e453f..d97489862f00466bd36c3e6e48ce694d8dc47f1d 100644
--- a/mojo/dart/packages/mojo_services/lib/mojo/net_address.mojom.dart
+++ b/mojo/dart/packages/mojo_services/lib/mojo/net_address.mojom.dart
@@ -11,20 +11,20 @@ import 'package:mojo/core.dart' as core;
class NetAddressFamily extends bindings.MojoEnum {
static const NetAddressFamily unspecified = const NetAddressFamily._(0);
- static const NetAddressFamily ipV4 = const NetAddressFamily._(1);
- static const NetAddressFamily ipV6 = const NetAddressFamily._(2);
+ static const NetAddressFamily ipv4 = const NetAddressFamily._(1);
+ static const NetAddressFamily ipv6 = const NetAddressFamily._(2);
const NetAddressFamily._(int v) : super(v);
static const Map<String, NetAddressFamily> valuesMap = const {
"unspecified": unspecified,
- "ipV4": ipV4,
- "ipV6": ipV6,
+ "ipv4": ipv4,
+ "ipv6": ipv6,
};
static const List<NetAddressFamily> values = const [
unspecified,
- ipV4,
- ipV6,
+ ipv4,
+ ipv6,
];
static NetAddressFamily valueOf(String name) => valuesMap[name];
@@ -34,9 +34,9 @@ class NetAddressFamily extends bindings.MojoEnum {
case 0:
return unspecified;
case 1:
- return ipV4;
+ return ipv4;
case 2:
- return ipV6;
+ return ipv6;
default:
return null;
}
@@ -56,10 +56,10 @@ class NetAddressFamily extends bindings.MojoEnum {
switch(this) {
case unspecified:
return 'NetAddressFamily.unspecified';
- case ipV4:
- return 'NetAddressFamily.ipV4';
- case ipV6:
- return 'NetAddressFamily.ipV6';
+ case ipv4:
+ return 'NetAddressFamily.ipv4';
+ case ipv6:
+ return 'NetAddressFamily.ipv6';
}
}

Powered by Google App Engine
This is Rietveld 408576698