Skip to content

Commit 2cc708c

Browse files
author
Sergey Mashkov
committed
IDL2K restrict readonly attributes to vals
1 parent c0c0f61 commit 2cc708c

File tree

14 files changed

+1136
-2042
lines changed

14 files changed

+1136
-2042
lines changed

js/js.libraries/src/generated/org.khronos.webgl.kt

Lines changed: 50 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -56,39 +56,30 @@ native public interface WebGLUniformLocation {
5656
}
5757

5858
native public interface WebGLActiveInfo {
59-
var size: Int
59+
val size: Int
6060
get() = noImpl
61-
set(value) = noImpl
62-
var type: Int
61+
val type: Int
6362
get() = noImpl
64-
set(value) = noImpl
65-
var name: String
63+
val name: String
6664
get() = noImpl
67-
set(value) = noImpl
6865
}
6966

7067
native public interface WebGLShaderPrecisionFormat {
71-
var rangeMin: Int
68+
val rangeMin: Int
7269
get() = noImpl
73-
set(value) = noImpl
74-
var rangeMax: Int
70+
val rangeMax: Int
7571
get() = noImpl
76-
set(value) = noImpl
77-
var precision: Int
72+
val precision: Int
7873
get() = noImpl
79-
set(value) = noImpl
8074
}
8175

