godot.entrygenerator.ext.FqNameExtensions.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of godot-entry-generator Show documentation
Show all versions of godot-entry-generator Show documentation
Godot Kotlin entry code generator.
package godot.entrygenerator.ext
import godot.entrygenerator.EntryGenerator
import godot.entrygenerator.model.JvmType
fun String.fqNameIsJvmType(vararg jvmTypes: JvmType): Boolean = jvmTypes.any { jvmType ->
EntryGenerator
.jvmTypeFqNamesProvider(jvmType)
.any { jvmTypeFqName -> jvmTypeFqName == this }
}
val JvmType.fqName: Set
get() = EntryGenerator.jvmTypeFqNamesProvider(this)