mirror of
https://github.com/github/codeql.git
synced 2026-05-22 23:27:09 +02:00
KE2: Start on KotlinFileExtractor
This commit is contained in:
@@ -528,8 +528,11 @@ OLD: KE1
|
||||
fileDiagnosticTrapWriter.getDiagnosticTrapWriter()
|
||||
)
|
||||
val linesOfCode = LinesOfCode(logger, sftw, srcFile)
|
||||
*/
|
||||
val fileExtractor =
|
||||
KotlinFileExtractor(
|
||||
/*
|
||||
OLD: KE1
|
||||
logger,
|
||||
sftw,
|
||||
linesOfCode,
|
||||
@@ -540,8 +543,11 @@ OLD: KE1
|
||||
pluginContext,
|
||||
KotlinFileExtractor.DeclarationStack(),
|
||||
globalExtensionState
|
||||
*/
|
||||
)
|
||||
|
||||
/*
|
||||
OLD: KE1
|
||||
fileExtractor.extractFileContents(srcFile, sftw.fileId)
|
||||
externalDeclExtractor.extractExternalClasses()
|
||||
*/
|
||||
|
||||
@@ -68,8 +68,11 @@ import org.jetbrains.kotlin.name.FqName
|
||||
import org.jetbrains.kotlin.types.Variance
|
||||
import org.jetbrains.kotlin.util.OperatorNameConventions
|
||||
import org.jetbrains.kotlin.utils.addToStdlib.firstIsInstanceOrNull
|
||||
*/
|
||||
|
||||
open class KotlinFileExtractor(
|
||||
/*
|
||||
OLD: KE1
|
||||
override val logger: FileLogger,
|
||||
override val tw: FileTrapWriter,
|
||||
val linesOfCode: LinesOfCode?,
|
||||
@@ -80,6 +83,10 @@ open class KotlinFileExtractor(
|
||||
pluginContext: IrPluginContext,
|
||||
val declarationStack: DeclarationStack,
|
||||
globalExtensionState: KotlinExtractorGlobalState,
|
||||
*/
|
||||
) {
|
||||
/*
|
||||
OLD: KE1
|
||||
) :
|
||||
KotlinUsesExtractor(
|
||||
logger,
|
||||
@@ -9209,5 +9216,5 @@ open class KotlinFileExtractor(
|
||||
ENUM_CONSTRUCTOR_ARGUMENT(12),
|
||||
CALLABLE_CLASS(13),
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user