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

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

Issue 1314443003: idl_parser: An error should be reduced to DictionaryMembers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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/dictionary_web.idl
diff --git a/tools/idl_parser/test_parser/dictionary_web.idl b/tools/idl_parser/test_parser/dictionary_web.idl
index 507b288349363c75dc23294a49eec9eef86542d5..2fd602e1491e005165e652c0359d81d5dd24d544 100644
--- a/tools/idl_parser/test_parser/dictionary_web.idl
+++ b/tools/idl_parser/test_parser/dictionary_web.idl
@@ -84,6 +84,17 @@ dictionary {
DOMString? setString = null;
};
+/* TREE
+ *Dictionary(MyDictionaryInvalidOptional)
+ * Key(mandatory)
+ * Type()
+ * PrimitiveType(DOMString)
+ * Error(Unexpected keyword "optional" after ">".)
+ */
+dictionary MyDictionaryInvalidOptional {
+ DOMString mandatory;
+ sequence<DOMString> optional;
+};
/* ERROR Unexpected identifier "NoColon" after identifier "ForParent". */
dictionary ForParent NoColon {
« 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