| 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 /** | 5 /** |
| 6 * | 6 * |
| 7 * Built-in types, collections, | 7 * Built-in types, collections, |
| 8 * and other core functionality for every Dart program. | 8 * and other core functionality for every Dart program. |
| 9 * | 9 * |
| 10 * This library is automatically imported. | 10 * This library is automatically imported. |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 * The | 149 * The |
| 150 * [Dart Language Specification](http://www.dartlang.org/docs/spec/) | 150 * [Dart Language Specification](http://www.dartlang.org/docs/spec/) |
| 151 * provides technical details. | 151 * provides technical details. |
| 152 */ | 152 */ |
| 153 library dart.core; | 153 library dart.core; |
| 154 | 154 |
| 155 import "dart:collection"; | 155 import "dart:collection"; |
| 156 import "dart:_internal" hide Symbol; | 156 import "dart:_internal" hide Symbol; |
| 157 import "dart:_internal" as internal show Symbol; | 157 import "dart:_internal" as internal show Symbol; |
| 158 import "dart:convert" show UTF8, LATIN1, Encoding; | 158 import "dart:convert" show UTF8, LATIN1, Encoding; |
| 159 import "dart:math" show Random; // Used by List.shuffle. | 159 import "dart:math" show Random; |
| 160 import "dart:_internal" as _symbol_dev; |
| 161 import 'dart:_interceptors'; |
| 162 import 'dart:_js_helper' show patch, |
| 163 checkInt, |
| 164 getRuntimeType, |
| 165 jsonEncodeNative, |
| 166 JSSyntaxRegExp, |
| 167 Primitives, |
| 168 stringJoinUnchecked, |
| 169 objectHashCode; |
| 170 import 'dart:_foreign_helper' show JS; // Used by List.shuffle. |
| 160 | 171 |
| 161 part "annotations.dart"; | 172 part "annotations.dart"; |
| 162 part "bool.dart"; | 173 part "bool.dart"; |
| 163 part "comparable.dart"; | 174 part "comparable.dart"; |
| 164 part "date_time.dart"; | 175 part "date_time.dart"; |
| 165 part "double.dart"; | 176 part "double.dart"; |
| 166 part "duration.dart"; | 177 part "duration.dart"; |
| 167 part "errors.dart"; | 178 part "errors.dart"; |
| 168 part "exceptions.dart"; | 179 part "exceptions.dart"; |
| 169 part "expando.dart"; | 180 part "expando.dart"; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 184 part "set.dart"; | 195 part "set.dart"; |
| 185 part "sink.dart"; | 196 part "sink.dart"; |
| 186 part "stacktrace.dart"; | 197 part "stacktrace.dart"; |
| 187 part "stopwatch.dart"; | 198 part "stopwatch.dart"; |
| 188 part "string.dart"; | 199 part "string.dart"; |
| 189 part "string_buffer.dart"; | 200 part "string_buffer.dart"; |
| 190 part "string_sink.dart"; | 201 part "string_sink.dart"; |
| 191 part "symbol.dart"; | 202 part "symbol.dart"; |
| 192 part "type.dart"; | 203 part "type.dart"; |
| 193 part "uri.dart"; | 204 part "uri.dart"; |
| 194 import "dart:_internal" as _symbol_dev; | |
| 195 import 'dart:_interceptors'; | |
| 196 import 'dart:_js_helper' show patch, | |
| 197 checkInt, | |
| 198 getRuntimeType, | |
| 199 jsonEncodeNative, | |
| 200 JSSyntaxRegExp, | |
| 201 Primitives, | |
| 202 stringJoinUnchecked, | |
| 203 objectHashCode; | |
| 204 import 'dart:_foreign_helper' show JS; | |
| 205 | 205 |
| 206 String _symbolToString(Symbol symbol) => _symbol_dev.Symbol.getName(symbol); | 206 String _symbolToString(Symbol symbol) => _symbol_dev.Symbol.getName(symbol); |
| 207 _symbolMapToStringMap(Map<Symbol, dynamic> map) { | 207 _symbolMapToStringMap(Map<Symbol, dynamic> map) { |
| 208 if (map == null) return null; | 208 if (map == null) return null; |
| 209 var result = new Map<String, dynamic>(); | 209 var result = new Map<String, dynamic>(); |
| 210 map.forEach((Symbol key, value) { | 210 map.forEach((Symbol key, value) { |
| 211 result[_symbolToString(key)] = value; | 211 result[_symbolToString(key)] = value; |
| 212 }); | 212 }); |
| 213 return result; | 213 return result; |
| 214 } | 214 } |
| 215 class _ListConstructorSentinel { | 215 class _ListConstructorSentinel { |
| 216 const _ListConstructorSentinel(); | 216 const _ListConstructorSentinel(); |
| 217 } | 217 } |
| OLD | NEW |