IJPL-218404 Eel cleanup: remove unused file created for testing the builders generator

GitOrigin-RevId: 3eb53ee0b472bc694d073574daab1f477f86dc18
This commit is contained in:
Vladimir Lagunov
2025-11-13 20:13:28 +00:00
committed by intellij-monorepo-bot
parent 6b0029f1f7
commit 2cb08f20f0
6 changed files with 0 additions and 317 deletions
@@ -1,33 +0,0 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
/**
* This file is generated by [com.intellij.platform.eel.codegen.BuildersGeneratorTest].
*/
package com.intellij.platform.eel
@GeneratedBuilder.Result
class FoobarOptsBuilder {
private var bar: Int? = null
private var foo: String? = null
fun bar(arg: Int?): FoobarOptsBuilder = apply {
this.bar = arg
}
fun foo(arg: String?): FoobarOptsBuilder = apply {
this.foo = arg
}
fun build(): FoobarOpts =
FoobarOptsImpl(
bar = bar,
foo = foo,
)
}
@GeneratedBuilder.Result
internal class FoobarOptsImpl(
override val bar: Int?,
override val foo: String?,
) : FoobarOpts
@@ -1,48 +0,0 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
/**
* This file is generated by [com.intellij.platform.eel.codegen.BuildersGeneratorTest].
*/
package com.intellij.platform.eel
import com.intellij.platform.eel.*
@GeneratedBuilder.Result
fun OurThing.foobar5(): OurThingHelpers.Foobar5 =
OurThingHelpers.Foobar5(
owner = this,
)
object OurThingHelpers {
/**
* Create it via [com.intellij.platform.eel.OurThing.foobar5].
*/
@GeneratedBuilder.Result
class Foobar5(
private val owner: OurThing,
) : OwnedBuilder<Unit> {
private var bar: Int? = null
private var foo: String? = null
fun bar(arg: Int?): Foobar5 = apply {
this.bar = arg
}
fun foo(arg: String?): Foobar5 = apply {
this.foo = arg
}
/**
* Complete the builder and call [com.intellij.platform.eel.OurThing.foobar5]
* with an instance of [com.intellij.platform.eel.FoobarOpts].
*/
override suspend fun eelIt(): Unit =
owner.foobar5(
FoobarOptsImpl(
bar = bar,
foo = foo,
)
)
}
}
@@ -1,46 +0,0 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
/**
* This file is generated by [com.intellij.platform.eel.codegen.BuildersGeneratorTest].
*/
package com.intellij.platform.eel
import com.intellij.platform.eel.*
@GeneratedBuilder.Result
fun foobar1(): TmpExampleKtHelpers.Foobar1 =
TmpExampleKtHelpers.Foobar1(
)
object TmpExampleKtHelpers {
/**
* Create it via [foobar1].
*/
@GeneratedBuilder.Result
class Foobar1 : OwnedBuilder<Unit> {
private var bar: Int? = null
private var foo: String? = null
fun bar(arg: Int?): Foobar1 = apply {
this.bar = arg
}
fun foo(arg: String?): Foobar1 = apply {
this.foo = arg
}
/**
* Complete the builder and call [foobar1]
* with an instance of [com.intellij.platform.eel.FoobarOpts].
*/
override suspend fun eelIt(): Unit =
foobar1(
FoobarOptsImpl(
bar = bar,
foo = foo,
)
)
}
}
@@ -1,86 +0,0 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
/**
* This file is generated by [com.intellij.platform.eel.codegen.BuildersGeneratorTest].
*/
package com.intellij.platform.eel
import com.intellij.platform.eel.*
@GeneratedBuilder.Result
fun Any.foobar2(): kotlinAnyHelpers.Foobar2 =
kotlinAnyHelpers.Foobar2(
owner = this,
)
@GeneratedBuilder.Result
fun Any.foobar3(): kotlinAnyHelpers.Foobar3 =
kotlinAnyHelpers.Foobar3(
owner = this,
)
object kotlinAnyHelpers {
/**
* Create it via [kotlin.Any.foobar2].
*/
@GeneratedBuilder.Result
class Foobar2(
private val owner: Any,
) : OwnedBuilder<Unit> {
private var bar: Int? = null
private var foo: String? = null
fun bar(arg: Int?): Foobar2 = apply {
this.bar = arg
}
fun foo(arg: String?): Foobar2 = apply {
this.foo = arg
}
/**
* Complete the builder and call [kotlin.Any.foobar2]
* with an instance of [com.intellij.platform.eel.FoobarOpts].
*/
override suspend fun eelIt(): Unit =
owner.foobar2(
FoobarOptsImpl(
bar = bar,
foo = foo,
)
)
}
/**
* Create it via [kotlin.Any.foobar3].
*/
@GeneratedBuilder.Result
class Foobar3(
private val owner: Any,
) : OwnedBuilder<Unit> {
private var bar: Int? = null
private var foo: String? = null
fun bar(arg: Int?): Foobar3 = apply {
this.bar = arg
}
fun foo(arg: String?): Foobar3 = apply {
this.foo = arg
}
/**
* Complete the builder and call [kotlin.Any.foobar3]
* with an instance of [com.intellij.platform.eel.FoobarOpts].
*/
override suspend fun eelIt(): Unit =
owner.foobar3(
FoobarOptsImpl(
bar = bar,
foo = foo,
)
)
}
}
@@ -1,48 +0,0 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
/**
* This file is generated by [com.intellij.platform.eel.codegen.BuildersGeneratorTest].
*/
package com.intellij.platform.eel
import com.intellij.platform.eel.*
@GeneratedBuilder.Result
fun Map<String, String>.foobar4(): kotlinCollectionsMapHelpers.Foobar4 =
kotlinCollectionsMapHelpers.Foobar4(
owner = this,
)
object kotlinCollectionsMapHelpers {
/**
* Create it via [kotlin.collections.Map.foobar4].
*/
@GeneratedBuilder.Result
class Foobar4(
private val owner: Map<String, String>,
) : OwnedBuilder<Unit> {
private var bar: Int? = null
private var foo: String? = null
fun bar(arg: Int?): Foobar4 = apply {
this.bar = arg
}
fun foo(arg: String?): Foobar4 = apply {
this.foo = arg
}
/**
* Complete the builder and call [kotlin.collections.Map.foobar4]
* with an instance of [com.intellij.platform.eel.FoobarOpts].
*/
override suspend fun eelIt(): Unit =
owner.foobar4(
FoobarOptsImpl(
bar = bar,
foo = foo,
)
)
}
}
@@ -1,56 +0,0 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.platform.eel
fun foobar1(@GeneratedBuilder opts: FoobarOpts) {
println("foobar1")
println(opts.foo)
println(opts.bar)
}
fun Any.foobar2(@GeneratedBuilder opts: FoobarOpts) {
println("foobar2")
println(this)
println(opts.foo)
println(opts.bar)
}
fun Any.foobar3(@GeneratedBuilder opts: FoobarOpts) {
println("foobar3")
println(this)
println(opts.foo)
println(opts.bar)
}
fun Map<String, String>.foobar4(@GeneratedBuilder opts: FoobarOpts) {
println("foobar4")
println(this)
println(opts.foo)
println(opts.bar)
}
class OurThing
fun OurThing.foobar5(@GeneratedBuilder opts: FoobarOpts) {
println("foobar5")
println(this)
println(opts.foo)
println(opts.bar)
}
fun OurThingHelpers.Foobar5.hurrDurr() = apply {
foo("hurr durr")
bar(31337)
}
interface FoobarOpts {
val foo: String? get() = null
val bar: Int? get() = null
}
suspend fun main() {
foobar1().foo("123").bar(456).eelIt()
(3.14159).foobar2().foo("xxx").eelIt()
(3.14159).foobar3().foo("yyy").eelIt()
mapOf("a" to "b").foobar4().foo("zzz").eelIt()
OurThing().foobar5().hurrDurr().eelIt()
}