Beautify code a little
This commit is contained in:
committed by
Pavel Punegov
parent
d5fcf23629
commit
17ead04c00
+6
-7
@@ -57,13 +57,12 @@ object TopDownAnalyzerFacadeForKonan {
|
|||||||
config: KonanConfig
|
config: KonanConfig
|
||||||
): AnalysisResult {
|
): AnalysisResult {
|
||||||
|
|
||||||
val verbose = config.configuration.get(KonanConfigKeys.VERBOSE_PHASES)
|
// we print out each file we compile if frontend phase is verbose
|
||||||
?.contains(KonanPhase.FRONTEND.visibleName)
|
files.takeIf {
|
||||||
?: false
|
config.configuration.get(KonanConfigKeys.VERBOSE_PHASES)
|
||||||
if (verbose) {
|
?.contains(KonanPhase.FRONTEND.visibleName)
|
||||||
// we print out each file we compile for now
|
?: false
|
||||||
files.forEach { println(it) }
|
} ?.forEach(::println)
|
||||||
}
|
|
||||||
|
|
||||||
val analyzerForKonan = createTopDownAnalyzerForKonan(
|
val analyzerForKonan = createTopDownAnalyzerForKonan(
|
||||||
moduleContext, trace,
|
moduleContext, trace,
|
||||||
|
|||||||
Reference in New Issue
Block a user