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

Issue 128003003: Fix issue with importing packages where the package name included a dot (Closed)

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

Description

Fix issue with importing packages where the package name included a dot The generated code for imports where just using the package name as the prefix. This did not work if the package name included a dot. The prefix is not generated by replacing dots with the dollar character. The dollar character is valid in Dart identifiers but not in protocol buffer package names so no name clashes should happen. R=sigmund@google.com Committed: https://github.com/dart-lang/protoc-plugin/commit/1f35d8b

Patch Set 1 #

Patch Set 2 : Update pubspec version #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -11 lines) Patch
M Makefile View 1 chunk +5 lines, -1 line 0 comments Download
M lib/code_generator.dart View 1 chunk +2 lines, -1 line 0 comments Download
M lib/enum_generator.dart View 1 chunk +1 line, -1 line 0 comments Download
M lib/extension_generator.dart View 1 chunk +1 line, -1 line 0 comments Download
M lib/file_generator.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M lib/message_generator.dart View 1 chunk +1 line, -1 line 0 comments Download
M lib/protobuf_field.dart View 3 chunks +3 lines, -3 lines 0 comments Download
M pubspec.yaml View 1 1 chunk +1 line, -1 line 0 comments Download
M test/generated_message_test.dart View 2 chunks +14 lines, -0 lines 0 comments Download
A test/protos/duplicate_names_import.proto View 1 chunk +20 lines, -0 lines 0 comments Download
A test/protos/package1.proto View 1 chunk +15 lines, -0 lines 0 comments Download
A test/protos/package2.proto View 1 chunk +15 lines, -0 lines 0 comments Download
A test/protos/package3.proto View 1 chunk +15 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Søren Gjesse
6 years, 11 months ago (2014-01-08 13:57:48 UTC) #1
Siggi Cherem (dart-lang)
lgtm! I assume these $ will be rarely seen by users, since this is just ...
6 years, 11 months ago (2014-01-08 21:35:33 UTC) #2
Søren Gjesse
On 2014/01/08 21:35:33, Siggi Cherem (dart-lang) wrote: > lgtm! > > I assume these $ ...
6 years, 11 months ago (2014-01-09 08:14:30 UTC) #3
Søren Gjesse
6 years, 11 months ago (2014-01-09 08:15:56 UTC) #4
Message was sent while issue was closed.
Committed patchset #2 manually as r1f35d8b (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698