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

Unified Diff: mojo/public/tools/bindings/pylib/mojom/parse/ast.py

Issue 366873007: Mojo: Reformat parser_unittest.py. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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 | mojo/public/tools/bindings/pylib/mojom/parse/parser.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/tools/bindings/pylib/mojom/parse/ast.py
diff --git a/mojo/public/tools/bindings/pylib/mojom/parse/ast.py b/mojo/public/tools/bindings/pylib/mojom/parse/ast.py
index 5a2ad90a69b65cb5a32ffe21d6b7310219ec0488..46b9eeda8b57e602ddd6154969b005f10ae53a82 100644
--- a/mojo/public/tools/bindings/pylib/mojom/parse/ast.py
+++ b/mojo/public/tools/bindings/pylib/mojom/parse/ast.py
@@ -17,6 +17,7 @@ class BaseNode(object):
class Ordinal(BaseNode):
"""Represents an ordinal value labeling, e.g., a struct field."""
+
jamesr 2014/07/02 17:36:29 is this what the pep8 formatter would do?
viettrungluu 2014/07/02 17:59:04 I think so. It'd probably also put a blank line be
def __init__(self, value, **kwargs):
BaseNode.__init__(self, **kwargs)
self.value = value
@@ -24,8 +25,10 @@ class Ordinal(BaseNode):
def __eq__(self, other):
return self.value == other.value
+
class Parameter(BaseNode):
"""Represents a method request or response parameter."""
+
def __init__(self, typename, name, ordinal, **kwargs):
assert isinstance(ordinal, Ordinal)
BaseNode.__init__(self, **kwargs)
« no previous file with comments | « no previous file | mojo/public/tools/bindings/pylib/mojom/parse/parser.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698