Skip to content

Commit fc99de2

Browse files
authored
Introduce imports edge from IMPORT to DEPENDENCY (#1671)
1 parent db7a0f7 commit fc99de2

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • schema/src/main/scala/io/shiftleft/codepropertygraph/schema

schema/src/main/scala/io/shiftleft/codepropertygraph/schema/Hidden.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,12 @@ object Hidden extends SchemaBase {
239239
importNode.addProperty(isWildcard)
240240
importNode.addProperty(isExplicit)
241241

242+
val imports = builder
243+
.addEdgeType(name = "IMPORTS", comment = "Edge from imports to dependencies")
244+
.protoId(23663)
245+
246+
importNode.addOutEdge(edge = imports, inNode = dependency)
247+
242248
block.addOutEdge(edge = ast, inNode = importNode)
243249
file.addOutEdge(edge = ast, inNode = importNode)
244250
typeDecl.addOutEdge(edge = ast, inNode = importNode)

0 commit comments

Comments
 (0)