mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
We are no longer bound to the platform-specific directories, so simplify the test organization. If you don't want this change, just skip merging this PR. It's purely optional. I kept the platform-specific directories around under `kotlin`, but you could also easily merge all these together if you find them unhelpful. I'll leave that change to you.
16 lines
453 B
Plaintext
16 lines
453 B
Plaintext
import java
|
|
|
|
class ClassOrInterfaceLocation extends ClassOrInterface {
|
|
override predicate hasLocationInfo(string path, int sl, int sc, int el, int ec) {
|
|
exists(string fullPath | super.hasLocationInfo(fullPath, sl, sc, el, ec) |
|
|
if exists(this.getFile().getRelativePath())
|
|
then path = fullPath
|
|
else path = fullPath.regexpReplaceAll(".*/", "<external>/")
|
|
)
|
|
}
|
|
}
|
|
|
|
from Method m
|
|
where m.fromSource()
|
|
select m, m.getAParamType()
|