Kotlin: Add stmt/expr support

This commit is contained in:
Ian Lynagh
2021-07-29 11:41:45 +01:00
parent 49a4e479da
commit 03d5646c19
7 changed files with 121 additions and 10 deletions

View File

@@ -0,0 +1,3 @@
| exprs.kt:3:12:3:14 | 123 |
| exprs.kt:3:12:3:20 | ... + ... |
| exprs.kt:3:18:3:20 | 456 |

View File

@@ -0,0 +1,5 @@
fun topLevelMethod(x: Int, y: Int): Int {
return 123 + 456
}

View File

@@ -0,0 +1,5 @@
import java
from Expr e
select e

View File

@@ -0,0 +1,2 @@
| stmts.kt:2:41:4:1 | { ... } |
| stmts.kt:3:5:3:16 | return ... |

View File

@@ -0,0 +1,5 @@
fun topLevelMethod(x: Int, y: Int): Int {
return x + y
}

View File

@@ -0,0 +1,5 @@
import java
from Stmt s
select s