Skip to content

Commit 0a3be0c

Browse files
committed
added annotations for moveTo(), move {}.into {}, and .intoIndexed {}, to add compiler plugin support
1 parent c0f539c commit 0a3be0c

File tree

1 file changed

+6
-0
lines changed
  • core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/api

1 file changed

+6
-0
lines changed

core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/api/move.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,8 @@ private interface CommonMoveToDocs
191191
* where the selected columns will be moved.
192192
* @param [columns\] The [Columns Selector][ColumnsSelector] used to select the columns of this [DataFrame] to move.
193193
*/
194+
@Refine
195+
@Interpretable("MoveTo1")
194196
public fun <T> DataFrame<T>.moveTo(newColumnIndex: Int, columns: ColumnsSelector<T, *>): DataFrame<T> =
195197
move(columns).to(newColumnIndex)
196198

@@ -398,6 +400,8 @@ public fun <T> DataFrame<T>.moveToEnd(vararg columns: KProperty<*>): DataFrame<T
398400
* @param [column] The [Column With Path Selector][ColumnsSelector] used to specify
399401
* a path in the [DataFrame] to move columns.
400402
*/
403+
@Refine
404+
@Interpretable("MoveInto1")
401405
public fun <T, C> MoveClause<T, C>.into(
402406
column: ColumnsSelectionDsl<T>.(ColumnWithPath<C>) -> AnyColumnReference,
403407
): DataFrame<T> =
@@ -436,6 +440,8 @@ public fun <T, C> MoveClause<T, C>.into(column: String): DataFrame<T> = pathOf(c
436440
* @param [column] The [Column With Path Selector And Indices][ColumnsSelector] used to specify
437441
* a path in the [DataFrame] to move columns.
438442
*/
443+
@Refine
444+
@Interpretable("MoveInto2")
439445
public fun <T, C> MoveClause<T, C>.intoIndexed(
440446
newPathExpression: ColumnsSelectionDsl<T>.(ColumnWithPath<C>, Int) -> AnyColumnReference,
441447
): DataFrame<T> {

0 commit comments

Comments
 (0)