Enable parser test for wildcard imports
MOE_MIGRATED_REVID=137057384
diff --git a/java/com/google/turbine/tree/Pretty.java b/java/com/google/turbine/tree/Pretty.java
index ec51232..582d2d9 100644
--- a/java/com/google/turbine/tree/Pretty.java
+++ b/java/com/google/turbine/tree/Pretty.java
@@ -226,15 +226,10 @@
}
for (Tree.ImportDecl i : compUnit.imports()) {
i.accept(this, null);
- printLine();
}
- boolean first = true;
for (Tree.TyDecl decl : compUnit.decls()) {
- if (!first) {
- printLine();
- }
+ printLine();
decl.accept(this, null);
- first = false;
}
return null;
}
@@ -245,7 +240,11 @@
if (importDecl.stat()) {
append("static ");
}
- append(Joiner.on('.').join(importDecl.type())).append(";").append('\n');
+ append(Joiner.on('.').join(importDecl.type()));
+ if (importDecl.wild()) {
+ append(".*");
+ }
+ append(";").append('\n');
return null;
}
diff --git a/javatests/com/google/turbine/parse/ParserIntegrationTest.java b/javatests/com/google/turbine/parse/ParserIntegrationTest.java
index 5a75071..d045289 100644
--- a/javatests/com/google/turbine/parse/ParserIntegrationTest.java
+++ b/javatests/com/google/turbine/parse/ParserIntegrationTest.java
@@ -57,8 +57,7 @@
"class6.input",
"class7.input",
"enum1.input",
- // TODO(cushon): wildcard import
- // "import1.input",
+ "import1.input",
"member1.input",
"member2.input",
"member3.input",