Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(932)

Unified Diff: tools/idl_parser/test_parser/interface_web.idl

Issue 803933003: IDL: various adjustments to match Web IDL specification better (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« tools/idl_parser/idl_parser.py ('K') | « tools/idl_parser/test_lexer/keywords.in ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>;
+};
« tools/idl_parser/idl_parser.py ('K') | « tools/idl_parser/test_lexer/keywords.in ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698