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

Unified Diff: tools/idl_parser/idl_parser.py

Issue 333853002: IDL parser: add StaticAttribute production (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: add comment Created 6 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 | « no previous file | no next file » | 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 8a682ea688b6821d8993f8c52c8e9dcf6b78cc44..401dc4b320427ec6a8920f65aa2b25084153f52f 100755
--- a/tools/idl_parser/idl_parser.py
+++ b/tools/idl_parser/idl_parser.py
@@ -434,6 +434,7 @@ class IDLParser(object):
# [30]
def p_AttributeOrOperation(self, p):
"""AttributeOrOperation : STRINGIFIER StringifierAttributeOrOperation
+ | StaticAttribute
| Attribute
| Operation"""
if len(p) > 2:
@@ -451,6 +452,13 @@ class IDLParser(object):
else:
p[0] = ListFromConcat(self.BuildAttribute('STRINGIFIER', p[1]), p[1])
+ # [31.1] FIXME: temporary production as part of moving |static| into
+ # base parser
+ def p_StaticAttribute(self, p):
+ """StaticAttribute : STATIC Attribute"""
+ p[2].AddChildren(self.BuildTrue('STATIC'))
+ p[0] = p[2]
+
# [32]
def p_Attribute(self, p):
"""Attribute : Inherit ReadOnly ATTRIBUTE Type identifier ';'"""
« 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