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

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

Issue 2708173002: idl_parser: Add support for the record<K, V> WebIDL type. (Closed)
Patch Set: Created 3 years, 10 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
Index: tools/idl_parser/test_parser/typedef_web.idl
diff --git a/tools/idl_parser/test_parser/typedef_web.idl b/tools/idl_parser/test_parser/typedef_web.idl
index ba95db7ccfe68bc4ee3a9ca7cf566a5b3421ea48..6e651c1e2ae0f8800154a2eabb635fc0534422be 100644
--- a/tools/idl_parser/test_parser/typedef_web.idl
+++ b/tools/idl_parser/test_parser/typedef_web.idl
@@ -121,7 +121,7 @@ typedef unsigned long long MyULongLong;
/* TREE
*Typedef(MyString)
* Type()
- * PrimitiveType(DOMString)
+ * StringType(DOMString)
*/
typedef DOMString MyString;
@@ -188,3 +188,19 @@ typedef byte MyByte;
*/
typedef octet MyOctet;
+/* TREE
+ *Typedef(MyRecord)
+ * Type()
+ * Record()
+ * StringType(ByteString)
+ * Type()
+ * Typeref(int)
+ */
+typedef record<ByteString, int> MyRecord;
+
+/* TREE
+ *Typedef(MyInvalidRecord)
+ * Type()
+ * Error(Unexpected keyword "double" after "<".)
+ */
+typedef record<double, ByteString> MyInvalidRecord;
« tools/idl_parser/idl_lexer.py ('K') | « tools/idl_parser/test_parser/interface_web.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698