mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
use set literal instead of big disjunction of literals
This commit is contained in:
@@ -8,15 +8,10 @@ import python
|
||||
import DefinitionTracking
|
||||
|
||||
predicate uniqueness_error(int number, string what, string problem) {
|
||||
(
|
||||
what = "toString" or
|
||||
what = "getLocation" or
|
||||
what = "getNode" or
|
||||
what = "getDefinition" or
|
||||
what = "getEntryNode" or
|
||||
what = "getOrigin" or
|
||||
what = "getAnInferredType"
|
||||
) and
|
||||
what in [
|
||||
"toString", "getLocation", "getNode", "getDefinition", "getEntryNode", "getOrigin",
|
||||
"getAnInferredType"
|
||||
] and
|
||||
(
|
||||
number = 0 and problem = "no results for " + what + "()"
|
||||
or
|
||||
|
||||
Reference in New Issue
Block a user