mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
10 lines
300 B
Plaintext
10 lines
300 B
Plaintext
import csharp
|
|
|
|
string elementToString(Element e) {
|
|
if exists(e.toString()) then result = e.toString() else result = "unknown"
|
|
}
|
|
|
|
from Call c, string target
|
|
where if exists(c.getTarget()) then target = c.getTarget().toString() else target = "none"
|
|
select c.getLocation(), elementToString(c), target
|