Adjust descriptor renderer to latest parsing changes

- `constructor` keyword expected in primary constructor with non-empty modifier list
- annotation list should be preceeded by '@'
This commit is contained in:
Denis Zharkov
2015-05-18 16:18:55 +03:00
parent dd14b36921
commit 5297b4974f
31 changed files with 45 additions and 44 deletions
@@ -559,7 +559,7 @@ public class DescriptorRendererImpl implements DescriptorRenderer {
// remove last whitespace
annotationsBuilder.setLength(annotationsBuilder.length() - 1);
builder.append("[");
builder.append("@[");
builder.append(annotationsBuilder);
builder.append("] ");
}
@@ -1013,6 +1013,7 @@ public class DescriptorRendererImpl implements DescriptorRenderer {
builder.append(" ");
renderAnnotations(primaryConstructor, builder, true);
renderVisibility(primaryConstructor.getVisibility(), builder);
builder.append("constructor");
renderValueParameters(primaryConstructor, builder);
}
}