| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 // Mocks of classes and interfaces that Leg cannot read directly. |
| 6 |
| 7 // TODO(ahe): Remove this file. |
| 8 |
| 9 class JSSyntaxRegExp {} |
| 10 class StringBufferImpl {} |
| 11 class DateImplementation {} |
| 12 class ReceivePortFactory {} |
| 13 |
| 14 class StringBase { |
| 15 static String createFromCharCodes(List<int> charCodes) { |
| 16 throw "StringBase.createFromCharCodes is not implemented"; |
| 17 } |
| 18 |
| 19 static String join(List<String> strings, String separator) { |
| 20 throw "StringBase.join is not implemented"; |
| 21 } |
| 22 |
| 23 static String concatAll(List<String> strings) { |
| 24 throw "StringBase.concatAll is not implemented"; |
| 25 } |
| 26 } |
| 27 |
| 28 class MathNatives { |
| 29 static int parseInt(String str) { |
| 30 throw 'MathNatives.parseInt is not implemented'; |
| 31 } |
| 32 |
| 33 static double parseDouble(String str) { |
| 34 throw 'MathNatives.parseDouble is not implemented'; |
| 35 } |
| 36 |
| 37 static double sqrt(num value) { |
| 38 throw 'MathNatives.sqrt is not implemented'; |
| 39 } |
| 40 |
| 41 static double sin(num value) { |
| 42 throw 'MathNatives.sin is not implemented'; |
| 43 } |
| 44 |
| 45 static double cos(num value) { |
| 46 throw 'MathNatives.cos is not implemented'; |
| 47 } |
| 48 |
| 49 static double tan(num value) { |
| 50 throw 'MathNatives.tan is not implemented'; |
| 51 } |
| 52 |
| 53 static double acos(num value) { |
| 54 throw 'MathNatives.acos is not implemented'; |
| 55 } |
| 56 |
| 57 static double asin(num value) { |
| 58 throw 'MathNatives.asin is not implemented'; |
| 59 } |
| 60 |
| 61 static double atan(num value) { |
| 62 throw 'MathNatives.atan is not implemented'; |
| 63 } |
| 64 |
| 65 static double atan2(num a, num b) { |
| 66 throw 'MathNatives.atan2 is not implemented'; |
| 67 } |
| 68 |
| 69 static double exp(num value) { |
| 70 throw 'MathNatives.exp is not implemented'; |
| 71 } |
| 72 |
| 73 static double log(num value) { |
| 74 throw 'MathNatives.log is not implemented'; |
| 75 } |
| 76 |
| 77 static num pow(num value, num exponent) { |
| 78 throw 'MathNatives.pow is not implemented'; |
| 79 } |
| 80 |
| 81 static double random() { |
| 82 throw 'MathNatives.random is not implemented'; |
| 83 } |
| 84 } |
| OLD | NEW |