mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-11 02:50:15 +08:00
Update codegen, rearrange entry point
This commit is contained in:
parent
3743d9230e
commit
907b2ad946
@ -9,7 +9,9 @@
|
|||||||
|
|
||||||
package net.mamoe.mirai.console.codegen
|
package net.mamoe.mirai.console.codegen
|
||||||
|
|
||||||
object SettingCodegen {
|
|
||||||
|
object ValueKtCodegen {
|
||||||
|
object SettingCodegen {
|
||||||
object PrimitiveValuesCodegen : RegionCodegen(), DefaultInvoke {
|
object PrimitiveValuesCodegen : RegionCodegen(), DefaultInvoke {
|
||||||
override val defaultInvokeArgs: List<KtType>
|
override val defaultInvokeArgs: List<KtType>
|
||||||
get() = KtType.Primitives + KtString
|
get() = KtType.Primitives + KtString
|
||||||
@ -27,9 +29,8 @@ object SettingCodegen {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
object ValueKtCodegen {
|
|
||||||
@JvmStatic
|
@JvmStatic
|
||||||
fun main(args: Array<String>) {
|
fun main(args: Array<String>) {
|
||||||
codegen("Value.kt") {
|
codegen("Value.kt") {
|
@ -120,9 +120,3 @@ fun String.findFileSmart(): File = kotlin.run {
|
|||||||
}.also {
|
}.also {
|
||||||
require(it.exists()) { "file doesn't exist" }
|
require(it.exists()) { "file doesn't exist" }
|
||||||
}
|
}
|
||||||
|
|
||||||
fun main() {
|
|
||||||
codegen("Value.kt") {
|
|
||||||
SettingCodegen.PrimitiveValuesCodegen()
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user