OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2015, 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 library dart._runtime; |
| 6 import 'dart:_utils'; |
| 7 import 'dart:_operations'; |
| 8 import 'dart:_foreign_helper' show JS, JsName; |
| 9 |
| 10 export 'dart:_classes' show |
| 11 bind, |
| 12 classGetConstructorType, |
| 13 dartx, |
| 14 defineNamedConstructor, |
| 15 defineExtensionNames, |
| 16 defineExtensionMembers, |
| 17 generic, |
| 18 list, |
| 19 metadata, |
| 20 mixin, |
| 21 registerExtension, |
| 22 setBaseClass, |
| 23 setSignature, |
| 24 virtualField; |
| 25 |
| 26 @JsName('implements') |
| 27 export 'dart:_classes' show implements_; |
| 28 |
| 29 export 'dart:_generators' show |
| 30 syncStar, |
| 31 asyncStar; |
| 32 |
| 33 @JsName('async') |
| 34 export 'dart:_generators' show async_; |
| 35 |
| 36 export 'dart:_operations' show |
| 37 JsIterator, |
| 38 arity, |
| 39 asInt, |
| 40 dcall, |
| 41 dindex, |
| 42 dload, |
| 43 dput, |
| 44 dsend, |
| 45 dsetindex, |
| 46 equals, |
| 47 hashCode, |
| 48 map, |
| 49 noSuchMethod, |
| 50 notNull, |
| 51 nullSafe, |
| 52 stackPrint, |
| 53 stackTrace, |
| 54 strongInstanceOf, |
| 55 toString; |
| 56 |
| 57 @JsName('assert') |
| 58 export 'dart:_operations' show assert_; |
| 59 @JsName('const') |
| 60 export 'dart:_operations' show const_; |
| 61 @JsName('throw') |
| 62 export 'dart:_operations' show throw_; |
| 63 |
| 64 export 'dart:_types' show |
| 65 bottom, |
| 66 definiteFunctionType, |
| 67 functionType, |
| 68 jsobject, |
| 69 typedef, |
| 70 typeName; |
| 71 |
| 72 @JsName('dynamic') |
| 73 export 'dart:_types' show dynamicR; |
| 74 @JsName('void') |
| 75 export 'dart:_types' show voidR; |
| 76 |
| 77 export 'dart:_rtti' show |
| 78 fn, |
| 79 realRuntimeType, |
| 80 runtimeType; |
| 81 |
| 82 export 'dart:_utils' show copyProperties; |
| 83 @JsName('export') |
| 84 export 'dart:_utils' show export_; |
| 85 |
| 86 // From dart_utils |
| 87 final defineLazyClass = JS('', '$defineLazy'); |
| 88 final defineLazyProperties = JS('', '$defineLazy'); |
| 89 final defineLazyClassGeneric = JS('', '$defineLazyProperty'); |
| 90 |
| 91 // Renames |
| 92 @JsName('as') |
| 93 final as_ = JS('', '$cast'); |
| 94 |
| 95 @JsName('is') |
| 96 final is_ = JS('', '$instanceOf'); |
| 97 |
| 98 final global = JS('', 'typeof window == "undefined" ? global : window'); |
| 99 final JsSymbol = JS('', 'Symbol'); |
| 100 |
| 101 // TODO(vsm): This is referenced (as init.globalState) from |
| 102 // isolate_helper.dart. Where should it go? |
| 103 // See: https://github.com/dart-lang/dev_compiler/issues/164 |
| 104 // exports.globalState = null; |
| 105 // TODO(ochafik). |
| 106 // _js_helper.checkNum = operations.notNull; |
OLD | NEW |