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

Issue 40343003: Default handling of name conflicts when generating classes (Closed)

Created:
7 years, 2 months ago by Søren Gjesse
Modified:
7 years, 2 months ago
CC:
reviews_dartlang.org
Base URL:
https://github.com/dart-lang/dart-protoc-plugin.git@master
Visibility:
Public.

Description

Default handling of name conflicts when generating classes Whenever there is an identifier conflict when generating classes a new name is generated by appending the field number. This is done repeatedly until there is no conflict. R=sigmund@google.com BUG= Committed: https://github.com/dart-lang/protoc-plugin/commit/bdba84f

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+360 lines, -5 lines) Patch
M Makefile View 1 chunk +2 lines, -1 line 0 comments Download
M lib/message_generator.dart View 1 4 chunks +42 lines, -4 lines 0 comments Download
M test/all_tests.dart View 1 2 chunks +2 lines, -0 lines 0 comments Download
M test/generated_message_test.dart View 1 2 chunks +126 lines, -0 lines 0 comments Download
A test/protos/reserved_names.proto View 1 chunk +139 lines, -0 lines 0 comments Download
A test/reserved_names_test.dart View 1 1 chunk +49 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Søren Gjesse
7 years, 2 months ago (2013-10-24 16:37:56 UTC) #1
Siggi Cherem (dart-lang)
lgtm, with some suggestions below. A couple general questions about breaking changes: - if we ...
7 years, 2 months ago (2013-10-24 17:04:21 UTC) #2
Søren Gjesse
https://chromiumcodereview.appspot.com/40343003/diff/1/lib/message_generator.dart File lib/message_generator.dart (right): https://chromiumcodereview.appspot.com/40343003/diff/1/lib/message_generator.dart#newcode66 lib/message_generator.dart:66: "extensionsAreInitialized", "mergeFromMessage", "mergeUnknownFields"]); On 2013/10/24 17:04:21, Siggi Cherem (dart-lang) ...
7 years, 2 months ago (2013-10-25 09:02:20 UTC) #3
Søren Gjesse
7 years, 2 months ago (2013-10-25 09:03:06 UTC) #4
Message was sent while issue was closed.
Committed patchset #2 manually as rbdba84f (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698