Skip to content

Commit

Permalink
замена Tree на Parse Tree
Browse files Browse the repository at this point in the history
  • Loading branch information
asosnoviy committed Jun 23, 2021
1 parent 1d83e80 commit c2319e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/clouds42/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
import de.vandermeer.asciitable.AsciiTable;
import de.vandermeer.asciitable.CWC_LongestLine;
import org.antlr.v4.runtime.Token;
import org.antlr.v4.runtime.tree.ParseTree;
import org.antlr.v4.runtime.tree.TerminalNodeImpl;
import org.antlr.v4.runtime.tree.Tree;
import org.antlr.v4.runtime.tree.Trees;
import org.apache.commons.lang3.Range;
import org.slf4j.Logger;
Expand Down Expand Up @@ -187,7 +187,7 @@ private static void addCoverageData(Map<URI, Map<BigDecimal, Integer>> coverageD
coverageData.put(uri, coverMap);
}

private static boolean mustCovered(Tree node) {
private static boolean mustCovered(ParseTree node) {
return (node instanceof BSLParser.StatementContext
&& Trees.getChildren(node).stream().noneMatch(parseTree ->
parseTree instanceof BSLParser.PreprocessorContext
Expand Down

0 comments on commit c2319e5

Please sign in to comment.