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

Unified Diff: mojo/public/bindings/pylib/parse/mojo_parser.py

Issue 184813004: Create response_parameters as part of mojom (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix up mojom files Created 6 years, 10 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 | « mojo/public/bindings/pylib/parse/mojo_lexer.py ('k') | mojo/public/bindings/pylib/parse/mojo_translate.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/bindings/pylib/parse/mojo_parser.py
diff --git a/mojo/public/bindings/pylib/parse/mojo_parser.py b/mojo/public/bindings/pylib/parse/mojo_parser.py
index 7c6fcfbbcdbd30e31ca6e927ddfbd70e8e59ac76..66153c9f6f125f97f307231bb5c8d9fcae40fecc 100755
--- a/mojo/public/bindings/pylib/parse/mojo_parser.py
+++ b/mojo/public/bindings/pylib/parse/mojo_parser.py
@@ -130,9 +130,15 @@ class Parser(object):
if len(p) > 1:
p[0] = ListFromConcat(p[1], p[2])
+ def p_response(self, p):
+ """response : RESPONSE LPAREN parameters RPAREN
+ | """
+ if len(p) > 3:
+ p[0] = p[3]
+
def p_method(self, p):
- """method : NAME LPAREN parameters RPAREN ordinal SEMI"""
- p[0] = ('METHOD', p[1], p[3], p[5])
+ """method : NAME ordinal LPAREN parameters RPAREN response SEMI"""
+ p[0] = ('METHOD', p[1], p[4], p[2], p[6])
def p_parameters(self, p):
"""parameters : parameter
« no previous file with comments | « mojo/public/bindings/pylib/parse/mojo_lexer.py ('k') | mojo/public/bindings/pylib/parse/mojo_translate.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698