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

Unified Diff: lib/code_generator.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 | « Makefile ('k') | lib/enum_generator.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/code_generator.dart
diff --git a/lib/code_generator.dart b/lib/code_generator.dart
index 1539ae483e43472dbe211863d6a8a0d128229074..07dc93117fa6a8acf5c101548c4cbb87363d6555 100644
--- a/lib/code_generator.dart
+++ b/lib/code_generator.dart
@@ -8,9 +8,10 @@ abstract class ProtobufContainer {
String get package;
String get classname;
String get fqname;
+ String get packageImportPrefix => package.replaceAll('.', r'$');
}
-class CodeGenerator implements ProtobufContainer {
+class CodeGenerator extends ProtobufContainer {
final Stream<List<int>> _streamIn;
final IOSink _streamOut;
final IOSink _streamErr;
« no previous file with comments | « Makefile ('k') | lib/enum_generator.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698