Skip to content

Commit 50cc99d

Browse files
authored
Support EtsThrowStmt to dot label (#358)
1 parent 60f7a77 commit 50cc99d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

jacodb-ets/src/main/kotlin/org/jacodb/ets/utils/StmtToDot.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@ import org.jacodb.ets.model.EtsNopStmt
2323
import org.jacodb.ets.model.EtsRawStmt
2424
import org.jacodb.ets.model.EtsReturnStmt
2525
import org.jacodb.ets.model.EtsStmt
26+
import org.jacodb.ets.model.EtsThrowStmt
2627

2728
internal fun EtsStmt.toDotLabel(): String {
2829
val label = when (this) {
2930
is EtsNopStmt -> "nop"
3031
is EtsAssignStmt -> "$lhv := $rhv"
3132
is EtsReturnStmt -> returnValue?.let { "return $it" } ?: "return"
33+
is EtsThrowStmt -> "throw $exception"
3234
is EtsIfStmt -> "if ($condition)"
3335
is EtsCallStmt -> "call $expr"
3436
is EtsRawStmt -> "raw $kind"

0 commit comments

Comments
 (0)