File tree Expand file tree Collapse file tree 1 file changed +5
-15
lines changed Expand file tree Collapse file tree 1 file changed +5
-15
lines changed Original file line number Diff line number Diff 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- }
4137fn 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
You can’t perform that action at this time.
0 commit comments