示例代码如下:
foo 调用了funcB,查看funcB 被哪些函数调用。
def funcB(a) { return a * 2 } def foo(a) { return 1 + funcByName(a) } select name from defs() where userDefined = true, each(x -> funcByName(x).string(), name) like "%funcB%"
示例代码如下:
foo 调用了funcB,查看funcB 被哪些函数调用。
def funcB(a) { return a * 2 } def foo(a) { return 1 + funcByName(a) } select name from defs() where userDefined = true, each(x -> funcByName(x).string(), name) like "%funcB%"