-
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support async iterable<> (#365)
- Loading branch information
Showing
14 changed files
with
148 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,6 +50,7 @@ const nonRegexTerminals = [ | |
"Infinity", | ||
"NaN", | ||
"Promise", | ||
"async", | ||
"boolean", | ||
"byte", | ||
"double", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Syntax error at line 3 in async-iterable-readonly.webidl, since `interface AsyncIterable`: | ||
readonly async iterable<long | ||
^ Missing return type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Syntax error at line 3 in async-iterable-single.webidl, since `interface AsyncIterable`: | ||
async iterable<long>; | ||
^ Missing second type argument in iterable declaration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Syntax error at line 3 in async-maplike.webidl, since `interface AsyncIterable`: | ||
async maplike<DOMString, | ||
^ Missing return type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[Exposed=Window] | ||
interface AsyncIterable { | ||
readonly async iterable<long, short>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[Exposed=Window] | ||
interface AsyncIterable { | ||
async iterable<long>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[Exposed=Window] | ||
interface AsyncIterable { | ||
async maplike<DOMString, DOMString>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
[ | ||
{ | ||
"type": "interface", | ||
"name": "AsyncIterable", | ||
"inheritance": null, | ||
"members": [ | ||
{ | ||
"type": "iterable", | ||
"idlType": [ | ||
{ | ||
"type": null, | ||
"extAttrs": [], | ||
"generic": "", | ||
"nullable": false, | ||
"union": false, | ||
"idlType": "long" | ||
}, | ||
{ | ||
"type": null, | ||
"extAttrs": [], | ||
"generic": "", | ||
"nullable": false, | ||
"union": false, | ||
"idlType": "float" | ||
} | ||
], | ||
"extAttrs": [], | ||
"readonly": false, | ||
"async": true | ||
} | ||
], | ||
"extAttrs": [], | ||
"partial": false | ||
}, | ||
{ | ||
"type": "interface", | ||
"name": "AsyncIterableWithExtAttr", | ||
"inheritance": null, | ||
"members": [ | ||
{ | ||
"type": "iterable", | ||
"idlType": [ | ||
{ | ||
"type": null, | ||
"extAttrs": [ | ||
{ | ||
"type": "extended-attribute", | ||
"name": "XAttr2", | ||
"rhs": null, | ||
"arguments": [] | ||
} | ||
], | ||
"generic": "", | ||
"nullable": false, | ||
"union": false, | ||
"idlType": "DOMString" | ||
}, | ||
{ | ||
"type": null, | ||
"extAttrs": [ | ||
{ | ||
"type": "extended-attribute", | ||
"name": "XAttr3", | ||
"rhs": null, | ||
"arguments": [] | ||
} | ||
], | ||
"generic": "", | ||
"nullable": false, | ||
"union": false, | ||
"idlType": "long" | ||
} | ||
], | ||
"extAttrs": [], | ||
"readonly": false, | ||
"async": true | ||
} | ||
], | ||
"extAttrs": [], | ||
"partial": false | ||
}, | ||
{ | ||
"type": "eof", | ||
"value": "", | ||
"trivia": "\n" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
interface AsyncIterable { | ||
async iterable<long, float>; | ||
}; | ||
|
||
interface AsyncIterableWithExtAttr { | ||
async iterable<[XAttr2] DOMString, [XAttr3] long>; | ||
}; |