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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 import "dart:_internal" as _symbol_dev; | 194 import "dart:_internal" as _symbol_dev; |
195 import 'dart:_interceptors'; | 195 import 'dart:_interceptors'; |
196 import 'dart:_js_helper' show patch, | 196 import 'dart:_js_helper' show patch, |
197 checkInt, | 197 checkInt, |
198 getRuntimeType, | 198 getRuntimeType, |
199 jsonEncodeNative, | 199 jsonEncodeNative, |
200 JSSyntaxRegExp, | 200 JSSyntaxRegExp, |
201 Primitives, | 201 Primitives, |
202 stringJoinUnchecked, | 202 stringJoinUnchecked, |
203 objectHashCode; | 203 objectHashCode; |
| 204 import 'dart:_foreign_helper' show JS; |
204 | 205 |
205 String _symbolToString(Symbol symbol) => _symbol_dev.Symbol.getName(symbol); | 206 String _symbolToString(Symbol symbol) => _symbol_dev.Symbol.getName(symbol); |
206 _symbolMapToStringMap(Map<Symbol, dynamic> map) { | 207 _symbolMapToStringMap(Map<Symbol, dynamic> map) { |
207 if (map == null) return null; | 208 if (map == null) return null; |
208 var result = new Map<String, dynamic>(); | 209 var result = new Map<String, dynamic>(); |
209 map.forEach((Symbol key, value) { | 210 map.forEach((Symbol key, value) { |
210 result[_symbolToString(key)] = value; | 211 result[_symbolToString(key)] = value; |
211 }); | 212 }); |
212 return result; | 213 return result; |
213 } | 214 } |
214 class _ListConstructorSentinel extends JSInt { | 215 class _ListConstructorSentinel { |
215 const _ListConstructorSentinel(); | 216 const _ListConstructorSentinel(); |
216 } | 217 } |
OLD | NEW |