Drop InlineStrategy and corresponding inline parameter

This commit is contained in:
Denis Zharkov
2015-09-07 11:20:54 +03:00
parent 9f5bbf94d3
commit c9a8609a67
4 changed files with 8 additions and 46 deletions
+1 -21
View File
@@ -31,33 +31,13 @@ public annotation class noinline
* functions can contain non-local returns.
* See the [Kotlin language documentation](http://kotlinlang.org/docs/reference/inline-functions.html) for more information.
*
* @property strategy the [InlineStrategy] to use for inlining this function.
*
* @see noinline
* @see inlineOptions
*/
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY)
@Retention(AnnotationRetention.RUNTIME)
@MustBeDocumented
public annotation class inline(public val strategy: InlineStrategy = InlineStrategy.AS_FUNCTION)
/**
* Specifies the strategy for code generation for an inline function.
*/
public enum class InlineStrategy {
/**
* Specifies that the body of the inline function together with the bodies of the lambdas passed to it
* is generated as a separate method invoked from the calling function.
*/
AS_FUNCTION,
/**
* Specifies that the body of the inline function together with the bodies of the lambdas passed to it
* is inlined directly into the calling function.
*/
IN_PLACE
}
public annotation class inline
/**
* Specifies options for allowed control flow in inlined lambdas. Lambdas which are invoked directly by the