Skip to content

Commit

Permalink
Update cpg-core/src/main/kotlin/de/fraunhofer/aisec/cpg/graph/Node.kt
Browse files Browse the repository at this point in the history
Co-authored-by: Selina Lin <[email protected]>
  • Loading branch information
KuechA and seelchen authored Jul 17, 2023
1 parent a0bc4a0 commit 8237d6c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,9 @@ open class Node : IVisitable<Node>, Persistable, LanguageProvider, ScopeProvider
}

fun addPrevCDG(prev: Node) {
prevCDGEdges.add(PropertyEdge(this, prev))
prev.nextCDGEdges.add(PropertyEdge(prev, this))
val edge = PropertyEdge(prev, this)
prevCDGEdges.add(edge)
prev.nextCDGEdges.add(edge)
}

fun addAllPrevDFG(prev: Collection<Node>) {
Expand Down

0 comments on commit 8237d6c

Please sign in to comment.