Uast: support for Kotlin array literals

This commit is contained in:
Nicolay Mitropolsky
2018-01-31 18:48:15 +03:00
parent 358bc62fc1
commit 8ac95b54a2
7 changed files with 127 additions and 3 deletions
+9 -1
View File
@@ -3,6 +3,8 @@ annotation class IntRange(val from: Long, val to: Long)
annotation class RequiresPermission(val anyOf: IntArray)
annotation class RequiresStrPermission(val strs: Array<String>)
annotation class WithDefaultValue(val value: Int = 42)
annotation class SuppressLint(vararg val value: String)
@@ -15,4 +17,10 @@ fun foo(): Int = 5
@IntRange(0, 100)
@SuppressLint("Lorem", "Ipsum", "Dolor")
fun bar() = Unit
fun bar() = Unit
@RequiresPermission(anyOf = [1, 2, 3])
fun fooWithArrLiteral(): Int = 5
@RequiresStrPermission(strs = ["a", "b", "c"])
fun fooWithStrArrLiteral(): Int = 3