mirror of
https://github.com/github/codeql.git
synced 2026-05-04 13:15:21 +02:00
convert the ruby ApiGraphs to use IPA labels
This commit is contained in:
@@ -59,9 +59,8 @@ string getAPath(API::Node node, int length) {
|
||||
length = 0 and
|
||||
result = ""
|
||||
or
|
||||
exists(API::Node pred, string lbl, string predpath |
|
||||
exists(API::Node pred, API::Label::ApiLabel lbl, string predpath |
|
||||
pred.getASuccessor(lbl) = node and
|
||||
lbl != "" and
|
||||
predpath = getAPath(pred, length - 1) and
|
||||
exists(string dot | if length = 1 then dot = "" else dot = "." |
|
||||
result = predpath + dot + lbl and
|
||||
|
||||
Reference in New Issue
Block a user