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

Side by Side Diff: test/protos/mixins.proto

Issue 2086253002: Allow application of external mixins to generated dart protos. (Closed) Base URL: https://github.com/dart-lang/dart-protoc-plugin.git@master
Patch Set: Add support for mixins in protos. 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 unified diff | Download patch
OLDNEW
(Empty)
1 syntax = "proto2";
2
3 import "dart_options.proto";
4
5 option (dart_options.mixins) = {
6 name: "Mixin1"
7 import_from: "package:protoc_plugin/testing/mixins.dart"
8 };
9 option (dart_options.mixins) = {
10 name: "Mixin2"
11 import_from: "package:protoc_plugin/testing/mixins.dart"
12 };
13
14 option (dart_options.default_mixin) = "Mixin1";
15
16 message NoMixinPB {
17 option (dart_options.mixin) = "";
18 }
19
20 message Mixin1PB {
21 optional string interface_string = 1;
22
23 optional string overridden_string = 2 [
24 (dart_options.override) = true
25 ];
26 }
27
28 message Mixin2PB {
29 option (dart_options.mixin) = "Mixin2";
30
31 optional string overridden_has_method = 3 [
32 (dart_options.override) = true
33 ];
34 }
OLDNEW
« test/protos/dart_options.proto ('K') | « test/protos/dart_options.proto ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698