Skip to content

Commit 00495bd

Browse files
committed
logging few events
1 parent 20347f2 commit 00495bd

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/fortran/ofp/XMLPrinter.java

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2269,8 +2269,10 @@ public void module_subprogram(boolean hasPrefix) {
22692269

22702270
public void use_stmt(Token label, Token useKeyword, Token id, Token onlyKeyword, Token eos, boolean hasModuleNature,
22712271
boolean hasRenameList, boolean hasOnly) {
2272-
if (context.getTagName().equals("declaration"))
2272+
if (context.getTagName().equals("declaration")) {
2273+
LOG.log(Level.FINE, "closing unclosed declaration at use_stmt id={0}", id.getText());
22732274
contextClose("declaration");
2275+
}
22742276
if (!context.getTagName().equals("use"))
22752277
contextOpen("use");
22762278
setAttribute("name", id);
@@ -2280,8 +2282,10 @@ public void use_stmt(Token label, Token useKeyword, Token id, Token onlyKeyword,
22802282
}
22812283

22822284
public void rename_list__begin() {
2283-
if (context.getTagName().equals("declaration"))
2285+
if (context.getTagName().equals("declaration")) {
2286+
LOG.log(Level.FINE, "closing unclosed declaration at rename_list__begin");
22842287
contextClose("declaration");
2288+
}
22852289
contextOpen("use");
22862290
contextOpen("rename");
22872291
if (verbosity >= 100)
@@ -2294,8 +2298,10 @@ public void rename_list(int count) {
22942298
}
22952299

22962300
public void only_list__begin() {
2297-
if (context.getTagName().equals("declaration"))
2301+
if (context.getTagName().equals("declaration")) {
2302+
LOG.log(Level.FINE, "closing unclosed declaration at only_list__begin");
22982303
contextClose("declaration");
2304+
}
22992305
contextOpen("use");
23002306
contextOpen("only");
23012307
if (verbosity >= 100)

0 commit comments

Comments
 (0)