Update Kotlin, document codegen functions

This commit is contained in:
Iaroslav Postovalov 2020-12-06 04:05:36 +07:00
parent 96957dfa4b
commit 2f1cfefeac
No known key found for this signature in database
GPG Key ID: 46E15E4A31B3BCD7
3 changed files with 7 additions and 1 deletions

View File

@ -5,5 +5,5 @@ plugins {
repositories.jcenter()
dependencies {
implementation(kotlin("compiler-embeddable", "1.4.10"))
implementation(kotlin("compiler-embeddable", "1.4.20"))
}

View File

@ -57,6 +57,9 @@ private fun KtPsiFactory.createMatrixClass(
f += createNewLine(2)
}
/**
* Generates matrices source code for kmath-gsl.
*/
fun matricesCodegen(outputFile: String, project: Project = createProject()) {
val f = KtPsiFactory(project, true).run {
createFile("").also { f ->

View File

@ -46,6 +46,9 @@ private fun KtPsiFactory.createVectorClass(
f += createNewLine(2)
}
/**
* Generates vectors source code for kmath-gsl.
*/
fun vectorsCodegen(outputFile: String, project: Project = createProject()) {
val f = KtPsiFactory(project, true).run {
createFile("").also { f ->