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

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

Issue 2048613002: Upstream the grammer for union types to idl_parser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 a2c9ae6346609a1e54ed0db50108489bc9eab497..007ac7ffed8dc8447b476ca2f422c014b8241554 100644
--- a/tools/idl_parser/test_parser/interface_web.idl
+++ b/tools/idl_parser/test_parser/interface_web.idl
@@ -381,3 +381,17 @@ interface MyIfaceSerializer {
interface MyIfaceFrozenArray {
readonly attribute FrozenArray<DOMString> foo;
};
+
+/* TREE
+ *Interface(MyIfaceUnion)
+ * Attribute(foo)
+ * Type()
+ * UnionType()
+ * Type()
+ * PrimitiveType(DOMString)
+ * Type()
+ * PrimitiveType(long)
+ */
+interface MyIfaceUnion {
+ attribute (DOMString or long) foo;
+};
« 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