-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Compiler plugin] Lower frontend generated implicit receivers #869
base: master
Are you sure you want to change the base?
Conversation
Generated sources will be updated after merging this PR. |
@@ -11,6 +12,7 @@ import org.jetbrains.kotlinx.dataframe.impl.columnName | |||
import kotlin.reflect.KProperty | |||
import kotlin.reflect.typeOf | |||
|
|||
@HasSchema(schemaArg = 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does HasSchema do again? There's no docs :/
fun box(): String { | ||
val df = List(10) { Record(it.toString(), it) }.let { dataFrameOf(*it.toTypedArray()) } | ||
val aggregate = df.pivot { b }.aggregate { | ||
this.add("c") { 123 }.c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
which part failed before and is now solved?
@OptIn(UnsafeDuringIrConstructionAPI::class) | ||
private fun IrExpression.replaceWithConstructorCall(): IrConstructorCallImpl { | ||
val constructor = type.getClass()!!.constructors.toList().single() | ||
val type = type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unnecessary assignment
For extension properties to work, frontend plugin inserts implicit receivers. But they are just non-existing references needed for resolve. Backend must find them and replace with something that will be executed