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

Unified Diff: lib/protobuf_field.dart

Issue 128003003: Fix issue with importing packages where the package name included a dot (Closed) Base URL: https://github.com/dart-lang/dart-protoc-plugin.git@master
Patch Set: Update pubspec version Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/message_generator.dart ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/protobuf_field.dart
diff --git a/lib/protobuf_field.dart b/lib/protobuf_field.dart
index bb2f6cc49d21b7001f61085fc271042eba2a9b79..fb0d564115260bc7c6d3f9e643a6e537e0a9974d 100644
--- a/lib/protobuf_field.dart
+++ b/lib/protobuf_field.dart
@@ -267,7 +267,7 @@ class ProtobufField {
typePackage = groupType.package;
baseType = groupType.classname;
typeString = write(groupType.classname);
- prefixedBaseType = groupType.package + '.' + baseType;
+ prefixedBaseType = groupType.packageImportPrefix + '.' + baseType;
prefixedTypeString = write(prefixedBaseType);
codedStreamType = 'Group';
} else {
@@ -282,7 +282,7 @@ class ProtobufField {
typePackage = messageType.package;
baseType = messageType.classname;
typeString = write(baseType);
- prefixedBaseType = messageType.package + '.' + baseType;
+ prefixedBaseType = messageType.packageImportPrefix + '.' + baseType;
prefixedTypeString = write(prefixedBaseType);
codedStreamType = 'Message';
} else {
@@ -298,7 +298,7 @@ class ProtobufField {
baseType = enumType.classname;
typeString = write(enumType.classname);
codedStreamType = 'Enum';
- prefixedBaseType = enumType.package + '.' + baseType;
+ prefixedBaseType = enumType.packageImportPrefix + '.' + baseType;
prefixedTypeString = write(prefixedBaseType);
packable = true;
if (!repeats) {
« no previous file with comments | « lib/message_generator.dart ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698