Skip to content

Commit

Permalink
[Schema Validation] Fixed incorrect CONDITION check under `withArgE…
Browse files Browse the repository at this point in the history
…dges` (#3514)

Fixed issue where `CONDITION` edge was being checked instead of `ARGUMENT`
  • Loading branch information
DavidBakerEffendi authored Aug 16, 2023
1 parent d61e71c commit fabf155
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,11 @@ case class Ast(
}

def withArgEdges(src: NewNode, dsts: Seq[NewNode], argIndexStart: Int): Ast = {
dsts.foreach(dst => Ast.neighbourValidation(src, dst, EdgeTypes.CONDITION))
var index = argIndexStart
this.copy(argEdges = argEdges ++ dsts.map { dst =>
addArgumentIndex(dst, index)
index += 1
Ast.neighbourValidation(src, dst, EdgeTypes.ARGUMENT)
AstEdge(src, dst)
})
}
Expand Down

0 comments on commit fabf155

Please sign in to comment.