mirror of
https://github.com/github/codeql.git
synced 2026-04-27 09:45:15 +02:00
17 lines
312 B
Plaintext
17 lines
312 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
|