Files
codeql/csharp/ql/test/library-tests/standalone/errorrecovery/ErrorCalls.ql
2018-12-20 10:19:59 +01:00

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