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

Issue 1192943003: changes for 0.3.9 (Closed)

Created:
5 years, 6 months ago by skybrian
Modified:
5 years, 6 months ago
CC:
reviews_dartlang.org
Base URL:
https://github.com/dart-lang/dart-protoc-plugin.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

changes for 0.3.9 - Modify dart_options support so that it supports alternate mixins. - Move the experimental map implementation to PbMapMixin For now, new mixins can only be added using a patch: - add the new class to the protobuf library - add the class to the list in mixin.dart. R=sgjesse@google.com, sigmund@google.com Committed: https://github.com/dart-lang/dart-protoc-plugin/commit/8195898175228cb9fcd10856ededc39e3664d77b

Patch Set 1 #

Total comments: 11

Patch Set 2 : made mixins more general #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -165 lines) Patch
M lib/code_generator.dart View 1 2 chunks +8 lines, -2 lines 0 comments Download
M lib/file_generator.dart View 1 5 chunks +43 lines, -20 lines 3 comments Download
M lib/message_generator.dart View 1 8 chunks +27 lines, -100 lines 0 comments Download
M lib/protoc.dart View 1 1 chunk +2 lines, -0 lines 0 comments Download
A lib/src/dart_options.pb.dart View 1 1 chunk +17 lines, -0 lines 0 comments Download
M pubspec.yaml View 1 chunk +2 lines, -2 lines 0 comments Download
M test/map_test.dart View 2 chunks +0 lines, -31 lines 0 comments Download
M test/message_generator_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M test/protos/dart_options.proto View 1 chunk +8 lines, -6 lines 0 comments Download
M test/protos/map_api.proto View 1 chunk +1 line, -1 line 0 comments Download
M test/protos/map_api2.proto View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (2 generated)
skybrian
Requires corresponding change to protobuf library https://chromiumcodereview.appspot.com/1196773004 The idea is that we will experiment with ...
5 years, 6 months ago (2015-06-20 00:56:55 UTC) #1
skybrian
5 years, 6 months ago (2015-06-22 17:17:52 UTC) #3
Søren Gjesse
lgtm https://chromiumcodereview.appspot.com/1192943003/diff/1/lib/code_generator.dart File lib/code_generator.dart (right): https://chromiumcodereview.appspot.com/1192943003/diff/1/lib/code_generator.dart#newcode37 lib/code_generator.dart:37: var request = new CodeGeneratorRequest.fromBuffer(bytes, extensions); Long line. ...
5 years, 6 months ago (2015-06-22 18:29:38 UTC) #5
Siggi Cherem (dart-lang)
lgtm too, some minor suggestions belo https://chromiumcodereview.appspot.com/1192943003/diff/1/lib/mixin.dart File lib/mixin.dart (right): https://chromiumcodereview.appspot.com/1192943003/diff/1/lib/mixin.dart#newcode5 lib/mixin.dart:5: part of protoc; ...
5 years, 6 months ago (2015-06-22 19:38:57 UTC) #6
skybrian
https://chromiumcodereview.appspot.com/1192943003/diff/1/lib/code_generator.dart File lib/code_generator.dart (right): https://chromiumcodereview.appspot.com/1192943003/diff/1/lib/code_generator.dart#newcode37 lib/code_generator.dart:37: var request = new CodeGeneratorRequest.fromBuffer(bytes, extensions); On 2015/06/22 18:29:38, ...
5 years, 6 months ago (2015-06-23 02:21:26 UTC) #7
Søren Gjesse
lgtm https://chromiumcodereview.appspot.com/1192943003/diff/20001/lib/file_generator.dart File lib/file_generator.dart (right): https://chromiumcodereview.appspot.com/1192943003/diff/20001/lib/file_generator.dart#newcode108 lib/file_generator.dart:108: out.println("import '${imp}' show ${symbols.join(', ')};"); This import could ...
5 years, 6 months ago (2015-06-23 06:43:33 UTC) #8
skybrian
https://chromiumcodereview.appspot.com/1192943003/diff/20001/lib/file_generator.dart File lib/file_generator.dart (right): https://chromiumcodereview.appspot.com/1192943003/diff/20001/lib/file_generator.dart#newcode108 lib/file_generator.dart:108: out.println("import '${imp}' show ${symbols.join(', ')};"); On 2015/06/23 06:43:33, Søren ...
5 years, 6 months ago (2015-06-23 17:32:42 UTC) #9
skybrian
Committed patchset #2 (id:20001) manually as 8195898175228cb9fcd10856ededc39e3664d77b (presubmit successful).
5 years, 6 months ago (2015-06-23 17:35:35 UTC) #10
Søren Gjesse
https://chromiumcodereview.appspot.com/1192943003/diff/20001/lib/file_generator.dart File lib/file_generator.dart (right): https://chromiumcodereview.appspot.com/1192943003/diff/20001/lib/file_generator.dart#newcode108 lib/file_generator.dart:108: out.println("import '${imp}' show ${symbols.join(', ')};"); On 2015/06/23 17:32:42, skybrian ...
5 years, 6 months ago (2015-06-24 07:11:27 UTC) #11
skybrian
5 years, 6 months ago (2015-06-24 18:46:53 UTC) #12
Message was sent while issue was closed.
On 2015/06/24 07:11:27, Søren Gjesse wrote:
>
https://chromiumcodereview.appspot.com/1192943003/diff/20001/lib/file_generat...
> File lib/file_generator.dart (right):
> 
>
https://chromiumcodereview.appspot.com/1192943003/diff/20001/lib/file_generat...
> lib/file_generator.dart:108: out.println("import '${imp}' show
${symbols.join(',
> ')};");
> On 2015/06/23 17:32:42, skybrian wrote:
> > On 2015/06/23 06:43:33, Søren Gjesse wrote:
> > > This import could cause name-clashes. Should these imports always be
> generated
> > > using a unique 'as' name?
> > 
> > It's a good point but I'm going to defer this, since we don't allow
arbitrary
> > mixins to be used yet.
> > 
> > Name conflicts should be very rare because the name of a mixin class usually
> > ends with "Mixin" and proto messages are unlikely to have names ending with
> > "Mixin". (I did a code search and found one example.)
> 
> Please file an issue on this.

Done, see: https://github.com/dart-lang/dart-protoc-plugin/issues/45

Powered by Google App Engine
This is Rietveld 408576698