IDL2K avoid unnecessary super() calls in secondary constructors

This commit is contained in:
Sergey Mashkov
2015-06-16 17:29:36 +03:00
parent 28f228ccc0
commit c0c0f6152a
4 changed files with 57 additions and 61 deletions
@@ -567,10 +567,10 @@ native public open class ArrayBuffer(length: Int) : Transferable {
}
native public open class Int8Array : ArrayBufferView {
constructor(length: Int) : super()
constructor(array: Int8Array) : super()
constructor(array: Array<Byte>) : super()
constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl) : super()
constructor(length: Int)
constructor(array: Int8Array)
constructor(array: Array<Byte>)
constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl)
var length: Int
get() = noImpl
set(value) = noImpl
@@ -595,10 +595,10 @@ native public open class Int8Array : ArrayBufferView {
}
native public open class Uint8Array : ArrayBufferView {
constructor(length: Int) : super()
constructor(array: Uint8Array) : super()
constructor(array: Array<Byte>) : super()
constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl) : super()
constructor(length: Int)
constructor(array: Uint8Array)
constructor(array: Array<Byte>)
constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl)
var length: Int
get() = noImpl
set(value) = noImpl
@@ -623,10 +623,10 @@ native public open class Uint8Array : ArrayBufferView {
}
native public open class Uint8ClampedArray : ArrayBufferView {
constructor(length: Int) : super()
constructor(array: Uint8ClampedArray) : super()
constructor(array: Array<Byte>) : super()
constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl) : super()
constructor(length: Int)
constructor(array: Uint8ClampedArray)
constructor(array: Array<Byte>)
constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl)
var length: Int
get() = noImpl
set(value) = noImpl
@@ -651,10 +651,10 @@ native public open class Uint8ClampedArray : ArrayBufferView {
}
native public open class Int16Array : ArrayBufferView {
constructor(length: Int) : super()
constructor(array: Int16Array) : super()
constructor(array: Array<Short>) : super()
constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl) : super()
constructor(length: Int)
constructor(array: Int16Array)
constructor(array: Array<Short>)
constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl)
var length: Int
get() = noImpl
set(value) = noImpl
@@ -679,10 +679,10 @@ native public open class Int16Array : ArrayBufferView {
}
native public open class Uint16Array : ArrayBufferView {
constructor(length: Int) : super()
constructor(array: Uint16Array) : super()
constructor(array: Array<Short>) : super()
constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl) : super()
constructor(length: Int)
constructor(array: Uint16Array)
constructor(array: Array<Short>)
constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl)
var length: Int
get() = noImpl
set(value) = noImpl
@@ -707,10 +707,10 @@ native public open class Uint16Array : ArrayBufferView {
}
native public open class Int32Array : ArrayBufferView {
constructor(length: Int) : super()
constructor(array: Int32Array) : super()
constructor(array: Array<Int>) : super()
constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl) : super()
constructor(length: Int)
constructor(array: Int32Array)
constructor(array: Array<Int>)
constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl)
var length: Int
get() = noImpl
set(value) = noImpl
@@ -735,10 +735,10 @@ native public open class Int32Array : ArrayBufferView {
}
native public open class Uint32Array : ArrayBufferView {
constructor(length: Int) : super()
constructor(array: Uint32Array) : super()
constructor(array: Array<Int>) : super()
constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl) : super()
constructor(length: Int)
constructor(array: Uint32Array)
constructor(array: Array<Int>)
constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl)
var length: Int
get() = noImpl
set(value) = noImpl
@@ -763,10 +763,10 @@ native public open class Uint32Array : ArrayBufferView {
}
native public open class Float32Array : ArrayBufferView {
constructor(length: Int) : super()
constructor(array: Float32Array) : super()
constructor(array: Array<Float>) : super()
constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl) : super()
constructor(length: Int)
constructor(array: Float32Array)
constructor(array: Array<Float>)
constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl)
var length: Int
get() = noImpl
set(value) = noImpl
@@ -791,10 +791,10 @@ native public open class Float32Array : ArrayBufferView {
}
native public open class Float64Array : ArrayBufferView {
constructor(length: Int) : super()
constructor(array: Float64Array) : super()
constructor(array: Array<Double>) : super()
constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl) : super()
constructor(length: Int)
constructor(array: Float64Array)
constructor(array: Array<Double>)
constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl)
var length: Int
get() = noImpl
set(value) = noImpl
+4 -4
View File
@@ -2996,8 +2996,8 @@ native public open class HitRegionOptions {
}
native public open class ImageData : ImageBitmapSource {
constructor(sw: Int, sh: Int) : super()
constructor(data: Uint8ClampedArray, sw: Int, sh: Int = noImpl) : super()
constructor(sw: Int, sh: Int)
constructor(data: Uint8ClampedArray, sw: Int, sh: Int = noImpl)
var width: Int
get() = noImpl
set(value) = noImpl
@@ -5086,8 +5086,8 @@ native public open class DOMRectInit {
}
native public open class DOMQuad {
constructor(p1: DOMPointInit = noImpl, p2: DOMPointInit = noImpl, p3: DOMPointInit = noImpl, p4: DOMPointInit = noImpl) : super()
constructor(rect: DOMRectInit = noImpl) : super()
constructor(p1: DOMPointInit = noImpl, p2: DOMPointInit = noImpl, p3: DOMPointInit = noImpl, p4: DOMPointInit = noImpl)
constructor(rect: DOMRectInit = noImpl)
var p1: DOMPoint
get() = noImpl
set(value) = noImpl