-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathDeclaration.swift
More file actions
29 lines (26 loc) · 969 Bytes
/
Declaration.swift
File metadata and controls
29 lines (26 loc) · 969 Bytes
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
/// https://github.com/w3c/webidl2.js#iterable-async-iterable-maplike-and-setlike-declarations
public protocol IDLDeclaration: IDLInterfaceMember {
var idlType: [IDLType] { get }
var arguments: [IDLArgument] { get }
}
public struct IDLMapLikeDeclaration: IDLDeclaration {
public static let type = "maplike"
public let idlType: [IDLType]
public let readonly: Bool
public let arguments: [IDLArgument]
public let extAttrs: [IDLExtendedAttribute]
}
public struct IDLSetLikeDeclaration: IDLDeclaration {
public static let type = "setlike"
public let idlType: [IDLType]
public let readonly: Bool
public let arguments: [IDLArgument]
public let extAttrs: [IDLExtendedAttribute]
}
public struct IDLIterableDeclaration: IDLDeclaration {
public static let type = "iterable"
public let idlType: [IDLType]
public let async: Bool
public let arguments: [IDLArgument]
public let extAttrs: [IDLExtendedAttribute]
}