You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
diff --git a/lib/productions/type.js b/lib/productions/type.js
index 728fe6f..3e16e29 100644
--- a/lib/productions/type.js+++ b/lib/productions/type.js@@ -129,7 +129,7 @@ function union_type(tokeniser, type) {
ret.type = type || null;
while (true) {
const typ =
- type_with_extended_attributes(tokeniser) ||+ type_with_extended_attributes(tokeniser, type) ||
tokeniser.error("No type after open parenthesis or 'or' in union type");
if (typ.idlType === "any")
tokeniser.error("Type `any` cannot be included in a union type");
The text was updated successfully, but these errors were encountered:
This sounds right, except attribute-type itself is kinda redundant now; you can also do type.parent.type === "attribute". Anyway, happy to accept a PR.
The AST generated by parsing an attribute with a union type has a result
idlType.type
ofnull
. Is there a reason this isn'tattribute-type
?Current Results:
Expected results:
Suggested fix:
The text was updated successfully, but these errors were encountered: