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

Unified Diff: test/protos/mixins.proto

Issue 2150323002: Add dart options for override annotations. (Closed) Base URL: https://github.com/dart-lang/dart-protoc-plugin.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « test/protos/dart_options.proto ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/protos/mixins.proto
diff --git a/test/protos/mixins.proto b/test/protos/mixins.proto
index 48352a82f1cd99992bff597f0c868c80a24721f8..9395e525b4670cd316443459aab9f6fa4ce678f4 100644
--- a/test/protos/mixins.proto
+++ b/test/protos/mixins.proto
@@ -8,8 +8,8 @@ option (dart_options.imports) = {
import_from: "package:protoc_plugin/testing/mixins.dart"
},
{
- name: "Mixin2"
- import_from: "package:protoc_plugin/testing/mixins.dart"
+ name: "Mixin2"
+ import_from: "package:protoc_plugin/testing/mixins.dart"
},
{
name: "Mixin3"
@@ -25,17 +25,27 @@ message NoMixinPB {
}
message Mixin1PB {
- optional string interface_string = 1;
+ optional string interface_string = 1 [
+ (dart_options.override_getter) = true,
+ (dart_options.override_setter) = true,
+ (dart_options.override_has_method) = true
+ ];
}
message Mixin2PB {
option (dart_options.mixin) = "Mixin2";
- optional string overridden_has_method = 3;
+ optional string overridden_has_method = 3 [
+ (dart_options.override_has_method) = true
+ ];
}
message Mixin3PB {
option (dart_options.mixin) = "Mixin3";
- optional string interface_string = 1;
+ optional string interface_string = 1 [
+ (dart_options.override_getter) = true,
+ (dart_options.override_setter) = true,
+ (dart_options.override_has_method) = true
+ ];
}
« no previous file with comments | « test/protos/dart_options.proto ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698