Fix "Protected function call from public-API inline function is prohibited" error
This commit is contained in:
+1
-1
@@ -29,7 +29,7 @@ abstract class BuildFilePrinter {
|
||||
builder.append(this)
|
||||
}
|
||||
|
||||
inline fun indented(inner: () -> Unit) {
|
||||
fun indented(inner: () -> Unit) {
|
||||
currentIndent += indent
|
||||
inner()
|
||||
currentIndent -= indent
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ import org.jetbrains.kotlin.tools.projectWizard.ir.buildsystem.gradle.isEmpty
|
||||
import org.jetbrains.kotlin.tools.projectWizard.ir.buildsystem.render
|
||||
|
||||
class GradlePrinter(val dsl: GradleDsl, override val indent: Int = 4) : BuildFilePrinter() {
|
||||
inline fun inBrackets(inner: () -> Unit) {
|
||||
fun inBrackets(inner: () -> Unit) {
|
||||
indented {
|
||||
+"{"
|
||||
nl()
|
||||
|
||||
Reference in New Issue
Block a user