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

Unified Diff: pkg/analyzer_plugin/tool/spec/codegen_protocol_common.dart

Issue 2890163004: Add requestTime to responses (Closed)
Patch Set: Created 3 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
Index: pkg/analyzer_plugin/tool/spec/codegen_protocol_common.dart
diff --git a/pkg/analyzer_plugin/tool/spec/codegen_protocol_common.dart b/pkg/analyzer_plugin/tool/spec/codegen_protocol_common.dart
index 08bfb70f06242217929b4a6659627ca5c0c735f8..3733f5b4ecb9b54d0785ccb27c4389328a53603a 100644
--- a/pkg/analyzer_plugin/tool/spec/codegen_protocol_common.dart
+++ b/pkg/analyzer_plugin/tool/spec/codegen_protocol_common.dart
@@ -11,12 +11,14 @@ import 'codegen_dart_protocol.dart';
import 'from_html.dart';
import 'implied_types.dart';
-final GeneratedFile target =
+GeneratedFile target(bool responseRequiresRequestTime) =>
new GeneratedFile('lib/protocol/protocol_common.dart', (String pkgPath) {
- CodegenCommonVisitor visitor =
- new CodegenCommonVisitor(path.basename(pkgPath), readApi(pkgPath));
- return visitor.collectCode(visitor.visitApi);
-});
+ CodegenCommonVisitor visitor = new CodegenCommonVisitor(
+ path.basename(pkgPath),
+ responseRequiresRequestTime,
+ readApi(pkgPath));
+ return visitor.collectCode(visitor.visitApi);
+ });
/**
* A visitor that produces Dart code defining the common types associated with
@@ -28,7 +30,9 @@ class CodegenCommonVisitor extends CodegenProtocolVisitor {
* given [packageName] corresponding to the types in the given [api] that are
* common to multiple protocols.
*/
- CodegenCommonVisitor(String packageName, Api api) : super(packageName, api);
+ CodegenCommonVisitor(
+ String packageName, bool responseRequiresRequestTime, Api api)
+ : super(packageName, responseRequiresRequestTime, api);
@override
void emitImports() {
« no previous file with comments | « pkg/analyzer_plugin/tool/spec/codegen_dart_protocol.dart ('k') | pkg/analyzer_plugin/tool/spec/generate_all.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698