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

Unified Diff: lib/code_generator.dart

Issue 2020483002: clean up API for file_generator.dart (Closed) Base URL: git@github.com:dart-lang/dart-protoc-plugin.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | lib/file_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 92561a43d97385b7efe5df6605e33c2d00f865e8..2f3f92cc664804641c815f533e1c35013cfbf53a 100644
--- a/lib/code_generator.dart
+++ b/lib/code_generator.dart
@@ -65,9 +65,7 @@ class CodeGenerator extends ProtobufContainer {
for (var gen in generators) {
var name = gen._fileDescriptor.name;
if (request.fileToGenerate.contains(name)) {
- response.file.add(gen.generateResponse(config));
- response.file.add(gen.generateEnumResponse(config));
- response.file.add(gen.generateJsonDartResponse(config));
+ response.file.addAll(gen.generateFiles(config));
}
}
_streamOut.add(response.writeToBuffer());
« no previous file with comments | « no previous file | lib/file_generator.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698