Drop inlineOptions and fix forgotten usages
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user