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

Unified Diff: test/protos/dart_options.proto

Issue 2043913005: Change how to set the Dart name of a field (Closed) Base URL: git@github.com:dart-lang/dart-protoc-plugin.git@master
Patch Set: better error checking, clean up pubspec Created 4 years, 6 months 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
« test/names_test.dart ('K') | « test/protos/dart_name.proto ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/protos/dart_options.proto
diff --git a/test/protos/dart_options.proto b/test/protos/dart_options.proto
index aa9942ef069bde67407eac0a0727f78c94f2c62b..7a16d818606f5a865c456b856ee29380b84ec3e5 100644
--- a/test/protos/dart_options.proto
+++ b/test/protos/dart_options.proto
@@ -25,3 +25,10 @@ extend google.protobuf.MessageOptions {
// The empty string can be used to turn off mixins for this message.
optional string mixin = 96128839;
}
+
+extend google.protobuf.FieldOptions {
+
+ // Uses the given name for getters, setters and as suffixes for has/clear
+ // methods in the generated Dart file. Should be lowerCamelCase.
+ optional string dart_name = 28700919;
+}
« test/names_test.dart ('K') | « test/protos/dart_name.proto ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698