Uast: support for Kotlin array literals
This commit is contained in:
+9
-1
@@ -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
|
||||
Reference in New Issue
Block a user