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

Unified Diff: Source/bindings/scripts/blink_idl_parser.py

Issue 336733002: IDL parser: drop AttributeOrOperation and StaticAttribute overrides (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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: Source/bindings/scripts/blink_idl_parser.py
diff --git a/Source/bindings/scripts/blink_idl_parser.py b/Source/bindings/scripts/blink_idl_parser.py
index 0b0430a649a508aa0f3a4c55fa524ba51c67c2ac..6b205f2421c0c3f18ac2d51bad1fdce7988fe697 100644
--- a/Source/bindings/scripts/blink_idl_parser.py
+++ b/Source/bindings/scripts/blink_idl_parser.py
@@ -240,30 +240,6 @@ class BlinkIDLParser(IDLParser):
p[0] = ListFromConcat(self.BuildAttribute('TYPE', 'DOMString'),
self.BuildAttribute('NAME', p[1]))
- # [b30] Add StaticAttribute
- def p_AttributeOrOperation(self, p):
- """AttributeOrOperation : STRINGIFIER StringifierAttributeOrOperation
- | Attribute
- | StaticAttribute
- | Operation"""
- # Standard is (no StaticAttribute):
- # AttributeOrOperation : STRINGIFIER StringifierAttributeOrOperation
- # | Attribute
- # | Operation
- if len(p) > 2:
- # FIXME: Clearer to add stringifier property here, as:
- # p[2].AddChildren(self.BuildTrue('STRINGIFIER'))
- # Fix when actually implementing stringifiers.
- p[0] = p[2]
- else:
- p[0] = p[1]
-
- # [b30.1]
- def p_StaticAttribute(self, p):
- """StaticAttribute : STATIC Attribute"""
- p[2].AddChildren(self.BuildTrue('STATIC'))
- p[0] = p[2]
-
# [b47]
def p_ExceptionMember(self, p):
"""ExceptionMember : Const
« 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