JS: change visibility to internal for library and marker annotations

This commit is contained in:
Zalim Bashorov
2016-10-07 14:11:02 +03:00
parent 77ceb3efb9
commit 11b2c5fe59
2 changed files with 6 additions and 7 deletions
+4 -6
View File
@@ -1,5 +1,5 @@
/* /*
* Copyright 2010-2014 JetBrains s.r.o. * Copyright 2010-2016 JetBrains s.r.o.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -36,18 +36,16 @@ public annotation class nativeInvoke
@native @native
@Target(CLASS, FUNCTION, PROPERTY) @Target(CLASS, FUNCTION, PROPERTY)
public annotation class library(public val name: String = "") internal annotation class library(public val name: String = "")
@native @native
@Target(PROPERTY) @Target(PROPERTY)
public annotation class enumerable() public annotation class enumerable()
// TODO make it "internal" or "fake"
@native @native
@Target(CLASS) @Target(CLASS)
@Deprecated("Do not use this annotation: it is for internal use only") internal annotation class marker
public annotation class marker
@Retention(AnnotationRetention.BINARY) @Retention(AnnotationRetention.BINARY)
@Target(CLASS, FUNCTION, PROPERTY, CONSTRUCTOR, PROPERTY_GETTER, PROPERTY_SETTER) @Target(CLASS, FUNCTION, PROPERTY, CONSTRUCTOR, PROPERTY_GETTER, PROPERTY_SETTER)
annotation class JsName(val name: String) annotation class JsName(val name: String)
+2 -1
View File
@@ -1,3 +1,4 @@
@file:Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
package foo package foo
@library class A() { @library class A() {
@@ -14,4 +15,4 @@ fun box(): String {
a.f() a.f()
a.f(2) a.f(2)
return if (getResult()) "OK" else "fail" return if (getResult()) "OK" else "fail"
} }