Enum warnings fixed: deprecated delimiters, short super constructors, both in project and in libraries
This commit is contained in:
@@ -35,10 +35,10 @@ data class Constant(val name: String, val type: String, val value: String?)
|
||||
fun Attribute.formatFunctionTypePart() = if (vararg) "vararg $type" else type
|
||||
|
||||
enum class DefinitionKind {
|
||||
INTERFACE
|
||||
TYPEDEF
|
||||
EXTENSION_INTERFACE
|
||||
ENUM
|
||||
INTERFACE,
|
||||
TYPEDEF,
|
||||
EXTENSION_INTERFACE,
|
||||
ENUM,
|
||||
DICTIONARY
|
||||
}
|
||||
|
||||
|
||||
@@ -43,13 +43,13 @@ val GenerateAttribute.signature: String
|
||||
fun GenerateAttribute.dynamicIfUnknownType(allTypes : Set<String>, standardTypes : Set<String> = standardTypes()) = copy(type = type.dynamicIfUnknownType(allTypes, standardTypes))
|
||||
|
||||
enum class NativeGetterOrSetter {
|
||||
NONE
|
||||
GETTER
|
||||
NONE,
|
||||
GETTER,
|
||||
SETTER
|
||||
}
|
||||
|
||||
enum class GenerateDefinitionKind {
|
||||
TRAIT
|
||||
TRAIT,
|
||||
CLASS
|
||||
}
|
||||
|
||||
|
||||
@@ -7,31 +7,31 @@ import java.util.*
|
||||
import kotlin.properties.Delegates
|
||||
|
||||
enum class Family {
|
||||
Sequences
|
||||
Iterables
|
||||
Collections
|
||||
Lists
|
||||
Maps
|
||||
ArraysOfObjects
|
||||
ArraysOfPrimitives
|
||||
Strings
|
||||
RangesOfPrimitives
|
||||
ProgressionsOfPrimitives
|
||||
Primitives
|
||||
Generic
|
||||
Sequences,
|
||||
Iterables,
|
||||
Collections,
|
||||
Lists,
|
||||
Maps,
|
||||
ArraysOfObjects,
|
||||
ArraysOfPrimitives,
|
||||
Strings,
|
||||
RangesOfPrimitives,
|
||||
ProgressionsOfPrimitives,
|
||||
Primitives,
|
||||
Generic;
|
||||
|
||||
val isPrimitiveSpecialization: Boolean by Delegates.lazy { this in listOf(ArraysOfPrimitives, RangesOfPrimitives, ProgressionsOfPrimitives, Primitives) }
|
||||
}
|
||||
|
||||
enum class PrimitiveType(val name: String) {
|
||||
Boolean : PrimitiveType("Boolean")
|
||||
Byte : PrimitiveType("Byte")
|
||||
Char : PrimitiveType("Char")
|
||||
Short : PrimitiveType("Short")
|
||||
Int : PrimitiveType("Int")
|
||||
Long : PrimitiveType("Long")
|
||||
Float : PrimitiveType("Float")
|
||||
Double : PrimitiveType("Double")
|
||||
Boolean("Boolean"),
|
||||
Byte("Byte"),
|
||||
Char("Char"),
|
||||
Short("Short"),
|
||||
Int("Int"),
|
||||
Long("Long"),
|
||||
Float("Float"),
|
||||
Double("Double")
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user