| 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"); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 #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 |
| 28 #source("../../corelib/src/options.dart"); | 28 #source("../../corelib/src/options.dart"); |
| 29 #source("../../corelib/src/pattern.dart"); | 29 #source("../../corelib/src/pattern.dart"); |
| 30 #source("../../corelib/src/queue.dart"); | 30 #source("../../corelib/src/queue.dart"); |
| 31 #source("../../corelib/src/regexp.dart"); | 31 #source("../../corelib/src/regexp.dart"); |
| 32 #source("../../corelib/src/set.dart"); | 32 #source("../../corelib/src/set.dart"); |
| 33 #source("../../corelib/src/stopwatch.dart"); | 33 #source("../../corelib/src/stopwatch.dart"); |
| 34 #source("../../corelib/src/string.dart"); | 34 #source("../../corelib/src/string.dart"); |
| 35 #source("../../corelib/src/strings.dart"); | 35 #source("../../corelib/src/strings.dart"); |
| 36 #source("../../corelib/src/string_buffer.dart"); | 36 #source("../../corelib/src/string_buffer.dart"); |
| 37 #source("../../corelib/src/time_zone.dart"); | |
| 38 | 37 |
| 39 // TODO(jimhug): Ad-hoc cut-paste-and-edit from compiler/lib below: | 38 // TODO(jimhug): Ad-hoc cut-paste-and-edit from compiler/lib below: |
| 40 // Conceptual change is moving to more true natives. | 39 // Conceptual change is moving to more true natives. |
| 41 | 40 |
| 42 /** | 41 /** |
| 43 * The class [Clock] provides access to a monotonically incrementing clock | 42 * The class [Clock] provides access to a monotonically incrementing clock |
| 44 * device. | 43 * device. |
| 45 */ | 44 */ |
| 46 class Clock { | 45 class Clock { |
| 47 /** Returns the current clock tick. */ | 46 /** Returns the current clock tick. */ |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 // TODO(jmesserly): add named args. For now stay compatible with the VM. | 123 // TODO(jmesserly): add named args. For now stay compatible with the VM. |
| 125 noSuchMethod(String name, List args) { | 124 noSuchMethod(String name, List args) { |
| 126 throw new NoSuchMethodException(this, name, args); | 125 throw new NoSuchMethodException(this, name, args); |
| 127 } | 126 } |
| 128 } | 127 } |
| 129 | 128 |
| 130 void _assert(var test, String text, String url, int line, int column) { | 129 void _assert(var test, String text, String url, int line, int column) { |
| 131 if (test is Function) test = test(); | 130 if (test is Function) test = test(); |
| 132 if (!test) throw new AssertionError._internal(text, url, line, column); | 131 if (!test) throw new AssertionError._internal(text, url, line, column); |
| 133 } | 132 } |
| OLD | NEW |