Move InlineOnly to kotlin.internal package
This commit is contained in:
@@ -65,7 +65,7 @@ fun AnnotationDescriptor.argumentValue(parameterName: String): Any? {
|
||||
return constant.value
|
||||
}
|
||||
|
||||
private val INLINE_ONLY_ANNOTATION_FQ_NAME = FqName("kotlin.jvm.internal.InlineOnly")
|
||||
private val INLINE_ONLY_ANNOTATION_FQ_NAME = FqName("kotlin.internal.InlineOnly")
|
||||
|
||||
fun MemberDescriptor.isInlineOnly(): Boolean {
|
||||
if (this !is FunctionDescriptor) return false
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
||||
@kotlin.jvm.internal.InlineOnly
|
||||
@kotlin.internal.InlineOnly
|
||||
inline fun foo() { }
|
||||
|
||||
inline fun <T> bar() { }
|
||||
@@ -8,7 +8,7 @@ inline fun <U, reified V> baz() {}
|
||||
|
||||
class Foo {
|
||||
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
||||
@kotlin.jvm.internal.InlineOnly
|
||||
@kotlin.internal.InlineOnly
|
||||
inline fun foo() { }
|
||||
|
||||
inline fun <T> bar() { }
|
||||
|
||||
@@ -4,7 +4,7 @@ public final class Foo {
|
||||
public method <init>(): void
|
||||
public final method bar(): void
|
||||
private final method baz(): void
|
||||
private final @kotlin.jvm.internal.InlineOnly method foo(): void
|
||||
private final @kotlin.internal.InlineOnly method foo(): void
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
@@ -12,5 +12,5 @@ public final class Foo {
|
||||
public final class InlineOnlyKt {
|
||||
public final static method bar(): void
|
||||
private final static method baz(): void
|
||||
private final static @kotlin.jvm.internal.InlineOnly method foo(): void
|
||||
private final static @kotlin.internal.InlineOnly method foo(): void
|
||||
}
|
||||
|
||||
@@ -50,4 +50,11 @@ internal annotation class HidesMembers
|
||||
*/
|
||||
@Target(AnnotationTarget.TYPE_PARAMETER)
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
internal annotation class OnlyInputTypes
|
||||
internal annotation class OnlyInputTypes
|
||||
|
||||
/**
|
||||
* Specifies that this function should not be called directly without inlining
|
||||
*/
|
||||
@Target(AnnotationTarget.FUNCTION)
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
internal annotation class InlineOnly
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2016 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package kotlin.jvm.internal
|
||||
|
||||
@Target(AnnotationTarget.FUNCTION)
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
internal annotation class InlineOnly
|
||||
Reference in New Issue
Block a user