mirror of
https://github.com/github/codeql.git
synced 2025-12-21 19:26:31 +01:00
Fix review findings, add DB scheme for comments
This commit is contained in:
@@ -152,9 +152,6 @@ fun <T> fakeLabel(): Label<T> {
|
||||
}
|
||||
|
||||
class KotlinFileExtractor(val logger: FileLogger, val tw: FileTrapWriter, val file: IrFile) {
|
||||
|
||||
private val commentExtractor: CommentExtractor = CommentExtractor(logger, tw, file, this)
|
||||
|
||||
val fileClass by lazy {
|
||||
extractFileClass(file)
|
||||
}
|
||||
@@ -164,10 +161,9 @@ class KotlinFileExtractor(val logger: FileLogger, val tw: FileTrapWriter, val fi
|
||||
val pkgId = extractPackage(pkg)
|
||||
tw.writeCupackage(id, pkgId)
|
||||
file.declarations.map { extractDeclaration(it, Optional.empty()) }
|
||||
commentExtractor.extract()
|
||||
CommentExtractor(this).extract()
|
||||
}
|
||||
|
||||
|
||||
fun extractFileClass(f: IrFile): Label<out DbClass> {
|
||||
val fileName = f.fileEntry.name
|
||||
val pkg = f.fqName.asString()
|
||||
|
||||
Reference in New Issue
Block a user