Index: pkg/analysis_server/tool/spec/codegen_java.dart |
diff --git a/pkg/analysis_server/tool/spec/codegen_java.dart b/pkg/analysis_server/tool/spec/codegen_java.dart |
index f5edfbf13ad76bf8454d432d35a9bc80fda1539b..805d06a789560ce3f2d442919f50fb7aa08f4c3d 100644 |
--- a/pkg/analysis_server/tool/spec/codegen_java.dart |
+++ b/pkg/analysis_server/tool/spec/codegen_java.dart |
@@ -19,7 +19,7 @@ import 'to_html.dart'; |
*/ |
GeneratedFile javaGeneratedFile( |
String path, CodegenJavaVisitor createVisitor(Api api)) { |
- return new GeneratedFile(path, (String pkgPath) { |
+ return new GeneratedFile(path, (String pkgPath) async { |
CodegenJavaVisitor visitor = createVisitor(readApi(pkgPath)); |
return visitor.collectCode(visitor.visitApi); |
}); |