From a3df09605ac0761b3964d9a958549b5667bdc3d0 Mon Sep 17 00:00:00 2001 From: orangain Date: Sat, 14 May 2022 14:54:17 +0900 Subject: [PATCH] wip: Try to use kotlinx/ast kotlinx/ast does not support generating code from AST https://github.com/kotlinx/ast/issues/43 --- .idea/jarRepositories.xml | 5 ++++ .idea/misc.xml | 2 +- app/build.gradle.kts | 5 ++-- .../ktcodeshift/FlattenListTransform.kt | 8 +++++ .../main/kotlin/ktcodeshift/KtCodeShift.kt | 11 +++++++ app/src/main/kotlin/ktcodeshift/Transform.kt | 30 +++++++++++++++++++ app/src/test/kotlin/ktcodeshift/AppTest.kt | 20 +++++++++++-- 7 files changed, 75 insertions(+), 6 deletions(-) create mode 100644 app/src/main/kotlin/ktcodeshift/FlattenListTransform.kt create mode 100644 app/src/main/kotlin/ktcodeshift/KtCodeShift.kt create mode 100644 app/src/main/kotlin/ktcodeshift/Transform.kt diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml index fdc392f..f5a0c5d 100644 --- a/.idea/jarRepositories.xml +++ b/.idea/jarRepositories.xml @@ -16,5 +16,10 @@