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

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: Revert pubspec-yaml to require 0.5.2, forgot that in the last upload 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 unified diff | Download patch
OLDNEW
(Empty)
1 syntax = "proto2";
2
3 import "dart_options.proto";
4
5 option (dart_options.imported_mixins) = {
6 mixins: [{
skybrian 2016/06/28 00:13:08 The bad news is that this syntax for initializing
7 name: "Mixin1"
8 import_from: "package:protoc_plugin/testing/mixins.dart"
9 },
10 {
11 name: "Mixin2"
12 import_from: "package:protoc_plugin/testing/mixins.dart"
13 },
14 {
15 name: "Mixin3"
16 import_from: "package:protoc_plugin/testing/mixins.dart"
17 parent: "Mixin1"
18 }];
19 };
20
21 option (dart_options.default_mixin) = "Mixin1";
22
23 message NoMixinPB {
24 option (dart_options.mixin) = "";
25 }
26
27 message Mixin1PB {
28 optional string interface_string = 1;
29 }
30
31 message Mixin2PB {
32 option (dart_options.mixin) = "Mixin2";
33
34 optional string overridden_has_method = 3;
35 }
36
37 message Mixin3PB {
38 option (dart_options.mixin) = "Mixin3";
39
40 optional string interface_string = 1;
41 }
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