Drop inlineOptions and fix forgotten usages

This commit is contained in:
Denis Zharkov
2015-09-23 12:07:07 +03:00
parent 67486b867b
commit 098f5462eb
58 changed files with 13 additions and 150 deletions
+1 -30
View File
@@ -32,21 +32,13 @@ public annotation class noinline
* See the [Kotlin language documentation](http://kotlinlang.org/docs/reference/inline-functions.html) for more information.
*
* @see noinline
* @see inlineOptions
* @see crossinline
*/
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY)
@Retention(AnnotationRetention.RUNTIME)
@MustBeDocumented
public annotation class inline
/**
* @suppress
*/
@Target(AnnotationTarget.VALUE_PARAMETER)
@Retention(AnnotationRetention.RUNTIME)
@MustBeDocumented
public annotation class inlineOptions(vararg val value: InlineOption)
/**
* Forbids use of non-local control flow statements within lambdas passed as arguments for this parameter.
*/
@@ -54,24 +46,3 @@ public annotation class inlineOptions(vararg val value: InlineOption)
@Retention(AnnotationRetention.RUNTIME)
@MustBeDocumented
public annotation class crossinline
/**
* Specifies the control flow statements which are allowed to be used for non-local control flow transfer in a lambda
* passed as a parameter to an inline function.
*/
public enum class InlineOption {
/**
* This option hasn't been implemented yet.
*/
LOCAL_CONTINUE_AND_BREAK,
/**
* If this option is specified, lambdas may not use non-local return statements (statements which return from
* their calling function or one of its enclosing functions). This option must be specified if the lambda
* is not invoked directly by the receiving function but instead used in a different execution context
* (for example, from an object contained in the receiving function).
*
* By default, lambdas are allowed to use non-local returns.
*/
ONLY_LOCAL_RETURN
}