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

Issue 1196293003: Initial support for generating client and server stubs for Dart. (Closed)

Created:
5 years, 6 months ago by wibling
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

Patch Set 1 #

Total comments: 4

Patch Set 2 : review feedback #

Patch Set 3 : Add Server/ClientContext in protoc-plugin #

Patch Set 4 : don't import dart:async if no services #

Total comments: 8

Patch Set 5 : update from ProtobufClient to RpcClient #

Patch Set 6 : lowercase first letter of method name #

Patch Set 7 : don't lowercase method name in request #

Patch Set 8 : brian's changes #

Patch Set 9 : adddressing nits #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+404 lines, -12 lines) Patch
M Makefile View 1 2 3 4 5 6 7 3 chunks +3 lines, -0 lines 0 comments Download
A lib/client_generator.dart View 1 2 3 4 5 6 7 1 chunk +56 lines, -0 lines 0 comments Download
M lib/file_generator.dart View 1 2 3 4 5 6 7 4 chunks +20 lines, -2 lines 0 comments Download
M lib/indenting_writer.dart View 1 chunk +6 lines, -2 lines 0 comments Download
M lib/protoc.dart View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
A lib/service_generator.dart View 1 2 3 4 5 6 7 8 1 chunk +95 lines, -0 lines 0 comments Download
M pubspec.yaml View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M test/all_tests.dart View 1 2 3 4 5 6 7 1 chunk +12 lines, -6 lines 0 comments Download
A test/client_generator_test.dart View 1 2 3 4 5 6 7 1 chunk +63 lines, -0 lines 0 comments Download
A test/protos/service.proto View 1 2 3 4 5 6 7 1 chunk +13 lines, -0 lines 0 comments Download
A test/service_generator_test.dart View 1 2 3 4 5 6 7 1 chunk +68 lines, -0 lines 0 comments Download
A test/service_test.dart View 1 2 3 4 5 6 7 8 1 chunk +64 lines, -0 lines 2 comments Download

Messages

Total messages: 11 (1 generated)
wibling
5 years, 6 months ago (2015-06-23 11:13:19 UTC) #2
Søren Gjesse
https://chromiumcodereview.appspot.com/1196293003/diff/1/lib/client_generator.dart File lib/client_generator.dart (right): https://chromiumcodereview.appspot.com/1196293003/diff/1/lib/client_generator.dart#newcode21 lib/client_generator.dart:21: : '${parent.classname}_${descriptor.name}', Can services be nested? If so please ...
5 years, 6 months ago (2015-06-23 12:08:31 UTC) #3
wibling
Thanks for the review. Updated diff. https://chromiumcodereview.appspot.com/1196293003/diff/1/lib/client_generator.dart File lib/client_generator.dart (right): https://chromiumcodereview.appspot.com/1196293003/diff/1/lib/client_generator.dart#newcode21 lib/client_generator.dart:21: : '${parent.classname}_${descriptor.name}', On ...
5 years, 6 months ago (2015-06-23 13:26:35 UTC) #4
Søren Gjesse
lgtm https://chromiumcodereview.appspot.com/1196293003/diff/60001/lib/client_generator.dart File lib/client_generator.dart (right): https://chromiumcodereview.appspot.com/1196293003/diff/60001/lib/client_generator.dart#newcode36 lib/client_generator.dart:36: out.println('ProtobufClient _client;'); We could just make this 'var' ...
5 years, 6 months ago (2015-06-24 09:08:03 UTC) #5
skybrian
Apparently I missed actually sending these. The API is not right. Let's roll back and ...
5 years, 6 months ago (2015-06-24 16:16:30 UTC) #6
skybrian
Hi, I made the changes for wire protocol independence myself. I'm unable to upload the ...
5 years, 6 months ago (2015-06-24 23:57:23 UTC) #7
wibling
PTAL, now with Brian's changes and nits addressed
5 years, 6 months ago (2015-06-25 12:50:51 UTC) #8
Søren Gjesse
LGTM Let's land this! https://chromiumcodereview.appspot.com/1196293003/diff/160001/test/service_test.dart File test/service_test.dart (right): https://chromiumcodereview.appspot.com/1196293003/diff/160001/test/service_test.dart#newcode11 test/service_test.dart:11: Future<pb.SearchResponse> search(ServerContext ctx, pb.SearchRequest request) ...
5 years, 6 months ago (2015-06-25 13:04:49 UTC) #9
wibling
Landing. https://chromiumcodereview.appspot.com/1196293003/diff/160001/test/service_test.dart File test/service_test.dart (right): https://chromiumcodereview.appspot.com/1196293003/diff/160001/test/service_test.dart#newcode11 test/service_test.dart:11: Future<pb.SearchResponse> search(ServerContext ctx, pb.SearchRequest request) async { On ...
5 years, 6 months ago (2015-06-25 13:10:05 UTC) #10
wibling
5 years, 6 months ago (2015-06-25 13:10:44 UTC) #11
Message was sent while issue was closed.
Committed patchset #9 (id:160001) manually as
f33e6e8a92f9220cd952c807d61dcacc128f311a (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698