File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
src/sonar-sql-plugin/src/main/java/org/antlr/sql/sca/nodes Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 88import org .antlr .v4 .runtime .Token ;
99import org .antlr .v4 .runtime .tree .ParseTree ;
1010import org .antlr .v4 .runtime .tree .TerminalNode ;
11- import org .sonar . api . internal . apachecommons . lang .StringUtils ;
11+ import org .apache . commons . lang3 .StringUtils ;
1212
1313public class ParseTreeNode implements IParsedNode {
1414
1515 private ParseTree tree ;
16+
1617 public int getDistance () {
1718 return distance ;
1819 }
@@ -170,9 +171,10 @@ public IParsedNode getControlFlowParent() {
170171 if (parent1 instanceof org .antlr .sql .dialects .tsql .TSqlParser .Cfl_statementContext ) {
171172 return new ParseTreeNode (parent1 , distance , 1 , -1 );
172173 }
173- /*if (parent1 instanceof org.antlr.sql.dialects.mysql.MySqlParser.) {
174- return new ParseTreeNode(parent1, distance, 1, -1);
175- }*/
174+ /*
175+ * if (parent1 instanceof org.antlr.sql.dialects.mysql.MySqlParser.) { return
176+ * new ParseTreeNode(parent1, distance, 1, -1); }
177+ */
176178 parent1 = parent1 .getParent ();
177179 }
178180 return null ;
You can’t perform that action at this time.
0 commit comments