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

Unified Diff: tools/idl_parser/idl_parser.py

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 | « no previous file | tools/idl_parser/test_parser/dictionary_web.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/idl_parser/idl_parser.py
diff --git a/tools/idl_parser/idl_parser.py b/tools/idl_parser/idl_parser.py
index 3dc2b53a5e8ce3f768122afa56900ec73a077df8..45f8d7c58276a9d922b21ba6b4cbf2448cd907d4 100755
--- a/tools/idl_parser/idl_parser.py
+++ b/tools/idl_parser/idl_parser.py
@@ -307,6 +307,11 @@ class IDLParser(object):
p[2].AddChildren(p[1])
p[0] = ListFromConcat(p[2], p[3])
+ # [12.1] Error recovery for DictionaryMembers
+ def p_DictionaryMembersError(self, p):
+ """DictionaryMembers : ExtendedAttributeList error"""
+ p[0] = self.BuildError(p, 'DictionaryMembers')
+
# [13]
def p_DictionaryMember(self, p):
"""DictionaryMember : Required Type identifier Default ';'"""
« no previous file with comments | « no previous file | tools/idl_parser/test_parser/dictionary_web.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698