Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5e5a57 commit 51ebc0bCopy full SHA for 51ebc0b
1 file changed
go/ql/test/library-tests/semmle/go/dataflow/CallGraph/viableCallee.ql
@@ -17,10 +17,10 @@ string metadata(Locatable l, string key) {
17
18
query predicate missingCallee(DataFlow::CallNode call, FuncDef callee) {
19
metadata(call.asExpr(), "callee") = metadata(callee, "name") and
20
- not viableCallable(call.asExpr()).getFuncDef() = callee
+ not viableCallable(call.asExpr()).asCallable().getFuncDef() = callee
21
}
22
23
query predicate spuriousCallee(DataFlow::CallNode call, FuncDef callee) {
24
- viableCallable(call.asExpr()).getFuncDef() = callee and
+ viableCallable(call.asExpr()).asCallable().getFuncDef() = callee and
25
not metadata(call.asExpr(), "callee") = metadata(callee, "name")
26
0 commit comments