8276
native public interface WebGLRenderingContext : RenderingContext {
83-
var canvas: HTMLCanvasElement
77+
val canvas: HTMLCanvasElement
8478
get() = noImpl
85-
set(value) = noImpl
86-
var drawingBufferWidth: Int
79+
val drawingBufferWidth: Int
8780
get() = noImpl
88-
set(value) = noImpl
89-
var drawingBufferHeight: Int
81+
val drawingBufferHeight: Int
9082
get() = noImpl
91-
set(value) = noImpl
9283
fun getContextAttributes(): WebGLContextAttributes? = noImpl
9384
fun isContextLost(): Boolean = noImpl
9485
fun getSupportedExtensions(): Array<String>? = noImpl
@@ -546,19 +537,17 @@ native public interface WebGLRenderingContext : RenderingContext {
546537
}
547538

548539
native public open class WebGLContextEvent(type: String, eventInit: WebGLContextEventInit = noImpl) : Event(type, noImpl) {
549-
var statusMessage: String
540+
open val statusMessage: String
550541
get() = noImpl
551-
set(value) = noImpl
552542
}
553543

554544
native public open class WebGLContextEventInit : EventInit() {
555545
var statusMessage: String
556546
}
557547

558548
native public open class ArrayBuffer(length: Int) : Transferable {
559-
var byteLength: Int
549+
open val byteLength: Int
560550
get() = noImpl
561-
set(value) = noImpl
562551
fun slice(begin: Int, end: Int = noImpl): ArrayBuffer = noImpl
563552

564553
companion object {
@@ -571,18 +560,14 @@ native public open class Int8Array : ArrayBufferView {
571560
constructor(array: Int8Array)
572561
constructor(array: Array<Byte>)
573562
constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl)
574-
var length: Int
563+
open val length: Int
575564
get() = noImpl
576-
set(value) = noImpl
577-
var buffer: ArrayBuffer
565+
open val buffer: ArrayBuffer
578566
get() = noImpl
579-
set(value) = noImpl
580-
var byteOffset: Int
567+
open val byteOffset: Int
581568
get() = noImpl
582-
set(value) = noImpl
583-
var byteLength: Int
569+
open val byteLength: Int
584570
get() = noImpl
585-
set(value) = noImpl
586571
fun get(index: Int): Byte = noImpl
587572
fun set(index: Int, value: Byte): Unit = noImpl
588573
fun set(array: Int8Array, offset: Int = noImpl): Unit = noImpl
@@ -599,18 +584,14 @@ native public open class Uint8Array : ArrayBufferView {
599584
constructor(array: Uint8Array)
600585
constructor(array: Array<Byte>)
601586
constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl)
602-
var length: Int
587+
open val length: Int
603588
get() = noImpl
604-
set(value) = noImpl
605-
var buffer: ArrayBuffer
589+
open val buffer: ArrayBuffer
606590
get() = noImpl
607-
set(value) = noImpl
608-
var byteOffset: Int
591+
open val byteOffset: Int
609592
get() = noImpl
610-
set(value) = noImpl
611-
var byteLength: Int
593+
open val byteLength: Int
612594
get() = noImpl
613-
set(value) = noImpl
614595
fun get(index: Int): Byte = noImpl
615596
fun set(index: Int, value: Byte): Unit = noImpl
616597
fun set(array: Uint8Array, offset: Int = noImpl): Unit = noImpl
@@ -627,18 +608,14 @@ native public open class Uint8ClampedArray : ArrayBufferView {
627608
constructor(array: Uint8ClampedArray)
628609
constructor(array: Array<Byte>)
629610
constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl)
630-
var length: Int
611+
open val length: Int
631612
get() = noImpl
632-
set(value) = noImpl
633-
var buffer: ArrayBuffer
613+
open val buffer: ArrayBuffer
634614
get() = noImpl
635-
set(value) = noImpl
636-
var byteOffset: Int
615+
open val byteOffset: Int
637616
get() = noImpl
638-
set(value) = noImpl
639-
var byteLength: Int
617+
open val byteLength: Int
640618
get() = noImpl
641-
set(value) = noImpl
642619
fun get(index: Int): Byte = noImpl
643620
fun set(index: Int, value: Byte): Unit = noImpl
644621
fun set(array: Uint8ClampedArray, offset: Int = noImpl): Unit = noImpl
@@ -655,18 +632,14 @@ native public open class Int16Array : ArrayBufferView {
655632
constructor(array: Int16Array)
656633
constructor(array: Array<Short>)
657634
constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl)
658-
var length: Int
635+
open val length: Int
659636
get() = noImpl
660-
set(value) = noImpl
661-
var buffer: ArrayBuffer
637+
open val buffer: ArrayBuffer
662638
get() = noImpl
663-
set(value) = noImpl
664-
var byteOffset: Int
639+
open val byteOffset: Int
665640
get() = noImpl
666-
set(value) = noImpl
667-
var byteLength: Int
641+
open val byteLength: Int
668642
get() = noImpl
669-
set(value) = noImpl
670643
fun get(index: Int): Short = noImpl
671644
fun set(index: Int, value: Short): Unit = noImpl
672645
fun set(array: Int16Array, offset: Int = noImpl): Unit = noImpl
@@ -683,18 +656,14 @@ native public open class Uint16Array : ArrayBufferView {
683656
constructor(array: Uint16Array)
684657
constructor(array: Array<Short>)
685658
constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl)
686-
var length: Int
659+
open val length: Int
687660
get() = noImpl
688-
set(value) = noImpl
689-
var buffer: ArrayBuffer
661+
open val buffer: ArrayBuffer
690662
get() = noImpl
691-
set(value) = noImpl
692-
var byteOffset: Int
663+
open val byteOffset: Int
693664
get() = noImpl
694-
set(value) = noImpl
695-
var byteLength: Int
665+
open val byteLength: Int
696666
get() = noImpl
697-
set(value) = noImpl
698667
fun get(index: Int): Short = noImpl
699668
fun set(index: Int, value: Short): Unit = noImpl
700669
fun set(array: Uint16Array, offset: Int = noImpl): Unit = noImpl
@@ -711,18 +680,14 @@ native public open class Int32Array : ArrayBufferView {
711680
constructor(array: Int32Array)
712681
constructor(array: Array<Int>)
713682
constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl)
714-
var length: Int
683+
open val length: Int
715684
get() = noImpl
716-
set(value) = noImpl
717-
var buffer: ArrayBuffer
685+
open val buffer: ArrayBuffer
718686
get() = noImpl
719-
set(value) = noImpl
720-
var byteOffset: Int
687+
open val byteOffset: Int
721688
get() = noImpl
722-
set(value) = noImpl
723-
var byteLength: Int
689+
open val byteLength: Int
724690
get() = noImpl
725-
set(value) = noImpl
726691
fun get(index: Int): Int = noImpl
727692
fun set(index: Int, value: Int): Unit = noImpl
728693
fun set(array: Int32Array, offset: Int = noImpl): Unit = noImpl
@@ -739,18 +704,14 @@ native public open class Uint32Array : ArrayBufferView {
739704
constructor(array: Uint32Array)
740705
constructor(array: Array<Int>)
741706
constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl)
742-
var length: Int
707+
open val length: Int
743708
get() = noImpl
744-
set(value) = noImpl
745-
var buffer: ArrayBuffer
709+
open val buffer: ArrayBuffer
746710
get() = noImpl
747-
set(value) = noImpl
748-
var byteOffset: Int
711+
open val byteOffset: Int
749712
get() = noImpl
750-
set(value) = noImpl
751-
var byteLength: Int
713+
open val byteLength: Int
752714
get() = noImpl
753-
set(value) = noImpl
754715
fun get(index: Int): Int = noImpl
755716
fun set(index: Int, value: Int): Unit = noImpl
756717
fun set(array: Uint32Array, offset: Int = noImpl): Unit = noImpl
@@ -767,18 +728,14 @@ native public open class Float32Array : ArrayBufferView {
767728
constructor(array: Float32Array)
768729
constructor(array: Array<Float>)
769730
constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl)
770-
var length: Int
731+
open val length: Int
771732
get() = noImpl
772-
set(value) = noImpl
773-
var buffer: ArrayBuffer
733+
open val buffer: ArrayBuffer
774734
get() = noImpl
775-
set(value) = noImpl
776-
var byteOffset: Int
735+
open val byteOffset: Int
777736
get() = noImpl
778-
set(value) = noImpl
779-
var byteLength: Int
737+
open val byteLength: Int
780738
get() = noImpl
781-
set(value) = noImpl
782739
fun get(index: Int): Float = noImpl
783740
fun set(index: Int, value: Float): Unit = noImpl
784741
fun set(array: Float32Array, offset: Int = noImpl): Unit = noImpl
@@ -795,18 +752,14 @@ native public open class Float64Array : ArrayBufferView {
795752
constructor(array: Float64Array)
796753
constructor(array: Array<Double>)
797754
constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl)
798-
var length: Int
755+
open val length: Int
799756
get() = noImpl
800-
set(value) = noImpl
801-
var buffer: ArrayBuffer
757+
open val buffer: ArrayBuffer
802758
get() = noImpl
803-
set(value) = noImpl
804-
var byteOffset: Int
759+
open val byteOffset: Int
805760
get() = noImpl
806-
set(value) = noImpl
807-
var byteLength: Int
761+
open val byteLength: Int
808762
get() = noImpl
809-
set(value) = noImpl
810763
fun get(index: Int): Double = noImpl
811764
fun set(index: Int, value: Double): Unit = noImpl
812765
fun set(array: Float64Array, offset: Int = noImpl): Unit = noImpl
@@ -819,15 +772,12 @@ native public open class Float64Array : ArrayBufferView {
819772
}
820773

821774
native public open class DataView(buffer: ArrayBuffer, byteOffset: Int = noImpl, byteLength: Int = noImpl) : ArrayBufferView {
822-
var buffer: ArrayBuffer
775+
open val buffer: ArrayBuffer
823776
get() = noImpl
824-
set(value) = noImpl
825-
var byteOffset: Int
777+
open val byteOffset: Int
826778
get() = noImpl
827-
set(value) = noImpl
828-
var byteLength: Int
779+
open val byteLength: Int
829780
get() = noImpl
830-
set(value) = noImpl
831781
fun getInt8(byteOffset: Int): Byte = noImpl
832782
fun getUint8(byteOffset: Int): Byte = noImpl
833783
fun getInt16(byteOffset: Int, littleEndian: Boolean = noImpl): Short = noImpl

0 commit comments

Comments
 (0)