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() { |