| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 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 | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #library("dart:core"); | 5 #library("dart:core"); |
| 6 #import("dart:coreimpl"); | 6 #import("dart:coreimpl"); |
| 7 | 7 |
| 8 // TODO(jimhug): Better way to map in standard corelib | 8 // TODO(jimhug): Better way to map in standard corelib |
| 9 #source("../../corelib/src/bool.dart"); | 9 #source("../../corelib/src/bool.dart"); |
| 10 #source("../../corelib/src/collection.dart"); | 10 #source("../../corelib/src/collection.dart"); |
| 11 #source("../../corelib/src/comparable.dart"); | 11 #source("../../corelib/src/comparable.dart"); |
| 12 #source("../../corelib/src/date.dart"); | 12 #source("../../corelib/src/date.dart"); |
| 13 #source("../../corelib/src/double.dart"); | 13 #source("../../corelib/src/double.dart"); |
| 14 #source("../../corelib/src/duration.dart"); | 14 #source("../../corelib/src/duration.dart"); |
| 15 #source("../../corelib/src/exceptions.dart"); | 15 #source("../../corelib/src/exceptions.dart"); |
| 16 #source("../../corelib/src/expect.dart"); | 16 #source("../../corelib/src/expect.dart"); |
| 17 #source("../../corelib/src/function.dart"); | 17 #source("../../corelib/src/function.dart"); |
| 18 #source("../../corelib/src/future.dart"); | 18 #source("../../corelib/src/future.dart"); |
| 19 #source("../../corelib/src/hashable.dart"); | 19 #source("../../corelib/src/hashable.dart"); |
| 20 #source("../../corelib/src/int.dart"); | 20 #source("../../corelib/src/int.dart"); |
| 21 #source("../../corelib/src/isolate.dart"); | |
| 22 #source("../../corelib/src/iterable.dart"); | 21 #source("../../corelib/src/iterable.dart"); |
| 23 #source("../../corelib/src/iterator.dart"); | 22 #source("../../corelib/src/iterator.dart"); |
| 24 #source("../../corelib/src/list.dart"); | 23 #source("../../corelib/src/list.dart"); |
| 25 #source("../../corelib/src/map.dart"); | 24 #source("../../corelib/src/map.dart"); |
| 26 #source("math.dart"); // overriden to be more directly native | 25 #source("math.dart"); // overriden to be more directly native |
| 27 #source("natives.dart"); // native helpers generated by the compiler | 26 #source("natives.dart"); // native helpers generated by the compiler |
| 28 #source("newisolate.dart"); // work in progress towards the new API | |
| 29 #source("num.dart"); // overriden to include int members on num - weird typing | 27 #source("num.dart"); // overriden to include int members on num - weird typing |
| 30 #source("../../corelib/src/options.dart"); | 28 #source("../../corelib/src/options.dart"); |
| 31 #source("../../corelib/src/pattern.dart"); | 29 #source("../../corelib/src/pattern.dart"); |
| 32 #source("../../corelib/src/queue.dart"); | 30 #source("../../corelib/src/queue.dart"); |
| 33 #source("../../corelib/src/regexp.dart"); | 31 #source("../../corelib/src/regexp.dart"); |
| 34 #source("../../corelib/src/set.dart"); | 32 #source("../../corelib/src/set.dart"); |
| 35 #source("../../corelib/src/stopwatch.dart"); | 33 #source("../../corelib/src/stopwatch.dart"); |
| 36 #source("../../corelib/src/string.dart"); | 34 #source("../../corelib/src/string.dart"); |
| 37 #source("../../corelib/src/strings.dart"); | 35 #source("../../corelib/src/strings.dart"); |
| 38 #source("../../corelib/src/string_buffer.dart"); | 36 #source("../../corelib/src/string_buffer.dart"); |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 // TODO(jmesserly): add named args. For now stay compatible with the VM. | 124 // TODO(jmesserly): add named args. For now stay compatible with the VM. |
| 127 noSuchMethod(String name, List args) { | 125 noSuchMethod(String name, List args) { |
| 128 throw new NoSuchMethodException(this, name, args); | 126 throw new NoSuchMethodException(this, name, args); |
| 129 } | 127 } |
| 130 } | 128 } |
| 131 | 129 |
| 132 void _assert(var test, String text, String url, int line, int column) { | 130 void _assert(var test, String text, String url, int line, int column) { |
| 133 if (test is Function) test = test(); | 131 if (test is Function) test = test(); |
| 134 if (!test) throw new AssertionError._internal(text, url, line, column); | 132 if (!test) throw new AssertionError._internal(text, url, line, column); |
| 135 } | 133 } |
| OLD | NEW |