JS and IDL2K: make dictionary builder functions public

This commit is contained in:
Sergey Mashkov
2015-06-22 12:57:23 +03:00
parent 3caeddd8dc
commit 0e518e46bb
9 changed files with 52 additions and 52 deletions
@@ -32,7 +32,7 @@ native public interface WebGLContextAttributes {
}
suppress("NOTHING_TO_INLINE")
inline fun WebGLContextAttributes(alpha: Boolean = true, depth: Boolean = true, stencil: Boolean = false, antialias: Boolean = true, premultipliedAlpha: Boolean = true, preserveDrawingBuffer: Boolean = false, preferLowPowerToHighPerformance: Boolean = false, failIfMajorPerformanceCaveat: Boolean = false): WebGLContextAttributes {
public inline fun WebGLContextAttributes(alpha: Boolean = true, depth: Boolean = true, stencil: Boolean = false, antialias: Boolean = true, premultipliedAlpha: Boolean = true, preserveDrawingBuffer: Boolean = false, preferLowPowerToHighPerformance: Boolean = false, failIfMajorPerformanceCaveat: Boolean = false): WebGLContextAttributes {
val o = js("({})")
o["alpha"] = alpha
@@ -562,7 +562,7 @@ native public interface WebGLContextEventInit : EventInit {
}
suppress("NOTHING_TO_INLINE")
inline fun WebGLContextEventInit(statusMessage: String, bubbles: Boolean = false, cancelable: Boolean = false): WebGLContextEventInit {
public inline fun WebGLContextEventInit(statusMessage: String, bubbles: Boolean = false, cancelable: Boolean = false): WebGLContextEventInit {
val o = js("({})")
o["statusMessage"] = statusMessage
@@ -127,7 +127,7 @@ native public interface UIEventInit : EventInit {
}
suppress("NOTHING_TO_INLINE")
inline fun UIEventInit(view: Window? = null, detail: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): UIEventInit {
public inline fun UIEventInit(view: Window? = null, detail: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): UIEventInit {
val o = js("({})")
o["view"] = view
@@ -149,7 +149,7 @@ native public interface FocusEventInit : UIEventInit {
}
suppress("NOTHING_TO_INLINE")
inline fun FocusEventInit(relatedTarget: EventTarget? = null, view: Window? = null, detail: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): FocusEventInit {
public inline fun FocusEventInit(relatedTarget: EventTarget? = null, view: Window? = null, detail: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): FocusEventInit {
val o = js("({})")
o["relatedTarget"] = relatedTarget
@@ -172,7 +172,7 @@ native public interface MouseEventInit : EventModifierInit {
}
suppress("NOTHING_TO_INLINE")
inline fun MouseEventInit(screenX: Int = 0, screenY: Int = 0, clientX: Int = 0, clientY: Int = 0, button: Short = 0, buttons: Short = 0, relatedTarget: EventTarget? = null, ctrlKey: Boolean = false, shiftKey: Boolean = false, altKey: Boolean = false, metaKey: Boolean = false, modifierAltGraph: Boolean = false, modifierCapsLock: Boolean = false, modifierFn: Boolean = false, modifierFnLock: Boolean = false, modifierHyper: Boolean = false, modifierNumLock: Boolean = false, modifierOS: Boolean = false, modifierScrollLock: Boolean = false, modifierSuper: Boolean = false, modifierSymbol: Boolean = false, modifierSymbolLock: Boolean = false, view: Window? = null, detail: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): MouseEventInit {
public inline fun MouseEventInit(screenX: Int = 0, screenY: Int = 0, clientX: Int = 0, clientY: Int = 0, button: Short = 0, buttons: Short = 0, relatedTarget: EventTarget? = null, ctrlKey: Boolean = false, shiftKey: Boolean = false, altKey: Boolean = false, metaKey: Boolean = false, modifierAltGraph: Boolean = false, modifierCapsLock: Boolean = false, modifierFn: Boolean = false, modifierFnLock: Boolean = false, modifierHyper: Boolean = false, modifierNumLock: Boolean = false, modifierOS: Boolean = false, modifierScrollLock: Boolean = false, modifierSuper: Boolean = false, modifierSymbol: Boolean = false, modifierSymbolLock: Boolean = false, view: Window? = null, detail: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): MouseEventInit {
val o = js("({})")
o["screenX"] = screenX
@@ -224,7 +224,7 @@ native public interface EventModifierInit : UIEventInit {
}
suppress("NOTHING_TO_INLINE")
inline fun EventModifierInit(ctrlKey: Boolean = false, shiftKey: Boolean = false, altKey: Boolean = false, metaKey: Boolean = false, modifierAltGraph: Boolean = false, modifierCapsLock: Boolean = false, modifierFn: Boolean = false, modifierFnLock: Boolean = false, modifierHyper: Boolean = false, modifierNumLock: Boolean = false, modifierOS: Boolean = false, modifierScrollLock: Boolean = false, modifierSuper: Boolean = false, modifierSymbol: Boolean = false, modifierSymbolLock: Boolean = false, view: Window? = null, detail: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): EventModifierInit {
public inline fun EventModifierInit(ctrlKey: Boolean = false, shiftKey: Boolean = false, altKey: Boolean = false, metaKey: Boolean = false, modifierAltGraph: Boolean = false, modifierCapsLock: Boolean = false, modifierFn: Boolean = false, modifierFnLock: Boolean = false, modifierHyper: Boolean = false, modifierNumLock: Boolean = false, modifierOS: Boolean = false, modifierScrollLock: Boolean = false, modifierSuper: Boolean = false, modifierSymbol: Boolean = false, modifierSymbolLock: Boolean = false, view: Window? = null, detail: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): EventModifierInit {
val o = js("({})")
o["ctrlKey"] = ctrlKey
@@ -276,7 +276,7 @@ native public interface WheelEventInit : MouseEventInit {
}
suppress("NOTHING_TO_INLINE")
inline fun WheelEventInit(deltaX: Double = 0.0, deltaY: Double = 0.0, deltaZ: Double = 0.0, deltaMode: Int = 0, screenX: Int = 0, screenY: Int = 0, clientX: Int = 0, clientY: Int = 0, button: Short = 0, buttons: Short = 0, relatedTarget: EventTarget? = null, ctrlKey: Boolean = false, shiftKey: Boolean = false, altKey: Boolean = false, metaKey: Boolean = false, modifierAltGraph: Boolean = false, modifierCapsLock: Boolean = false, modifierFn: Boolean = false, modifierFnLock: Boolean = false, modifierHyper: Boolean = false, modifierNumLock: Boolean = false, modifierOS: Boolean = false, modifierScrollLock: Boolean = false, modifierSuper: Boolean = false, modifierSymbol: Boolean = false, modifierSymbolLock: Boolean = false, view: Window? = null, detail: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): WheelEventInit {
public inline fun WheelEventInit(deltaX: Double = 0.0, deltaY: Double = 0.0, deltaZ: Double = 0.0, deltaMode: Int = 0, screenX: Int = 0, screenY: Int = 0, clientX: Int = 0, clientY: Int = 0, button: Short = 0, buttons: Short = 0, relatedTarget: EventTarget? = null, ctrlKey: Boolean = false, shiftKey: Boolean = false, altKey: Boolean = false, metaKey: Boolean = false, modifierAltGraph: Boolean = false, modifierCapsLock: Boolean = false, modifierFn: Boolean = false, modifierFnLock: Boolean = false, modifierHyper: Boolean = false, modifierNumLock: Boolean = false, modifierOS: Boolean = false, modifierScrollLock: Boolean = false, modifierSuper: Boolean = false, modifierSymbol: Boolean = false, modifierSymbolLock: Boolean = false, view: Window? = null, detail: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): WheelEventInit {
val o = js("({})")
o["deltaX"] = deltaX
@@ -358,7 +358,7 @@ native public interface KeyboardEventInit : EventModifierInit {
}
suppress("NOTHING_TO_INLINE")
inline fun KeyboardEventInit(key: String = "", code: String = "", location: Int = 0, repeat: Boolean = false, isComposing: Boolean = false, ctrlKey: Boolean = false, shiftKey: Boolean = false, altKey: Boolean = false, metaKey: Boolean = false, modifierAltGraph: Boolean = false, modifierCapsLock: Boolean = false, modifierFn: Boolean = false, modifierFnLock: Boolean = false, modifierHyper: Boolean = false, modifierNumLock: Boolean = false, modifierOS: Boolean = false, modifierScrollLock: Boolean = false, modifierSuper: Boolean = false, modifierSymbol: Boolean = false, modifierSymbolLock: Boolean = false, view: Window? = null, detail: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): KeyboardEventInit {
public inline fun KeyboardEventInit(key: String = "", code: String = "", location: Int = 0, repeat: Boolean = false, isComposing: Boolean = false, ctrlKey: Boolean = false, shiftKey: Boolean = false, altKey: Boolean = false, metaKey: Boolean = false, modifierAltGraph: Boolean = false, modifierCapsLock: Boolean = false, modifierFn: Boolean = false, modifierFnLock: Boolean = false, modifierHyper: Boolean = false, modifierNumLock: Boolean = false, modifierOS: Boolean = false, modifierScrollLock: Boolean = false, modifierSuper: Boolean = false, modifierSymbol: Boolean = false, modifierSymbolLock: Boolean = false, view: Window? = null, detail: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): KeyboardEventInit {
val o = js("({})")
o["key"] = key
@@ -400,7 +400,7 @@ native public interface CompositionEventInit : UIEventInit {
}
suppress("NOTHING_TO_INLINE")
inline fun CompositionEventInit(data: String = "", view: Window? = null, detail: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): CompositionEventInit {
public inline fun CompositionEventInit(data: String = "", view: Window? = null, detail: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): CompositionEventInit {
val o = js("({})")
o["data"] = data
+26 -26
View File
@@ -1622,7 +1622,7 @@ native public interface TrackEventInit : EventInit {
}
suppress("NOTHING_TO_INLINE")
inline fun TrackEventInit(track: UnionAudioTrackOrTextTrackOrVideoTrack?, bubbles: Boolean = false, cancelable: Boolean = false): TrackEventInit {
public inline fun TrackEventInit(track: UnionAudioTrackOrTextTrackOrVideoTrack?, bubbles: Boolean = false, cancelable: Boolean = false): TrackEventInit {
val o = js("({})")
o["track"] = track
@@ -2469,7 +2469,7 @@ native public interface AutocompleteErrorEventInit : EventInit {
}
suppress("NOTHING_TO_INLINE")
inline fun AutocompleteErrorEventInit(reason: String, bubbles: Boolean = false, cancelable: Boolean = false): AutocompleteErrorEventInit {
public inline fun AutocompleteErrorEventInit(reason: String, bubbles: Boolean = false, cancelable: Boolean = false): AutocompleteErrorEventInit {
val o = js("({})")
o["reason"] = reason
@@ -2558,7 +2558,7 @@ native public interface RelatedEventInit : EventInit {
}
suppress("NOTHING_TO_INLINE")
inline fun RelatedEventInit(relatedTarget: EventTarget?, bubbles: Boolean = false, cancelable: Boolean = false): RelatedEventInit {
public inline fun RelatedEventInit(relatedTarget: EventTarget?, bubbles: Boolean = false, cancelable: Boolean = false): RelatedEventInit {
val o = js("({})")
o["relatedTarget"] = relatedTarget
@@ -2639,7 +2639,7 @@ native public interface CanvasRenderingContext2DSettings {
}
suppress("NOTHING_TO_INLINE")
inline fun CanvasRenderingContext2DSettings(alpha: Boolean = true): CanvasRenderingContext2DSettings {
public inline fun CanvasRenderingContext2DSettings(alpha: Boolean = true): CanvasRenderingContext2DSettings {
val o = js("({})")
o["alpha"] = alpha
@@ -2820,7 +2820,7 @@ native public interface HitRegionOptions {
}
suppress("NOTHING_TO_INLINE")
inline fun HitRegionOptions(path: Path2D? = null, fillRule: String = "nonzero", id: String = "", parentID: String? = null, cursor: String = "inherit", control: Element? = null, label: String? = null, role: String? = null): HitRegionOptions {
public inline fun HitRegionOptions(path: Path2D? = null, fillRule: String = "nonzero", id: String = "", parentID: String? = null, cursor: String = "inherit", control: Element? = null, label: String? = null, role: String? = null): HitRegionOptions {
val o = js("({})")
o["path"] = path
@@ -2953,7 +2953,7 @@ native public interface DragEventInit : MouseEventInit {
}
suppress("NOTHING_TO_INLINE")
inline fun DragEventInit(dataTransfer: DataTransfer?, screenX: Int = 0, screenY: Int = 0, clientX: Int = 0, clientY: Int = 0, button: Short = 0, buttons: Short = 0, relatedTarget: EventTarget? = null, ctrlKey: Boolean = false, shiftKey: Boolean = false, altKey: Boolean = false, metaKey: Boolean = false, modifierAltGraph: Boolean = false, modifierCapsLock: Boolean = false, modifierFn: Boolean = false, modifierFnLock: Boolean = false, modifierHyper: Boolean = false, modifierNumLock: Boolean = false, modifierOS: Boolean = false, modifierScrollLock: Boolean = false, modifierSuper: Boolean = false, modifierSymbol: Boolean = false, modifierSymbolLock: Boolean = false, view: Window? = null, detail: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): DragEventInit {
public inline fun DragEventInit(dataTransfer: DataTransfer?, screenX: Int = 0, screenY: Int = 0, clientX: Int = 0, clientY: Int = 0, button: Short = 0, buttons: Short = 0, relatedTarget: EventTarget? = null, ctrlKey: Boolean = false, shiftKey: Boolean = false, altKey: Boolean = false, metaKey: Boolean = false, modifierAltGraph: Boolean = false, modifierCapsLock: Boolean = false, modifierFn: Boolean = false, modifierFnLock: Boolean = false, modifierHyper: Boolean = false, modifierNumLock: Boolean = false, modifierOS: Boolean = false, modifierScrollLock: Boolean = false, modifierSuper: Boolean = false, modifierSymbol: Boolean = false, modifierSymbolLock: Boolean = false, view: Window? = null, detail: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): DragEventInit {
val o = js("({})")
o["dataTransfer"] = dataTransfer
@@ -3409,7 +3409,7 @@ native public interface PopStateEventInit : EventInit {
}
suppress("NOTHING_TO_INLINE")
inline fun PopStateEventInit(state: Any?, bubbles: Boolean = false, cancelable: Boolean = false): PopStateEventInit {
public inline fun PopStateEventInit(state: Any?, bubbles: Boolean = false, cancelable: Boolean = false): PopStateEventInit {
val o = js("({})")
o["state"] = state
@@ -3432,7 +3432,7 @@ native public interface HashChangeEventInit : EventInit {
}
suppress("NOTHING_TO_INLINE")
inline fun HashChangeEventInit(oldURL: String, newURL: String, bubbles: Boolean = false, cancelable: Boolean = false): HashChangeEventInit {
public inline fun HashChangeEventInit(oldURL: String, newURL: String, bubbles: Boolean = false, cancelable: Boolean = false): HashChangeEventInit {
val o = js("({})")
o["oldURL"] = oldURL
@@ -3453,7 +3453,7 @@ native public interface PageTransitionEventInit : EventInit {
}
suppress("NOTHING_TO_INLINE")
inline fun PageTransitionEventInit(persisted: Boolean, bubbles: Boolean = false, cancelable: Boolean = false): PageTransitionEventInit {
public inline fun PageTransitionEventInit(persisted: Boolean, bubbles: Boolean = false, cancelable: Boolean = false): PageTransitionEventInit {
val o = js("({})")
o["persisted"] = persisted
@@ -3532,7 +3532,7 @@ native public interface ErrorEventInit : EventInit {
}
suppress("NOTHING_TO_INLINE")
inline fun ErrorEventInit(message: String, filename: String, lineno: Int, colno: Int, error: Any?, bubbles: Boolean = false, cancelable: Boolean = false): ErrorEventInit {
public inline fun ErrorEventInit(message: String, filename: String, lineno: Int, colno: Int, error: Any?, bubbles: Boolean = false, cancelable: Boolean = false): ErrorEventInit {
val o = js("({})")
o["message"] = message
@@ -3668,7 +3668,7 @@ native public interface MessageEventInit : EventInit {
}
suppress("NOTHING_TO_INLINE")
inline fun MessageEventInit(data: Any?, origin: String, lastEventId: String, source: UnionMessagePortOrWindow?, ports: Array<MessagePort>, bubbles: Boolean = false, cancelable: Boolean = false): MessageEventInit {
public inline fun MessageEventInit(data: Any?, origin: String, lastEventId: String, source: UnionMessagePortOrWindow?, ports: Array<MessagePort>, bubbles: Boolean = false, cancelable: Boolean = false): MessageEventInit {
val o = js("({})")
o["data"] = data
@@ -3712,7 +3712,7 @@ native public interface EventSourceInit {
}
suppress("NOTHING_TO_INLINE")
inline fun EventSourceInit(withCredentials: Boolean = false): EventSourceInit {
public inline fun EventSourceInit(withCredentials: Boolean = false): EventSourceInit {
val o = js("({})")
o["withCredentials"] = withCredentials
@@ -3776,7 +3776,7 @@ native public interface CloseEventInit : EventInit {
}
suppress("NOTHING_TO_INLINE")
inline fun CloseEventInit(wasClean: Boolean, code: Short, reason: String, bubbles: Boolean = false, cancelable: Boolean = false): CloseEventInit {
public inline fun CloseEventInit(wasClean: Boolean, code: Short, reason: String, bubbles: Boolean = false, cancelable: Boolean = false): CloseEventInit {
val o = js("({})")
o["wasClean"] = wasClean
@@ -3975,7 +3975,7 @@ native public interface StorageEventInit : EventInit {
}
suppress("NOTHING_TO_INLINE")
inline fun StorageEventInit(key: String?, oldValue: String?, newValue: String?, url: String, storageArea: Storage?, bubbles: Boolean = false, cancelable: Boolean = false): StorageEventInit {
public inline fun StorageEventInit(key: String?, oldValue: String?, newValue: String?, url: String, storageArea: Storage?, bubbles: Boolean = false, cancelable: Boolean = false): StorageEventInit {
val o = js("({})")
o["key"] = key
@@ -4241,7 +4241,7 @@ native public interface EventInit {
}
suppress("NOTHING_TO_INLINE")
inline fun EventInit(bubbles: Boolean = false, cancelable: Boolean = false): EventInit {
public inline fun EventInit(bubbles: Boolean = false, cancelable: Boolean = false): EventInit {
val o = js("({})")
o["bubbles"] = bubbles
@@ -4261,7 +4261,7 @@ native public interface CustomEventInit : EventInit {
}
suppress("NOTHING_TO_INLINE")
inline fun CustomEventInit(detail: Any? = null, bubbles: Boolean = false, cancelable: Boolean = false): CustomEventInit {
public inline fun CustomEventInit(detail: Any? = null, bubbles: Boolean = false, cancelable: Boolean = false): CustomEventInit {
val o = js("({})")
o["detail"] = detail
@@ -4304,7 +4304,7 @@ native public interface MutationObserverInit {
}
suppress("NOTHING_TO_INLINE")
inline fun MutationObserverInit(childList: Boolean = false, attributes: Boolean, characterData: Boolean, subtree: Boolean = false, attributeOldValue: Boolean, characterDataOldValue: Boolean, attributeFilter: Array<String>): MutationObserverInit {
public inline fun MutationObserverInit(childList: Boolean = false, attributes: Boolean, characterData: Boolean, subtree: Boolean = false, attributeOldValue: Boolean, characterDataOldValue: Boolean, attributeFilter: Array<String>): MutationObserverInit {
val o = js("({})")
o["childList"] = childList
@@ -4784,7 +4784,7 @@ native public interface EditingBeforeInputEventInit : EventInit {
}
suppress("NOTHING_TO_INLINE")
inline fun EditingBeforeInputEventInit(command: String, value: String, bubbles: Boolean = false, cancelable: Boolean = false): EditingBeforeInputEventInit {
public inline fun EditingBeforeInputEventInit(command: String, value: String, bubbles: Boolean = false, cancelable: Boolean = false): EditingBeforeInputEventInit {
val o = js("({})")
o["command"] = command
@@ -4808,7 +4808,7 @@ native public interface EditingInputEventInit : EventInit {
}
suppress("NOTHING_TO_INLINE")
inline fun EditingInputEventInit(command: String, value: String, bubbles: Boolean = false, cancelable: Boolean = false): EditingInputEventInit {
public inline fun EditingInputEventInit(command: String, value: String, bubbles: Boolean = false, cancelable: Boolean = false): EditingInputEventInit {
val o = js("({})")
o["command"] = command
@@ -4856,7 +4856,7 @@ native public interface DOMPointInit {
}
suppress("NOTHING_TO_INLINE")
inline fun DOMPointInit(x: Double = 0.0, y: Double = 0.0, z: Double = 0.0, w: Double = 1.0): DOMPointInit {
public inline fun DOMPointInit(x: Double = 0.0, y: Double = 0.0, z: Double = 0.0, w: Double = 1.0): DOMPointInit {
val o = js("({})")
o["x"] = x
@@ -4909,7 +4909,7 @@ native public interface DOMRectInit {
}
suppress("NOTHING_TO_INLINE")
inline fun DOMRectInit(x: Double = 0.0, y: Double = 0.0, width: Double = 0.0, height: Double = 0.0): DOMRectInit {
public inline fun DOMRectInit(x: Double = 0.0, y: Double = 0.0, width: Double = 0.0, height: Double = 0.0): DOMRectInit {
val o = js("({})")
o["x"] = x
@@ -5094,7 +5094,7 @@ native public interface ScrollOptions {
}
suppress("NOTHING_TO_INLINE")
inline fun ScrollOptions(behavior: String = "auto"): ScrollOptions {
public inline fun ScrollOptions(behavior: String = "auto"): ScrollOptions {
val o = js("({})")
o["behavior"] = behavior
@@ -5139,7 +5139,7 @@ native public interface ScrollOptionsHorizontal : ScrollOptions {
}
suppress("NOTHING_TO_INLINE")
inline fun ScrollOptionsHorizontal(x: Double, behavior: String = "auto"): ScrollOptionsHorizontal {
public inline fun ScrollOptionsHorizontal(x: Double, behavior: String = "auto"): ScrollOptionsHorizontal {
val o = js("({})")
o["x"] = x
@@ -5153,7 +5153,7 @@ native public interface ScrollOptionsVertical : ScrollOptions {
}
suppress("NOTHING_TO_INLINE")
inline fun ScrollOptionsVertical(y: Double, behavior: String = "auto"): ScrollOptionsVertical {
public inline fun ScrollOptionsVertical(y: Double, behavior: String = "auto"): ScrollOptionsVertical {
val o = js("({})")
o["y"] = y
@@ -5168,7 +5168,7 @@ native public interface BoxQuadOptions {
}
suppress("NOTHING_TO_INLINE")
inline fun BoxQuadOptions(box: String = "border", relativeTo: GeometryNode): BoxQuadOptions {
public inline fun BoxQuadOptions(box: String = "border", relativeTo: GeometryNode): BoxQuadOptions {
val o = js("({})")
o["box"] = box
@@ -5183,7 +5183,7 @@ native public interface ConvertCoordinateOptions {
}
suppress("NOTHING_TO_INLINE")
inline fun ConvertCoordinateOptions(fromBox: String = "border", toBox: String = "border"): ConvertCoordinateOptions {
public inline fun ConvertCoordinateOptions(fromBox: String = "border", toBox: String = "border"): ConvertCoordinateOptions {
val o = js("({})")
o["fromBox"] = fromBox
@@ -69,7 +69,7 @@ native public interface RequestInit {
}
suppress("NOTHING_TO_INLINE")
inline fun RequestInit(method: String, headers: dynamic, body: dynamic, mode: String, credentials: String, cache: String, redirect: String): RequestInit {
public inline fun RequestInit(method: String, headers: dynamic, body: dynamic, mode: String, credentials: String, cache: String, redirect: String): RequestInit {
val o = js("({})")
o["method"] = method
@@ -118,7 +118,7 @@ native public interface ResponseInit {
}
suppress("NOTHING_TO_INLINE")
inline fun ResponseInit(status: Short = 200, statusText: String = "OK", headers: dynamic): ResponseInit {
public inline fun ResponseInit(status: Short = 200, statusText: String = "OK", headers: dynamic): ResponseInit {
val o = js("({})")
o["status"] = status
@@ -37,7 +37,7 @@ native public interface BlobPropertyBag {
}
suppress("NOTHING_TO_INLINE")
inline fun BlobPropertyBag(type: String = ""): BlobPropertyBag {
public inline fun BlobPropertyBag(type: String = ""): BlobPropertyBag {
val o = js("({})")
o["type"] = type
@@ -58,7 +58,7 @@ native public interface FilePropertyBag {
}
suppress("NOTHING_TO_INLINE")
inline fun FilePropertyBag(type: String = "", lastModified: Int): FilePropertyBag {
public inline fun FilePropertyBag(type: String = "", lastModified: Int): FilePropertyBag {
val o = js("({})")
o["type"] = type
@@ -77,7 +77,7 @@ native public interface NotificationOptions {
}
suppress("NOTHING_TO_INLINE")
inline fun NotificationOptions(dir: String = "auto", lang: String = "", body: String = "", tag: String = "", icon: String, sound: String, vibrate: dynamic, renotify: Boolean = false, silent: Boolean = false, noscreen: Boolean = false, sticky: Boolean = false, data: Any? = null): NotificationOptions {
public inline fun NotificationOptions(dir: String = "auto", lang: String = "", body: String = "", tag: String = "", icon: String, sound: String, vibrate: dynamic, renotify: Boolean = false, silent: Boolean = false, noscreen: Boolean = false, sticky: Boolean = false, data: Any? = null): NotificationOptions {
val o = js("({})")
o["dir"] = dir
@@ -101,7 +101,7 @@ native public interface GetNotificationOptions {
}
suppress("NOTHING_TO_INLINE")
inline fun GetNotificationOptions(tag: String = ""): GetNotificationOptions {
public inline fun GetNotificationOptions(tag: String = ""): GetNotificationOptions {
val o = js("({})")
o["tag"] = tag
@@ -119,7 +119,7 @@ native public interface NotificationEventInit : ExtendableEventInit {
}
suppress("NOTHING_TO_INLINE")
inline fun NotificationEventInit(notification: Notification, bubbles: Boolean = false, cancelable: Boolean = false): NotificationEventInit {
public inline fun NotificationEventInit(notification: Notification, bubbles: Boolean = false, cancelable: Boolean = false): NotificationEventInit {
val o = js("({})")
o["notification"] = notification
@@ -107,7 +107,7 @@ native public interface RegistrationOptions {
}
suppress("NOTHING_TO_INLINE")
inline fun RegistrationOptions(scope: String): RegistrationOptions {
public inline fun RegistrationOptions(scope: String): RegistrationOptions {
val o = js("({})")
o["scope"] = scope
@@ -138,7 +138,7 @@ native public interface ServiceWorkerMessageEventInit : EventInit {
}
suppress("NOTHING_TO_INLINE")
inline fun ServiceWorkerMessageEventInit(data: Any?, origin: String, lastEventId: String, source: UnionMessagePortOrServiceWorker?, ports: Array<MessagePort>, bubbles: Boolean = false, cancelable: Boolean = false): ServiceWorkerMessageEventInit {
public inline fun ServiceWorkerMessageEventInit(data: Any?, origin: String, lastEventId: String, source: UnionMessagePortOrServiceWorker?, ports: Array<MessagePort>, bubbles: Boolean = false, cancelable: Boolean = false): ServiceWorkerMessageEventInit {
val o = js("({})")
o["data"] = data
@@ -182,7 +182,7 @@ native public interface ClientQueryOptions {
}
suppress("NOTHING_TO_INLINE")
inline fun ClientQueryOptions(includeUncontrolled: Boolean = false, type: String = "window"): ClientQueryOptions {
public inline fun ClientQueryOptions(includeUncontrolled: Boolean = false, type: String = "window"): ClientQueryOptions {
val o = js("({})")
o["includeUncontrolled"] = includeUncontrolled
@@ -199,7 +199,7 @@ native public interface ExtendableEventInit : EventInit {
}
suppress("NOTHING_TO_INLINE")
inline fun ExtendableEventInit(bubbles: Boolean = false, cancelable: Boolean = false): ExtendableEventInit {
public inline fun ExtendableEventInit(bubbles: Boolean = false, cancelable: Boolean = false): ExtendableEventInit {
val o = js("({})")
o["bubbles"] = bubbles
@@ -225,7 +225,7 @@ native public interface FetchEventInit : ExtendableEventInit {
}
suppress("NOTHING_TO_INLINE")
inline fun FetchEventInit(request: Request, client: Client, isReload: Boolean = false, bubbles: Boolean = false, cancelable: Boolean = false): FetchEventInit {
public inline fun FetchEventInit(request: Request, client: Client, isReload: Boolean = false, bubbles: Boolean = false, cancelable: Boolean = false): FetchEventInit {
val o = js("({})")
o["request"] = request
@@ -260,7 +260,7 @@ native public interface ExtendableMessageEventInit : ExtendableEventInit {
}
suppress("NOTHING_TO_INLINE")
inline fun ExtendableMessageEventInit(data: Any?, origin: String, lastEventId: String, source: UnionClientOrMessagePortOrServiceWorker?, ports: Array<MessagePort>, bubbles: Boolean = false, cancelable: Boolean = false): ExtendableMessageEventInit {
public inline fun ExtendableMessageEventInit(data: Any?, origin: String, lastEventId: String, source: UnionClientOrMessagePortOrServiceWorker?, ports: Array<MessagePort>, bubbles: Boolean = false, cancelable: Boolean = false): ExtendableMessageEventInit {
val o = js("({})")
o["data"] = data
@@ -292,7 +292,7 @@ native public interface CacheQueryOptions {
}
suppress("NOTHING_TO_INLINE")
inline fun CacheQueryOptions(ignoreSearch: Boolean = false, ignoreMethod: Boolean = false, ignoreVary: Boolean = false, cacheName: String): CacheQueryOptions {
public inline fun CacheQueryOptions(ignoreSearch: Boolean = false, ignoreMethod: Boolean = false, ignoreVary: Boolean = false, cacheName: String): CacheQueryOptions {
val o = js("({})")
o["ignoreSearch"] = ignoreSearch
@@ -311,7 +311,7 @@ native public interface CacheBatchOperation {
}
suppress("NOTHING_TO_INLINE")
inline fun CacheBatchOperation(type: String, request: Request, response: Response, options: CacheQueryOptions): CacheBatchOperation {
public inline fun CacheBatchOperation(type: String, request: Request, response: Response, options: CacheQueryOptions): CacheBatchOperation {
val o = js("({})")
o["type"] = type
+1 -1
View File
@@ -119,7 +119,7 @@ native public interface ProgressEventInit : EventInit {
}
suppress("NOTHING_TO_INLINE")
inline fun ProgressEventInit(lengthComputable: Boolean = false, loaded: Int = 0, total: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): ProgressEventInit {
public inline fun ProgressEventInit(lengthComputable: Boolean = false, loaded: Int = 0, total: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): ProgressEventInit {
val o = js("({})")
o["lengthComputable"] = lengthComputable
@@ -193,7 +193,7 @@ fun Appendable.renderBuilderFunction(dictionary: GenerateTraitOrClass, allSuperT
val fields = (dictionary.memberAttributes + allSuperTypes.flatMap { it.memberAttributes }).distinctBy { it.signature }.map { it.copy(kind = AttributeKind.ARGUMENT) }.dynamicIfUnknownType(allTypes)
appendln("suppress(\"NOTHING_TO_INLINE\")")
append("inline fun ${dictionary.name}")
append("public inline fun ${dictionary.name}")
renderArgumentsDeclaration(fields)
appendln(": ${dictionary.name} {")