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
@@ -7,6 +7,10 @@ public final class AnnotationParametersKt {
@IntRange(from = 0, to = 100)
@SuppressLint(value = <noref>("Lorem", "Ipsum", "Dolor"))
public static final fun bar() : void = Unit
@RequiresPermission(anyOf = collectionLiteral[1, 2, 3])
public static final fun fooWithArrLiteral() : int = 5
@RequiresStrPermission(strs = collectionLiteral["a", "b", "c"])
public static final fun fooWithStrArrLiteral() : int = 3
}
public abstract annotation IntRange {
@@ -18,6 +22,10 @@ public abstract annotation RequiresPermission {
public abstract fun anyOf() : int[] = UastEmptyExpression
}
public abstract annotation RequiresStrPermission {
public abstract fun strs() : java.lang.String[] = UastEmptyExpression
}
public abstract annotation WithDefaultValue {
public abstract fun value() : int = UastEmptyExpression
}