Skip to content

Commit

Permalink
Tag library calls
Browse files Browse the repository at this point in the history
Signed-off-by: Prabhu Subramanian <[email protected]>
  • Loading branch information
prabhu committed Nov 28, 2023
1 parent 22b40ed commit 6d0e1ae
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,21 @@ class CdxPass(atom: Cpg) extends CpgPass(atom):
).newTagNode(
compPurl
).store()(dstGraph)
atom.method.fullNameExact(bpkg).callIn(
NoResolve
).newTagNode(
"library-call"
).store()(dstGraph)
atom.method.fullNameExact(bpkg).newTagNode(
compPurl
).store()(dstGraph)
if !containsRegex(bpkg) then
atom.parameter.typeFullName(s"$bpkg.*").newTagNode(
compPurl
).store()(dstGraph)
atom.parameter.typeFullName(s"$bpkg.*").newTagNode(
"framework-input"
).store()(dstGraph)
atom.parameter.typeFullName(s"$bpkg.*").method.callIn(
NoResolve
).newTagNode(
Expand All @@ -148,6 +156,11 @@ class CdxPass(atom: Cpg) extends CpgPass(atom):
).newTagNode(
compPurl
).store()(dstGraph)
atom.parameter.typeFullName(
s"${Pattern.quote(bpkg)}.*"
).newTagNode(
"framework-input"
).store()(dstGraph)
atom.parameter.typeFullName(
s"${Pattern.quote(bpkg)}.*"
).method.callIn(
Expand Down

0 comments on commit 6d0e1ae

Please sign in to comment.