All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jtransc.ast.treeshaking.JTranscAddFileFeature.kt Maven / Gradle / Ivy

package com.jtransc.ast.treeshaking

import com.jtransc.annotation.JTranscAddFile
import com.jtransc.ast.AstAnnotationList
import com.jtransc.ast.getTypedList
import com.jtransc.gen.TargetName

fun AstAnnotationList?.getTargetAddFiles(target: String): List {
	return getTypedList(com.jtransc.annotation.JTranscAddFileList::value).filter { TargetName.matches(it.target, target) }
}

fun JTranscAddFile.filesToProcess(): List {
	return (if (this.process) listOf(this.prepend, this.prependAppend, this.append) else listOf()).filter { it.isNotEmpty() }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy