Write vararg flag on value parameters

This commit is contained in:
Andrey Breslav
2013-01-31 21:14:59 +04:00
parent b42777a28c
commit 79e27f2d90
17 changed files with 128 additions and 20 deletions
@@ -48,4 +48,12 @@ public @interface JetValueParameter {
* @return type unless Java type is correct Kotlin type.
*/
String type() default "";
/**
* @return <code>true</code> if this parameter is a vararg
*
* NOTE: a method may have a vararg parameter in Kotlin and not be marked as Opcodes.ACC_VARARGS, e.g.
* fun foo(vararg x: Int, f: () -> Unit)
*/
boolean vararg() default false;
}