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

Unified Diff: frog/lib/num.dart

Issue 10548047: Remove frog from the repository. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Move test and update apidoc.gyp. Created 8 years, 6 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 | « frog/lib/natives.dart ('k') | frog/lib/string_base.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/lib/num.dart
diff --git a/frog/lib/num.dart b/frog/lib/num.dart
deleted file mode 100644
index 869379bb58b165df4bd35f42b339cd40634a8abb..0000000000000000000000000000000000000000
--- a/frog/lib/num.dart
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
-// 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.
-
-// Dart core library.
-
-interface num extends Comparable, Hashable {
- // Arithmetic operations.
- num operator +(num other);
- num operator -(num other);
- num operator *(num other);
- num operator %(num other);
- num operator /(num other);
- // Truncating division.
- num operator ~/(num other);
- // The unary '-' operator.
- num operator negate();
- num remainder(num other);
-
- // Relational operations.
- bool operator <(num other);
- bool operator <=(num other);
- bool operator >(num other);
- bool operator >=(num other);
-
- // TODO(jimhug): Cheap trick...
- bool operator ==(var other);
-
-
- // Predicates.
- bool isEven();
- bool isOdd();
- bool isNaN();
- bool isNegative();
- bool isInfinite();
-
- num abs();
- num round();
- num floor();
- num ceil();
- num truncate();
-
- int toInt();
- double toDouble();
-
- String toStringAsFixed(int fractionDigits);
- String toStringAsExponential(int fractionDigits);
- String toStringAsPrecision(int precision);
- String toRadixString(int radix);
-
- // TODO(jmesserly): we need to do something in the Frog type system to know
- // to know that most int operations are closed over integers.
-
- // TODO(jimhug): Bit-operations stolen from int
- int operator &(int other);
- int operator |(int other);
- int operator ^(int other);
- int operator ~();
- int operator <<(int shiftAmount);
- int operator >>(int shiftAmount);
-}
« no previous file with comments | « frog/lib/natives.dart ('k') | frog/lib/string_base.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698