From 482cf2f0ff1735eae76edfcccdb838cfc28dfbb8 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Wed, 4 Sep 2024 18:25:18 +0100 Subject: [PATCH] KE2: Start extracting return statements --- .../src/main/kotlin/KotlinFileExtractor.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/java/kotlin-extractor2/src/main/kotlin/KotlinFileExtractor.kt b/java/kotlin-extractor2/src/main/kotlin/KotlinFileExtractor.kt index 94863436a18..8c55294217a 100644 --- a/java/kotlin-extractor2/src/main/kotlin/KotlinFileExtractor.kt +++ b/java/kotlin-extractor2/src/main/kotlin/KotlinFileExtractor.kt @@ -2950,7 +2950,7 @@ OLD: KE1 is IrSyntheticBody -> extractSyntheticBody(b, callable) else -> extractExpressionBody(b, callable) */ - else -> TODO() + else -> {} // TODO } } } @@ -6024,13 +6024,13 @@ OLD: KE1 } */ is KtReturnExpression -> { -/* -OLD: KE1 val stmtParent = parent.stmt(e, callable) val id = tw.getFreshIdLabel() val locId = tw.getLocation(e) tw.writeStmts_returnstmt(id, stmtParent.parent, stmtParent.idx, callable) tw.writeHasLocation(id, locId) +/* +OLD: KE1 extractExpressionExpr(e.value, callable, id, 0, id) */ }