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

Unified Diff: lib/dom/scripts/idlnode.py

Issue 10310119: Some more __repr__s. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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 | « lib/dom/scripts/generator.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dom/scripts/idlnode.py
diff --git a/lib/dom/scripts/idlnode.py b/lib/dom/scripts/idlnode.py
index 921bf56be4cbd6acce4e3816ad1b0edf2ff5e95c..cc4108ca73fcc9a17e9b908a5eb49b16ce9d0bcf 100755
--- a/lib/dom/scripts/idlnode.py
+++ b/lib/dom/scripts/idlnode.py
@@ -463,6 +463,9 @@ class IDLArgument(IDLNode):
self.is_optional = self._has(ast, 'Optional') \
or ('Optional' in self.ext_attrs)
+ def __repr__(self):
+ return '<IDLArgument(type = %s, id = %s)>' % (self.type, self.id)
+
class IDLImplementsStatement(IDLNode):
"""IDLNode specialization for 'X implements Y' declarations."""
« no previous file with comments | « lib/dom/scripts/generator.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698