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

Unified Diff: lib/dom/scripts/generator.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 | « no previous file | lib/dom/scripts/idlnode.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dom/scripts/generator.py
diff --git a/lib/dom/scripts/generator.py b/lib/dom/scripts/generator.py
index 8d72a6c024459201352f46a8d717b078d2417b26..4c88ef2724901bdaf1f9f850992a96ada6960a8f 100644
--- a/lib/dom/scripts/generator.py
+++ b/lib/dom/scripts/generator.py
@@ -148,6 +148,11 @@ class ParamInfo(object):
self.dart_type = dart_type
self.default_value = default_value
+ def __repr__(self):
+ content = 'name = %s, type_id = %s, dart_type = %s, default_value = %s' % (
+ self.name, self.type_id, self.dart_type, self.default_value))
+ return '<ParamInfo(%s)>' % content
+
# Given a list of overloaded arguments, render a dart argument.
def _DartArg(args, interface):
« no previous file with comments | « no previous file | lib/dom/scripts/idlnode.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698