We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13675c4 commit 2be73c0Copy full SHA for 2be73c0
1 file changed
go/ql/lib/semmle/go/Expr.qll
@@ -2043,6 +2043,7 @@ class ConstantName extends ValueName {
2043
override string getAPrimaryQlClass() { result = "ConstantName" }
2044
}
2045
2046
+/** Holds if `e` is an expression that refers to the `nil` constant. */
2047
predicate exprRefersToNil(Expr e) { e.(ConstantName).getTarget() = Builtin::nil() }
2048
2049
/**
0 commit comments