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

Unified Diff: lib/dartdoc/frog/lib/num.dart

Issue 10696191: Frog removed from dartdoc. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
Index: lib/dartdoc/frog/lib/num.dart
diff --git a/lib/dartdoc/frog/lib/num.dart b/lib/dartdoc/frog/lib/num.dart
deleted file mode 100644
index 869379bb58b165df4bd35f42b339cd40634a8abb..0000000000000000000000000000000000000000
--- a/lib/dartdoc/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);
-}

Powered by Google App Engine
This is Rietveld 408576698