|
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
|
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
|
Total messages: 4 (0 generated)
|