Skip to content

Commit 5fda4a9

Browse files
committed
Annotate missed convert functions for compiler plugin support
1 parent 9c325ce commit 5fda4a9

File tree

1 file changed

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

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ public inline fun <T, C, reified R> DataFrame<T>.convert(
295295
* @param [expression] The {@include [ExpressionsGivenRow.RowValueExpressionLink]} to update the rows with.
296296
* @return A new [DataFrame] with the converted values.
297297
*/
298+
@Refine
298299
@Interpretable("Convert6")
299300
public inline fun <T, reified R> DataFrame<T>.convert(
300301
firstCol: String,
@@ -303,6 +304,8 @@ public inline fun <T, reified R> DataFrame<T>.convert(
303304
noinline expression: RowValueExpression<T, Any?, R>,
304305
): DataFrame<T> = convert(*headPlusArray(firstCol, cols)).with(infer, expression)
305306

307+
@Refine
308+
@Interpretable("ConvertNotNull")
306309
public inline fun <T, C, reified R> Convert<T, C?>.notNull(
307310
crossinline expression: RowValueExpression<T, C, R>,
308311
): DataFrame<T> =

0 commit comments

Comments
 (0)