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

Unified Diff: client/dom/scripts/idlparser.py

Issue 9624004: Allow any order for ExtAttrs and const in WebKit. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressing Stephen's comments Created 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/dom/scripts/idlparser.py
diff --git a/client/dom/scripts/idlparser.py b/client/dom/scripts/idlparser.py
index 0dc59c691e6a208cd553785d6d158fbe82a1a00e..26293fac2db5f40b9188d715d1d60639ac6278cb 100755
--- a/client/dom/scripts/idlparser.py
+++ b/client/dom/scripts/idlparser.py
@@ -144,7 +144,8 @@ class IDLParser(object):
# Web IDL:
[MAYBE(ExtAttrs), 'const', Type, Id, '=', ConstExpr, ';'],
# WebKit:
- ['const', MAYBE(ExtAttrs), Type, Id, '=', ConstExpr, ';'],
+ [OR(['const', MAYBE(ExtAttrs)], [MAYBE(ExtAttrs), 'const']),
+ Type, Id, '=', ConstExpr, ';'],
# FremontCut:
[MAYBE(_Annotations), MAYBE(ExtAttrs), 'const', Type, Id, '=',
ConstExpr, ';'])
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698