fix for when the concatenation root is in parentheses

This commit is contained in:
Erik Krogh Kristensen
2019-09-26 16:35:38 +02:00
parent 69365ccd03
commit 7fb8f8453d
3 changed files with 4 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ Expr leftChild(Expr e) {
}
predicate isInConcat(Expr e) {
exists(ParExpr par | par.getExpression() = e)
exists(ParExpr par | isInConcat(par) and par.getExpression() = e)
or
exists(AddExpr a | a.getAnOperand() = e)
}