Enum warnings fixed: deprecated delimiters, short super constructors, both in project and in libraries
This commit is contained in:
+1
-1
@@ -37,6 +37,6 @@ public var JsParameter.hasDefaultValue: Boolean by MetadataProperty(default = fa
|
||||
public var JsInvocation.typeCheck: TypeCheck? by MetadataProperty(default = null)
|
||||
|
||||
public enum class TypeCheck {
|
||||
TYPEOF
|
||||
TYPEOF,
|
||||
INSTANCEOF
|
||||
}
|
||||
@@ -20,11 +20,11 @@ import kotlin.properties.Delegates
|
||||
import org.jetbrains.kotlin.name.FqName
|
||||
|
||||
public enum class PredefinedAnnotation(fqName: String) {
|
||||
LIBRARY : PredefinedAnnotation("kotlin.js.library")
|
||||
NATIVE : PredefinedAnnotation("kotlin.js.native")
|
||||
NATIVE_INVOKE : PredefinedAnnotation("kotlin.js.nativeInvoke")
|
||||
NATIVE_GETTER : PredefinedAnnotation("kotlin.js.nativeGetter")
|
||||
NATIVE_SETTER : PredefinedAnnotation("kotlin.js.nativeSetter")
|
||||
LIBRARY("kotlin.js.library"),
|
||||
NATIVE("kotlin.js.native"),
|
||||
NATIVE_INVOKE("kotlin.js.nativeInvoke"),
|
||||
NATIVE_GETTER("kotlin.js.nativeGetter"),
|
||||
NATIVE_SETTER("kotlin.js.nativeSetter");
|
||||
|
||||
public val fqName: FqName = FqName(fqName)
|
||||
|
||||
|
||||
+1
-1
@@ -55,7 +55,7 @@ public class CallArgumentTranslator private (
|
||||
}
|
||||
|
||||
private enum class ArgumentsKind {
|
||||
HAS_EMPTY_EXPRESSION_ARGUMENT
|
||||
HAS_EMPTY_EXPRESSION_ARGUMENT,
|
||||
HAS_NOT_EMPTY_EXPRESSION_ARGUMENT
|
||||
}
|
||||
|
||||
|
||||
@@ -17,6 +17,6 @@
|
||||
package org.jetbrains.kotlin.js.translate.utils
|
||||
|
||||
enum class InlineAnnotation(val fqName: String) {
|
||||
INLINE : InlineAnnotation("kotlin.inline")
|
||||
NO_INLINE : InlineAnnotation("kotlin.noinline")
|
||||
INLINE("kotlin.inline"),
|
||||
NO_INLINE("kotlin.noinline")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user