Small fixes

This commit is contained in:
2023-06-20 12:40:15 +03:00
parent 86a82970fc
commit 32914eb36d
6 changed files with 35 additions and 31 deletions

View File

@@ -70,6 +70,7 @@ class ParserProcessor(
import org.koitharu.kotatsu.parsers.model.MangaSource
@Suppress("DEPRECATION")
@Deprecated("", replaceWith = ReplaceWith("context.newParserInstance(this)"))
fun MangaSource.newParser(context: MangaLoaderContext): MangaParser = when (this) {
""".trimIndent(),
@@ -155,4 +156,4 @@ class ParserProcessor(
sourcesWriter?.write("\t$deprecationString$name(\"$title\", $localeString$localeComment),\n")
}
}
}
}