Skip to content

Commit b160c47

Browse files
Merge branch 'dev' of https://github.com/sqlparser/gsp_demo_java into dev
2 parents 678feaa + 76f3c1d commit b160c47

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/demos/visitors/xmlVisitor.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6056,6 +6056,12 @@ public void preVisit( TLoopStmt stmt )
60566056
break;
60576057
case TLoopStmt.for_loop :
60586058
e_stmt = xmldoc.createElement( "for_loop_statement" );
6059+
if (stmt.getLower_bound() != null){
6060+
e_stmt.setAttribute("lower_bound",stmt.getLower_bound().toString());
6061+
}
6062+
if (stmt.getUpper_bound() != null){
6063+
e_stmt.setAttribute("upper_bound",stmt.getUpper_bound().toString());
6064+
}
60596065
break;
60606066
case TLoopStmt.while_loop :
60616067
e_stmt = xmldoc.createElement( "while_statement" );

0 commit comments

Comments
 (0)