Skip to content

Commit 32a7cd4

Browse files
committed
fully support save statement
1 parent 32d3d6b commit 32a7cd4

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/fortran/ofp/XMLPrinter.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,13 @@ public void save_stmt(Token label, Token keyword, Token eos, boolean hasSavedEnt
761761
super.save_stmt(label, keyword, eos, hasSavedEntityList);
762762
}
763763

764+
public void saved_entity(Token id, boolean isCommonBlockName) {
765+
contextOpen("name");
766+
super.saved_entity(id, isCommonBlockName);
767+
setAttribute("id", id);
768+
contextClose();
769+
}
770+
764771
public void target_decl_list__begin() {
765772
if (!context.getTagName().equals("declaration"))
766773
contextOpen("declaration");

src/fortran/ofp/XMLPrinterBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ static public void addListContext(String eventNamePrefix, String listName, Strin
113113
addListContext("pointer-decl", "names", null);
114114
/*
115115
addListContext("cray-pointer-assoc", "", "");
116-
addListContext("saved-entity", "", "");
117116
*/
117+
addListContext("saved-entity", "names", "name");
118118
// addListContext("target-decl", null, null); // currently not necessary
119119
/*
120120
addListContext("implicit-spec", "", "");

0 commit comments

Comments
 (0)