mirror of
https://github.com/github/codeql.git
synced 2026-05-21 22:57:11 +02:00
KE2: Start writing the actual TRAP files
This commit is contained in:
@@ -497,19 +497,18 @@ OLD: KE1
|
||||
val trapFileWriter = getTrapFileWriter(compression, logger, checkTrapIdentical, trapFileName)
|
||||
|
||||
trapFileWriter.run { trapFileBW ->
|
||||
TODO()
|
||||
/*
|
||||
OLD: KE1
|
||||
// We want our comments to be the first thing in the file,
|
||||
// so start off with a mere TrapWriter
|
||||
// so start off with a PlainTrapWriter
|
||||
val tw =
|
||||
PlainTrapWriter(
|
||||
loggerBase,
|
||||
TrapLabelManager(),
|
||||
trapFileBW,
|
||||
fileTrapWriter.getDiagnosticTrapWriter()
|
||||
fileDiagnosticTrapWriter.getDiagnosticTrapWriter()
|
||||
)
|
||||
tw.writeComment("Generated by the CodeQL Kotlin extractor for kotlin source code")
|
||||
/*
|
||||
OLD: KE1
|
||||
tw.writeComment("Part of invocation $invocationTrapFile")
|
||||
// Now elevate to a SourceFileTrapWriter, and populate the
|
||||
// file information
|
||||
@@ -523,7 +522,7 @@ OLD: KE1
|
||||
primitiveTypeMapping,
|
||||
pluginContext,
|
||||
globalExtensionState,
|
||||
fileTrapWriter.getDiagnosticTrapWriter()
|
||||
fileDiagnosticTrapWriter.getDiagnosticTrapWriter()
|
||||
)
|
||||
val linesOfCode = LinesOfCode(logger, sftw, srcFile)
|
||||
val fileExtractor =
|
||||
|
||||
@@ -299,8 +299,6 @@ OLD: KE1
|
||||
)
|
||||
}
|
||||
|
||||
/*
|
||||
OLD: KE1
|
||||
/** A `PlainTrapWriter` has no additional context of its own. */
|
||||
class PlainTrapWriter(
|
||||
loggerBase: LoggerBase,
|
||||
@@ -312,7 +310,6 @@ class PlainTrapWriter(
|
||||
return dtw
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
/**
|
||||
* A `DiagnosticTrapWriter` is a TrapWriter that diagnostics can be written to; i.e. it has
|
||||
|
||||
Reference in New Issue
Block a user