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

Unified Diff: lib/double.dart

Issue 10918213: - Move double and int implementations into dart:core and make them private. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 3 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/integers.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/double.dart
===================================================================
--- lib/double.dart (revision 12304)
+++ lib/double.dart (working copy)
@@ -2,8 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-class Double implements double {
- factory Double.fromInteger(int value)
+class _Double implements double {
+ factory _Double.fromInteger(int value)
native "Double_doubleFromInteger";
int hashCode() {
try {
@@ -74,22 +74,22 @@
return (this == other) || (this < other);
}
double addFromInteger(int other) {
- return new Double.fromInteger(other) + this;
+ return new _Double.fromInteger(other) + this;
}
double subFromInteger(int other) {
- return new Double.fromInteger(other) - this;
+ return new _Double.fromInteger(other) - this;
}
double mulFromInteger(int other) {
- return new Double.fromInteger(other) * this;
+ return new _Double.fromInteger(other) * this;
}
double truncDivFromInteger(int other) {
- return new Double.fromInteger(other) ~/ this;
+ return new _Double.fromInteger(other) ~/ this;
}
double moduloFromInteger(int other) {
- return new Double.fromInteger(other) % this;
+ return new _Double.fromInteger(other) % this;
}
double remainderFromInteger(int other) {
- return new Double.fromInteger(other).remainder(this);
+ return new _Double.fromInteger(other).remainder(this);
}
bool greaterThanFromInteger(int other) native "Double_greaterThanFromInteger";
« no previous file with comments | « no previous file | lib/integers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698