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

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

Issue 2048613002: Upstream the grammer for union types to idl_parser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | tools/idl_parser/idl_parser.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/bindings/scripts/blink_idl_parser.py
diff --git a/third_party/WebKit/Source/bindings/scripts/blink_idl_parser.py b/third_party/WebKit/Source/bindings/scripts/blink_idl_parser.py
index 55c3e5f410b3c0f3a395372eeab52be322e175b3..31b508df9ca558d61fc695feb11627a0e12d68ad 100644
--- a/third_party/WebKit/Source/bindings/scripts/blink_idl_parser.py
+++ b/third_party/WebKit/Source/bindings/scripts/blink_idl_parser.py
@@ -308,33 +308,6 @@ class BlinkIDLParser(IDLParser):
| ExtendedAttributeStringLiteralList"""
p[0] = p[1]
- # [59]
- # FIXME: Upstream UnionType
- def p_UnionType(self, p):
- """UnionType : '(' UnionMemberType OR UnionMemberType UnionMemberTypes ')'"""
- members = ListFromConcat(p[2], p[4], p[5])
- p[0] = self.BuildProduction('UnionType', p, 1, members)
-
- # [60]
- def p_UnionMemberType(self, p):
- """UnionMemberType : NonAnyType
- | UnionType TypeSuffix
- | ANY '[' ']' TypeSuffix"""
- if len(p) == 2:
- p[0] = self.BuildProduction('Type', p, 1, p[1])
- elif len(p) == 3:
- p[0] = self.BuildProduction('Type', p, 1, ListFromConcat(p[1], p[2]))
- else:
- any_node = ListFromConcat(self.BuildProduction('Any', p, 1), p[4])
- p[0] = self.BuildProduction('Type', p, 1, any_node)
-
- # [61]
- def p_UnionMemberTypes(self, p):
- """UnionMemberTypes : OR UnionMemberType UnionMemberTypes
- |"""
- if len(p) > 2:
- p[0] = ListFromConcat(p[2], p[3])
-
# [70] Override base parser to remove non-standard sized array
# FIXME: Upstream
def p_TypeSuffix(self, p):
« no previous file with comments | « no previous file | tools/idl_parser/idl_parser.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698