mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
22 lines
625 B
Plaintext
22 lines
625 B
Plaintext
import csharp
|
|
|
|
private class ConstructorInitializerTarget extends Constructor {
|
|
override predicate hasLocationInfo(
|
|
string filepath, int startline, int startcolumn, int endline, int endcolumn
|
|
) {
|
|
if this.fromSource()
|
|
then this.getLocation().hasLocationInfo(filepath, startline, startcolumn, endline, endcolumn)
|
|
else (
|
|
filepath = "" and
|
|
startline = 0 and
|
|
startcolumn = 0 and
|
|
endline = 0 and
|
|
endcolumn = 0
|
|
)
|
|
}
|
|
}
|
|
|
|
from Constructor c, ConstructorInitializer i, ConstructorInitializerTarget target
|
|
where c.getInitializer() = i and target = i.getTarget()
|
|
select c, i, target
|