Index: tools/idl_parser/test_parser/interface_web.idl |
diff --git a/tools/idl_parser/test_parser/interface_web.idl b/tools/idl_parser/test_parser/interface_web.idl |
index 2d19f899b417f33dfbbb2e95bdf84b5ee30ef1f5..e42075b9736ab43a9e61f2aaa3eac1944c6be0c9 100644 |
--- a/tools/idl_parser/test_parser/interface_web.idl |
+++ b/tools/idl_parser/test_parser/interface_web.idl |
@@ -230,3 +230,55 @@ interface MyIfacePromise { |
Promise<any> method3(); |
Promise method4(); |
}; |
+ |
+/* TREE |
+ *Interface(MyIfaceIterable) |
+ * Iterable() |
+ * Type() |
+ * PrimitiveType(long) |
+ * Iterable() |
+ * Type() |
+ * PrimitiveType(double) |
+ * Type() |
+ * PrimitiveType(DOMString) |
+ * LegacyIterable() |
+ * Type() |
+ * PrimitiveType(boolean) |
+ */ |
+interface MyIfaceIterable { |
+ iterable<long>; |
+ iterable<double, DOMString>; |
+ legacyiterable<boolean>; |
+}; |
+ |
+/* TREE |
+ *Interface(MyIfaceMaplike) |
+ * Maplike() |
+ * Type() |
+ * PrimitiveType(long) |
+ * Type() |
+ * PrimitiveType(DOMString) |
+ * Maplike() |
+ * Type() |
+ * PrimitiveType(double) |
+ * Type() |
+ * PrimitiveType(boolean) |
+ */ |
+interface MyIfaceMaplike { |
+ readonly maplike<long, DOMString>; |
+ maplike<double, boolean>; |
+}; |
+ |
+/* TREE |
+ *Interface(MyIfaceSetlike) |
+ * Setlike() |
+ * Type() |
+ * PrimitiveType(long) |
+ * Setlike() |
+ * Type() |
+ * PrimitiveType(double) |
+ */ |
+interface MyIfaceSetlike { |
+ readonly setlike<long>; |
+ setlike<double>; |
+}; |