diff --git a/libraries/stdlib/wasm/src/org.w3c/org.khronos.webgl.kt b/libraries/stdlib/wasm/src/org.w3c/org.khronos.webgl.kt index 7ca9908c321..ace163d7fe1 100644 --- a/libraries/stdlib/wasm/src/org.w3c/org.khronos.webgl.kt +++ b/libraries/stdlib/wasm/src/org.w3c/org.khronos.webgl.kt @@ -925,12 +925,14 @@ public external open class Int8Array : ArrayBufferView, JsAny { } @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForInt8Array(obj: Int8Array, index: Int): Byte { js("return obj[index];") } @kotlin.internal.InlineOnly public inline operator fun Int8Array.get(index: Int): Byte = getMethodImplForInt8Array(this, index) @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun setMethodImplForInt8Array(obj: Int8Array, index: Int, value: Byte) { js("obj[index] = value;") } @kotlin.internal.InlineOnly @@ -958,12 +960,14 @@ public external open class Uint8Array : ArrayBufferView, JsAny { } @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForUint8Array(obj: Uint8Array, index: Int): Byte { js("return obj[index];") } @kotlin.internal.InlineOnly public inline operator fun Uint8Array.get(index: Int): Byte = getMethodImplForUint8Array(this, index) @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun setMethodImplForUint8Array(obj: Uint8Array, index: Int, value: Byte) { js("obj[index] = value;") } @kotlin.internal.InlineOnly @@ -991,12 +995,14 @@ public external open class Uint8ClampedArray : ArrayBufferView, JsAny { } @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForUint8ClampedArray(obj: Uint8ClampedArray, index: Int): Byte { js("return obj[index];") } @kotlin.internal.InlineOnly public inline operator fun Uint8ClampedArray.get(index: Int): Byte = getMethodImplForUint8ClampedArray(this, index) @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun setMethodImplForUint8ClampedArray(obj: Uint8ClampedArray, index: Int, value: Byte) { js("obj[index] = value;") } @kotlin.internal.InlineOnly @@ -1024,12 +1030,14 @@ public external open class Int16Array : ArrayBufferView, JsAny { } @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForInt16Array(obj: Int16Array, index: Int): Short { js("return obj[index];") } @kotlin.internal.InlineOnly public inline operator fun Int16Array.get(index: Int): Short = getMethodImplForInt16Array(this, index) @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun setMethodImplForInt16Array(obj: Int16Array, index: Int, value: Short) { js("obj[index] = value;") } @kotlin.internal.InlineOnly @@ -1057,12 +1065,14 @@ public external open class Uint16Array : ArrayBufferView, JsAny { } @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForUint16Array(obj: Uint16Array, index: Int): Short { js("return obj[index];") } @kotlin.internal.InlineOnly public inline operator fun Uint16Array.get(index: Int): Short = getMethodImplForUint16Array(this, index) @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun setMethodImplForUint16Array(obj: Uint16Array, index: Int, value: Short) { js("obj[index] = value;") } @kotlin.internal.InlineOnly @@ -1090,12 +1100,14 @@ public external open class Int32Array : ArrayBufferView, JsAny { } @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForInt32Array(obj: Int32Array, index: Int): Int { js("return obj[index];") } @kotlin.internal.InlineOnly public inline operator fun Int32Array.get(index: Int): Int = getMethodImplForInt32Array(this, index) @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun setMethodImplForInt32Array(obj: Int32Array, index: Int, value: Int) { js("obj[index] = value;") } @kotlin.internal.InlineOnly @@ -1123,12 +1135,14 @@ public external open class Uint32Array : ArrayBufferView, JsAny { } @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForUint32Array(obj: Uint32Array, index: Int): Int { js("return obj[index];") } @kotlin.internal.InlineOnly public inline operator fun Uint32Array.get(index: Int): Int = getMethodImplForUint32Array(this, index) @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun setMethodImplForUint32Array(obj: Uint32Array, index: Int, value: Int) { js("obj[index] = value;") } @kotlin.internal.InlineOnly @@ -1156,12 +1170,14 @@ public external open class Float32Array : ArrayBufferView, JsAny { } @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForFloat32Array(obj: Float32Array, index: Int): Float { js("return obj[index];") } @kotlin.internal.InlineOnly public inline operator fun Float32Array.get(index: Int): Float = getMethodImplForFloat32Array(this, index) @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun setMethodImplForFloat32Array(obj: Float32Array, index: Int, value: Float) { js("obj[index] = value;") } @kotlin.internal.InlineOnly @@ -1189,12 +1205,14 @@ public external open class Float64Array : ArrayBufferView, JsAny { } @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForFloat64Array(obj: Float64Array, index: Int): Double { js("return obj[index];") } @kotlin.internal.InlineOnly public inline operator fun Float64Array.get(index: Int): Double = getMethodImplForFloat64Array(this, index) @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun setMethodImplForFloat64Array(obj: Float64Array, index: Int, value: Double) { js("obj[index] = value;") } @kotlin.internal.InlineOnly diff --git a/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.css.kt b/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.css.kt index 1d09eefec34..89cdfa26da5 100644 --- a/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.css.kt +++ b/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.css.kt @@ -20,6 +20,7 @@ public external abstract class MediaList : ItemArrayLike, JsAny { } @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForMediaList(obj: MediaList, index: Int): String? { js("return obj[index];") } @kotlin.internal.InlineOnly @@ -56,6 +57,7 @@ public external abstract class StyleSheetList : ItemArrayLike, JsAny } @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForStyleSheetList(obj: StyleSheetList, index: Int): StyleSheet? { js("return obj[index];") } @kotlin.internal.InlineOnly @@ -77,6 +79,7 @@ public external abstract class CSSRuleList : ItemArrayLike, JsAny { } @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForCSSRuleList(obj: CSSRuleList, index: Int): CSSRule? { js("return obj[index];") } @kotlin.internal.InlineOnly @@ -474,6 +477,7 @@ public external abstract class CSSStyleDeclaration : ItemArrayLike, Js } @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForCSSStyleDeclaration(obj: CSSStyleDeclaration, index: Int): String? { js("return obj[index];") } @kotlin.internal.InlineOnly diff --git a/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.kt b/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.kt index 5b07be9e9b1..545c4117178 100644 --- a/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.kt +++ b/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.kt @@ -31,12 +31,14 @@ public external abstract class HTMLAllCollection : JsAny { } @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForHTMLAllCollection(obj: HTMLAllCollection, index: Int): Element? { js("return obj[index];") } @kotlin.internal.InlineOnly public inline operator fun HTMLAllCollection.get(index: Int): Element? = getMethodImplForHTMLAllCollection(this, index) @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForHTMLAllCollection(obj: HTMLAllCollection, name: String): UnionElementOrHTMLCollection? { js("return obj[name];") } @kotlin.internal.InlineOnly @@ -65,6 +67,7 @@ public external abstract class HTMLOptionsCollection : HTMLCollection, JsAny { } @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun setMethodImplForHTMLOptionsCollection(obj: HTMLOptionsCollection, index: Int, option: HTMLOptionElement?) { js("obj[index] = option;") } @kotlin.internal.InlineOnly @@ -152,12 +155,14 @@ public external abstract class HTMLUnknownElement : HTMLElement, JsAny { public external abstract class DOMStringMap : JsAny @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForDOMStringMap(obj: DOMStringMap, name: String): String? { js("return obj[name];") } @kotlin.internal.InlineOnly public inline operator fun DOMStringMap.get(name: String): String? = getMethodImplForDOMStringMap(this, name) @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun setMethodImplForDOMStringMap(obj: DOMStringMap, name: String, value: String) { js("obj[name] = value;") } @kotlin.internal.InlineOnly @@ -1384,6 +1389,7 @@ public external abstract class AudioTrackList : EventTarget, JsAny { } @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForAudioTrackList(obj: AudioTrackList, index: Int): AudioTrack? { js("return obj[index];") } @kotlin.internal.InlineOnly @@ -1414,6 +1420,7 @@ public external abstract class VideoTrackList : EventTarget, JsAny { } @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForVideoTrackList(obj: VideoTrackList, index: Int): VideoTrack? { js("return obj[index];") } @kotlin.internal.InlineOnly @@ -1440,6 +1447,7 @@ public external abstract class TextTrackList : EventTarget, JsAny { } @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForTextTrackList(obj: TextTrackList, index: Int): TextTrack? { js("return obj[index];") } @kotlin.internal.InlineOnly @@ -1469,6 +1477,7 @@ public external abstract class TextTrackCueList : JsAny { } @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForTextTrackCueList(obj: TextTrackCueList, index: Int): TextTrackCue? { js("return obj[index];") } @kotlin.internal.InlineOnly @@ -1852,12 +1861,14 @@ public external abstract class HTMLFormElement : HTMLElement, JsAny { } @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForHTMLFormElement(obj: HTMLFormElement, index: Int): Element? { js("return obj[index];") } @kotlin.internal.InlineOnly public inline operator fun HTMLFormElement.get(index: Int): Element? = getMethodImplForHTMLFormElement(this, index) @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForHTMLFormElement(obj: HTMLFormElement, name: String): UnionElementOrRadioNodeList? { js("return obj[name];") } @kotlin.internal.InlineOnly @@ -2075,12 +2086,14 @@ public external abstract class HTMLSelectElement : HTMLElement, ItemArrayLike, JsAny { } @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForPluginArray(obj: PluginArray, index: Int): Plugin? { js("return obj[index];") } @kotlin.internal.InlineOnly public inline operator fun PluginArray.get(index: Int): Plugin? = getMethodImplForPluginArray(this, index) @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForPluginArray(obj: PluginArray, name: String): Plugin? { js("return obj[name];") } @kotlin.internal.InlineOnly @@ -3767,12 +3784,14 @@ public external abstract class MimeTypeArray : ItemArrayLike, JsAny { } @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForMimeTypeArray(obj: MimeTypeArray, index: Int): MimeType? { js("return obj[index];") } @kotlin.internal.InlineOnly public inline operator fun MimeTypeArray.get(index: Int): MimeType? = getMethodImplForMimeTypeArray(this, index) @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForMimeTypeArray(obj: MimeTypeArray, name: String): MimeType? { js("return obj[name];") } @kotlin.internal.InlineOnly @@ -3790,12 +3809,14 @@ public external abstract class Plugin : ItemArrayLike, JsAny { } @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForPlugin(obj: Plugin, index: Int): MimeType? { js("return obj[index];") } @kotlin.internal.InlineOnly public inline operator fun Plugin.get(index: Int): MimeType? = getMethodImplForPlugin(this, index) @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForPlugin(obj: Plugin, name: String): MimeType? { js("return obj[name];") } @kotlin.internal.InlineOnly @@ -4115,12 +4136,14 @@ public external abstract class Storage : JsAny { } @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForStorage(obj: Storage, key: String): String? { js("return obj[key];") } @kotlin.internal.InlineOnly public inline operator fun Storage.get(key: String): String? = getMethodImplForStorage(this, key) @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun setMethodImplForStorage(obj: Storage, key: String, value: String) { js("obj[key] = value;") } @kotlin.internal.InlineOnly @@ -4504,6 +4527,7 @@ public external abstract class NodeList : ItemArrayLike, JsAny { } @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForNodeList(obj: NodeList, index: Int): Node? { js("return obj[index];") } @kotlin.internal.InlineOnly @@ -4518,12 +4542,14 @@ public external abstract class HTMLCollection : ItemArrayLike, UnionEle } @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForHTMLCollection(obj: HTMLCollection, index: Int): Element? { js("return obj[index];") } @kotlin.internal.InlineOnly public inline operator fun HTMLCollection.get(index: Int): Element? = getMethodImplForHTMLCollection(this, index) @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForHTMLCollection(obj: HTMLCollection, name: String): Element? { js("return obj[name];") } @kotlin.internal.InlineOnly @@ -4853,6 +4879,7 @@ public external open class Document : Node, GlobalEventHandlers, DocumentAndElem } @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForDocument(obj: Document, name: String): JsAny? { js("return obj[name];") } @kotlin.internal.InlineOnly @@ -5106,12 +5133,14 @@ public external abstract class NamedNodeMap : ItemArrayLike, JsAny { } @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForNamedNodeMap(obj: NamedNodeMap, index: Int): Attr? { js("return obj[index];") } @kotlin.internal.InlineOnly public inline operator fun NamedNodeMap.get(index: Int): Attr? = getMethodImplForNamedNodeMap(this, index) @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForNamedNodeMap(obj: NamedNodeMap, qualifiedName: String): Attr? { js("return obj[qualifiedName];") } @kotlin.internal.InlineOnly @@ -5427,6 +5456,7 @@ public external abstract class DOMTokenList : ItemArrayLike, JsAny { } @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForDOMTokenList(obj: DOMTokenList, index: Int): String? { js("return obj[index];") } @kotlin.internal.InlineOnly @@ -5523,6 +5553,7 @@ public external interface DOMRectList : ItemArrayLike, JsAny { } @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForDOMRectList(obj: DOMRectList, index: Int): DOMRect? { js("return obj[index];") } @kotlin.internal.InlineOnly @@ -5784,6 +5815,7 @@ public external abstract class TouchList : ItemArrayLike, JsAny { } @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForTouchList(obj: TouchList, index: Int): Touch? { js("return obj[index];") } @kotlin.internal.InlineOnly diff --git a/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.mediasource.kt b/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.mediasource.kt index 4162e870c1e..72b21a65ad1 100644 --- a/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.mediasource.kt +++ b/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.mediasource.kt @@ -68,6 +68,7 @@ public external abstract class SourceBufferList : EventTarget, JsAny { } @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForSourceBufferList(obj: SourceBufferList, index: Int): SourceBuffer? { js("return obj[index];") } @kotlin.internal.InlineOnly diff --git a/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.svg.kt b/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.svg.kt index 292fadab009..779439fa3b5 100644 --- a/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.svg.kt +++ b/libraries/stdlib/wasm/src/org.w3c/org.w3c.dom.svg.kt @@ -193,12 +193,14 @@ public external abstract class SVGNameList : JsAny { } @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForSVGNameList(obj: SVGNameList, index: Int): JsAny? { js("return obj[index];") } @kotlin.internal.InlineOnly public inline operator fun SVGNameList.get(index: Int): JsAny? = getMethodImplForSVGNameList(this, index) @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun setMethodImplForSVGNameList(obj: SVGNameList, index: Int, newItem: JsAny?) { js("obj[index] = newItem;") } @kotlin.internal.InlineOnly @@ -220,12 +222,14 @@ public external abstract class SVGNumberList : JsAny { } @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForSVGNumberList(obj: SVGNumberList, index: Int): SVGNumber? { js("return obj[index];") } @kotlin.internal.InlineOnly public inline operator fun SVGNumberList.get(index: Int): SVGNumber? = getMethodImplForSVGNumberList(this, index) @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun setMethodImplForSVGNumberList(obj: SVGNumberList, index: Int, newItem: SVGNumber) { js("obj[index] = newItem;") } @kotlin.internal.InlineOnly @@ -247,12 +251,14 @@ public external abstract class SVGLengthList : JsAny { } @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForSVGLengthList(obj: SVGLengthList, index: Int): SVGLength? { js("return obj[index];") } @kotlin.internal.InlineOnly public inline operator fun SVGLengthList.get(index: Int): SVGLength? = getMethodImplForSVGLengthList(this, index) @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun setMethodImplForSVGLengthList(obj: SVGLengthList, index: Int, newItem: SVGLength) { js("obj[index] = newItem;") } @kotlin.internal.InlineOnly @@ -354,12 +360,14 @@ public external abstract class SVGStringList : JsAny { } @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForSVGStringList(obj: SVGStringList, index: Int): String? { js("return obj[index];") } @kotlin.internal.InlineOnly public inline operator fun SVGStringList.get(index: Int): String? = getMethodImplForSVGStringList(this, index) @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun setMethodImplForSVGStringList(obj: SVGStringList, index: Int, newItem: String) { js("obj[index] = newItem;") } @kotlin.internal.InlineOnly @@ -814,12 +822,14 @@ public external abstract class SVGTransformList : JsAny { } @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForSVGTransformList(obj: SVGTransformList, index: Int): SVGTransform? { js("return obj[index];") } @kotlin.internal.InlineOnly public inline operator fun SVGTransformList.get(index: Int): SVGTransform? = getMethodImplForSVGTransformList(this, index) @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun setMethodImplForSVGTransformList(obj: SVGTransformList, index: Int, newItem: SVGTransform) { js("obj[index] = newItem;") } @kotlin.internal.InlineOnly @@ -1064,12 +1074,14 @@ public external abstract class SVGPointList : JsAny { } @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForSVGPointList(obj: SVGPointList, index: Int): DOMPoint? { js("return obj[index];") } @kotlin.internal.InlineOnly public inline operator fun SVGPointList.get(index: Int): DOMPoint? = getMethodImplForSVGPointList(this, index) @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun setMethodImplForSVGPointList(obj: SVGPointList, index: Int, newItem: DOMPoint) { js("obj[index] = newItem;") } @kotlin.internal.InlineOnly diff --git a/libraries/stdlib/wasm/src/org.w3c/org.w3c.files.kt b/libraries/stdlib/wasm/src/org.w3c/org.w3c.files.kt index 191c7a275d2..a19b0544b44 100644 --- a/libraries/stdlib/wasm/src/org.w3c/org.w3c.files.kt +++ b/libraries/stdlib/wasm/src/org.w3c/org.w3c.files.kt @@ -59,6 +59,7 @@ public external abstract class FileList : ItemArrayLike, JsAny { } @PublishedApi +@Suppress("UNUSED_PARAMETER") internal fun getMethodImplForFileList(obj: FileList, index: Int): File? { js("return obj[index];") } @kotlin.internal.InlineOnly diff --git a/libraries/tools/dukat/src/main/kotlin/org/jetbrains/kotlin/tools/dukat/wasm/convertToModel.kt b/libraries/tools/dukat/src/main/kotlin/org/jetbrains/kotlin/tools/dukat/wasm/convertToModel.kt index b3acaef6ee3..3c4710ceb62 100644 --- a/libraries/tools/dukat/src/main/kotlin/org/jetbrains/kotlin/tools/dukat/wasm/convertToModel.kt +++ b/libraries/tools/dukat/src/main/kotlin/org/jetbrains/kotlin/tools/dukat/wasm/convertToModel.kt @@ -85,6 +85,11 @@ private val PUBLISHED_API_ANNOTATION = AnnotationModel( params = listOf() ) +private val SUPPRESS_UNUSED_PARAMETER_ANNOTATION = AnnotationModel( + IdentifierEntity("Suppress"), + listOf(IdentifierEntity("UNUSED_PARAMETER")) +) + private class IdlFileConverter( private val fileDeclaration: IDLFileDeclaration, private val typeMap: Map, @@ -292,7 +297,8 @@ private class IdlFileConverter( extend = null, operator = false, annotations = mutableListOf( - PUBLISHED_API_ANNOTATION + PUBLISHED_API_ANNOTATION, + SUPPRESS_UNUSED_PARAMETER_ANNOTATION, ), body = BlockStatementModel( listOf( @@ -365,7 +371,8 @@ private class IdlFileConverter( extend = null, operator = false, annotations = mutableListOf( - PUBLISHED_API_ANNOTATION + PUBLISHED_API_ANNOTATION, + SUPPRESS_UNUSED_PARAMETER_ANNOTATION ), body = BlockStatementModel( listOf( @@ -578,10 +585,7 @@ private class IdlFileConverter( ), typeParameters = listOf(), annotations = mutableListOf( - AnnotationModel( - IdentifierEntity("Suppress"), - listOf(IdentifierEntity("UNUSED_PARAMETER")) - ) + SUPPRESS_UNUSED_PARAMETER_ANNOTATION ), export = false, inline = false,