Skip to content

Commit f935ce5

Browse files
committed
Modify the script writing method to pass CI detection
1 parent 23234fb commit f935ce5

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

example/java/CallChainWithSignature.gdl

+5-15
Original file line numberDiff line numberDiff line change
@@ -34,22 +34,12 @@ fn checkCallable(c: Callable)-> bool {
3434

3535

3636
// Do an upward search
37-
// Search upwards for the end condition, and restrict some properties of the end node
38-
fn callerLimit(c: Callable) -> bool {
39-
return false
40-
}
4137
fn getAncestorCallerEndWithLimit(c: Callable) -> *Callable {
42-
// If the current function has been limited
43-
if (callerLimit(c)) {
44-
yield c
45-
}
46-
if (!callerLimit(c)) {
47-
// Get the calling function of the current functio
48-
yield c.getCaller()
49-
// The current node is multiple layers above, and recursive calls are required to obtain all calling functions
50-
for (tmp in c.getCaller()) {
51-
yield getAncestorCallerEndWithLimit(tmp)
52-
}
38+
// Get the calling function of the current functio
39+
yield c.getCaller()
40+
// The current node is multiple layers above, and recursive calls are required to obtain all calling functions
41+
for (tmp in c.getCaller()) {
42+
yield getAncestorCallerEndWithLimit(tmp)
5343
}
5444
}
5545

0 commit comments

Comments
 (0)