-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathconsole.swift
105 lines (84 loc) · 4.49 KB
/
console.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
// This file was auto-generated by WebIDLToSwift. DO NOT EDIT!
import JavaScriptEventLoop
import JavaScriptKit
public enum console {
@inlinable public static var jsObject: JSObject {
JSObject.global[Strings.console].object!
}
@inlinable public static func assert(condition: Bool? = nil, data: JSValue...) {
let this = JSObject.global[Strings.console].object!
_ = this[Strings.assert].function!(this: this, arguments: [condition?.jsValue ?? .undefined] + data.map(\.jsValue))
}
@inlinable public static func clear() {
let this = JSObject.global[Strings.console].object!
_ = this[Strings.clear].function!(this: this, arguments: [])
}
@inlinable public static func debug(data: JSValue...) {
let this = JSObject.global[Strings.console].object!
_ = this[Strings.debug].function!(this: this, arguments: data.map(\.jsValue))
}
@inlinable public static func error(data: JSValue...) {
let this = JSObject.global[Strings.console].object!
_ = this[Strings.error].function!(this: this, arguments: data.map(\.jsValue))
}
@inlinable public static func info(data: JSValue...) {
let this = JSObject.global[Strings.console].object!
_ = this[Strings.info].function!(this: this, arguments: data.map(\.jsValue))
}
@inlinable public static func log(data: JSValue...) {
let this = JSObject.global[Strings.console].object!
_ = this[Strings.log].function!(this: this, arguments: data.map(\.jsValue))
}
@inlinable public static func table(tabularData: JSValue? = nil, properties: [String]? = nil) {
let this = JSObject.global[Strings.console].object!
_ = this[Strings.table].function!(this: this, arguments: [tabularData?.jsValue ?? .undefined, properties?.jsValue ?? .undefined])
}
@inlinable public static func trace(data: JSValue...) {
let this = JSObject.global[Strings.console].object!
_ = this[Strings.trace].function!(this: this, arguments: data.map(\.jsValue))
}
@inlinable public static func warn(data: JSValue...) {
let this = JSObject.global[Strings.console].object!
_ = this[Strings.warn].function!(this: this, arguments: data.map(\.jsValue))
}
@inlinable public static func dir(item: JSValue? = nil, options: JSObject? = nil) {
let this = JSObject.global[Strings.console].object!
_ = this[Strings.dir].function!(this: this, arguments: [item?.jsValue ?? .undefined, options?.jsValue ?? .undefined])
}
@inlinable public static func dirxml(data: JSValue...) {
let this = JSObject.global[Strings.console].object!
_ = this[Strings.dirxml].function!(this: this, arguments: data.map(\.jsValue))
}
@inlinable public static func count(label: String? = nil) {
let this = JSObject.global[Strings.console].object!
_ = this[Strings.count].function!(this: this, arguments: [label?.jsValue ?? .undefined])
}
@inlinable public static func countReset(label: String? = nil) {
let this = JSObject.global[Strings.console].object!
_ = this[Strings.countReset].function!(this: this, arguments: [label?.jsValue ?? .undefined])
}
@inlinable public static func group(data: JSValue...) {
let this = JSObject.global[Strings.console].object!
_ = this[Strings.group].function!(this: this, arguments: data.map(\.jsValue))
}
@inlinable public static func groupCollapsed(data: JSValue...) {
let this = JSObject.global[Strings.console].object!
_ = this[Strings.groupCollapsed].function!(this: this, arguments: data.map(\.jsValue))
}
@inlinable public static func groupEnd() {
let this = JSObject.global[Strings.console].object!
_ = this[Strings.groupEnd].function!(this: this, arguments: [])
}
@inlinable public static func time(label: String? = nil) {
let this = JSObject.global[Strings.console].object!
_ = this[Strings.time].function!(this: this, arguments: [label?.jsValue ?? .undefined])
}
@inlinable public static func timeLog(label: String? = nil, data: JSValue...) {
let this = JSObject.global[Strings.console].object!
_ = this[Strings.timeLog].function!(this: this, arguments: [label?.jsValue ?? .undefined] + data.map(\.jsValue))
}
@inlinable public static func timeEnd(label: String? = nil) {
let this = JSObject.global[Strings.console].object!
_ = this[Strings.timeEnd].function!(this: this, arguments: [label?.jsValue ?? .undefined])
}
}