Files
codeql/csharp/ql/test/library-tests/standalone/errorrecovery/ErrorCalls.ql
2018-08-02 17:53:23 +01:00

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