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

Unified Diff: pkg/compiler/lib/src/js_emitter/model.dart

Issue 2975933002: Check emitter constants and fix tearOffName for JConstructorBody (Closed)
Patch Set: Created 3 years, 5 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 | pkg/compiler/lib/src/js_model/elements.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_emitter/model.dart
diff --git a/pkg/compiler/lib/src/js_emitter/model.dart b/pkg/compiler/lib/src/js_emitter/model.dart
index 364e2c57e015d1e66715754ffa124c9a6f3f5aba..9692ef13bd5fe606c3f7ce096c030208b7ef834f 100644
--- a/pkg/compiler/lib/src/js_emitter/model.dart
+++ b/pkg/compiler/lib/src/js_emitter/model.dart
@@ -392,6 +392,11 @@ abstract class Method {
final js.Expression code;
Method(this.element, this.name, this.code);
+
+ String toString() {
+ return 'method[name=${name},element=${element}'
sra1 2017/07/11 18:24:05 FWIW I prefer these debug-oriented strings to have
Johnni Winther 2017/07/12 10:03:24 Will change in a follow-up CL.
+ ',code=${js.nodeToString(code)}]';
+ }
}
/// A method that corresponds to a method in the original Dart program.
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_model/elements.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698