Skip to content

Commit 32d3d6b

Browse files
committed
add missing declaration type to save and interface declarations
1 parent 55064ee commit 32d3d6b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/fortran/ofp/XMLPrinter.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -757,6 +757,7 @@ public void pointer_decl(Token id, boolean hasSpecList) {
757757
public void save_stmt(Token label, Token keyword, Token eos, boolean hasSavedEntityList) {
758758
if (!context.getTagName().equals("declaration"))
759759
contextOpen("declaration");
760+
setAttribute("type", "save");
760761
super.save_stmt(label, keyword, eos, hasSavedEntityList);
761762
}
762763

@@ -2154,6 +2155,7 @@ public void interface_stmt(Token label, Token abstractToken, Token keyword, Toke
21542155
public void end_interface_stmt(Token label, Token kw1, Token kw2, Token eos, boolean hasGenericSpec) {
21552156
contextCloseAllInner("interface");
21562157
super.end_interface_stmt(label, kw1, kw2, eos, hasGenericSpec);
2158+
setAttribute("type", "interface");
21572159
contextClose();
21582160
}
21592161

0 commit comments

Comments
 (0)