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

Unified Diff: sdk/lib/_internal/compiler/implementation/lib/js_helper.dart

Issue 16320003: Make fields of BoundClosure private to not expose implementation details. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | tests/language/closure_internals_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/lib/js_helper.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/lib/js_helper.dart (revision 23522)
+++ sdk/lib/_internal/compiler/implementation/lib/js_helper.dart (working copy)
@@ -948,24 +948,24 @@
}
class BoundClosure extends Closure {
- var self;
- var target;
- var receiver;
+ var _self;
+ var _target;
+ var _receiver;
bool operator==(other) {
if (identical(this, other)) return true;
if (other is! BoundClosure) return false;
return JS('bool', '# === # && # === # && # === #',
- self, other.self,
- target, other.target,
- receiver, other.receiver);
+ _self, other._self,
+ _target, other._target,
+ _receiver, other._receiver);
}
int get hashCode {
return JS('int', '(# + # + #) & 0x3ffffff',
- self.hashCode,
- target.hashCode,
- receiver.hashCode);
+ _self.hashCode,
+ _target.hashCode,
+ _receiver.hashCode);
}
}
« no previous file with comments | « no previous file | tests/language/closure_internals_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698