Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89eae24 commit 16a27f5Copy full SHA for 16a27f5
1 file changed
java/kotlin-extractor/src/main/kotlin/KotlinFileExtractor.kt
@@ -50,6 +50,15 @@ open class KotlinFileExtractor(
50
val pkgId = extractPackage(pkg)
51
tw.writeHasLocation(id, locId)
52
tw.writeCupackage(id, pkgId)
53
+
54
+ val exceptionOnFile = System.getenv("CODEQL_KOTLIN_INTERNAL_EXCEPTION_WHILE_EXTRACTING_FILE")
55
+ if(exceptionOnFile != null) {
56
+ @OptIn(kotlin.ExperimentalStdlibApi::class) // Annotation required by kotlin versions < 1.5
57
+ if(exceptionOnFile.lowercase() == file.name.lowercase()) {
58
+ throw Exception("Internal testing exception")
59
+ }
60
61
62
file.declarations.map { extractDeclaration(it) }
63
CommentExtractor(this, file, tw.fileId).extract()
64
}
0 commit comments