Render period on identifiers

This commit is contained in:
Grahame Grieve 2022-10-21 16:25:19 +11:00
parent 41950eeb0a
commit 993a28acbb
1 changed files with 13 additions and 2 deletions

View File

@ -1109,8 +1109,19 @@ public class DataRenderer extends Renderer {
s = "id: "+s;
}
if (ii.hasUse())
s = s + " ("+ii.getUse().toString()+")";
if (ii.hasUse() || ii.hasPeriod()) {
s = s + "(";
if (ii.hasUse()) {
s = s + "use: "+ii.getUse().toString();
}
if (ii.hasUse() && ii.hasPeriod()) {
s = s + ", ";
}
if (ii.hasPeriod()) {
s = s + "period: "+displayPeriod(ii.getPeriod());
}
s = s + ")";
}
return s;
}