File tree 1 file changed +5
-15
lines changed
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 {
34
34
35
35
36
36
// 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
- }
41
37
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)
53
43
}
54
44
}
55
45
You can’t perform that action at this time.
0 commit comments