mirror of
https://github.com/github/codeql.git
synced 2026-04-26 09:15:12 +02:00
Java's regular strings are formatted as they appear in source, but we don't easily have this information available in Kotlin. During annotation extraction however it guesses a source rendering because the source is not necessarily available. By formatting to match the annotation extractor, we prepare to ensure consistency with a Java database when extracting annotations as seen by Kotlin.
7 lines
220 B
Plaintext
7 lines
220 B
Plaintext
import java
|
|
|
|
from Literal l, int len
|
|
where len = l.getValue().length() and l.getFile().isSourceFile()
|
|
select l.getLocation(), len, l.getValue().prefix(5) + "..." + l.getValue().suffix(len - 5),
|
|
l.getPrimaryQlClasses()
|