mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
18 lines
431 B
Plaintext
18 lines
431 B
Plaintext
import javascript
|
|
|
|
query predicate test_query8(
|
|
ObjectExpr oe, string res0, Property p1, string res1, Property p2, string res2
|
|
) {
|
|
exists(int i, int j |
|
|
p1 = oe.getProperty(i) and
|
|
p2 = oe.getProperty(j) and
|
|
i < j and
|
|
p1.getName() = p2.getName() and
|
|
not oe.getTopLevel().isMinified()
|
|
|
|
|
res0 = "Property " + p1.getName() + " is defined both $@ and $@." and
|
|
res1 = "here" and
|
|
res2 = "here"
|
|
)
|
|
}
|