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

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

Issue 1031593003: IDL: Add support for serializer definitions (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 5 years, 9 months 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
« no previous file with comments | « tools/idl_parser/idl_parser.py ('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 b1f3278623f8e4e764f5070dc8f495ff73fc1da9..90b0e83e8433707692fc00457aed1dfe056d0f6b 100644
--- a/tools/idl_parser/test_parser/interface_web.idl
+++ b/tools/idl_parser/test_parser/interface_web.idl
@@ -323,3 +323,49 @@ interface MyIfaceSetlike {
readonly setlike<long>;
setlike<double>;
};
+
+/* TREE
+ *Interface(MyIfaceSerializer)
+ * Serializer()
+ * Serializer()
+ * Operation(toJSON)
+ * Arguments()
+ * Type()
+ * Any()
+ * Serializer()
+ * Serializer()
+ * Map()
+ * Serializer()
+ * Map()
+ * Serializer()
+ * Map()
+ * Serializer()
+ * Map()
+ * Serializer()
+ * Map()
+ * Serializer()
+ * Map()
+ * Serializer()
+ * Map()
+ * Serializer()
+ * List()
+ * Serializer()
+ * List()
+ * Serializer()
+ * List()
+ */
+interface MyIfaceSerializer {
+ serializer;
+ serializer any toJSON();
+ serializer = name;
+ serializer = {};
+ serializer = { getter };
+ serializer = { attribute };
+ serializer = { inherit, attribute };
+ serializer = { inherit };
+ serializer = { inherit, name1, name2 };
+ serializer = { name1, name2 };
+ serializer = [];
+ serializer = [getter];
+ serializer = [name1, name2];
+};
« no previous file with comments | « tools/idl_parser/idl_parser.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698