| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 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 | 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 dart_library.library('dart_runtime/dart', null, /* Imports */[ | 5 dart_library.library('dart_runtime/dart', null, /* Imports */[ |
| 6 'dart_runtime/_classes', | 6 'dart_runtime/_classes', |
| 7 'dart_runtime/_errors', | 7 'dart_runtime/_errors', |
| 8 'dart_runtime/_generators', |
| 8 'dart_runtime/_operations', | 9 'dart_runtime/_operations', |
| 9 'dart_runtime/_rtti', | 10 'dart_runtime/_rtti', |
| 10 'dart_runtime/_types', | 11 'dart_runtime/_types', |
| 11 ], /* Lazy Imports */[ | 12 ], /* Lazy Imports */[ |
| 12 'dart/_js_helper' | 13 'dart/_js_helper' |
| 13 ], function(exports, classes, errors, operations, rtti, types, _js_helper) { | 14 ], function(exports, classes, errors, generators, operations, rtti, types, |
| 15 _js_helper) { |
| 14 'use strict'; | 16 'use strict'; |
| 15 | 17 |
| 16 function _export(value) { | 18 function _export(value) { |
| 17 if (value) return value; | 19 if (value) return value; |
| 18 console.log("Re-exporting null field: " + name); | 20 console.log("Re-exporting null field: " + name); |
| 19 throw "Bad export"; | 21 throw "Bad export"; |
| 20 } | 22 } |
| 21 | 23 |
| 22 function exportFrom(value, names) { | 24 function exportFrom(value, names) { |
| 23 for (let name of names) { | 25 for (let name of names) { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 45 'defineExtensionNames', | 47 'defineExtensionNames', |
| 46 'defineExtensionMembers', | 48 'defineExtensionMembers', |
| 47 'generic', | 49 'generic', |
| 48 'implements', | 50 'implements', |
| 49 'list', | 51 'list', |
| 50 'metadata', | 52 'metadata', |
| 51 'mixin', | 53 'mixin', |
| 52 'registerExtension', | 54 'registerExtension', |
| 53 'setBaseClass', | 55 'setBaseClass', |
| 54 'setSignature', | 56 'setSignature', |
| 55 'virtualField', | 57 'virtualField' |
| 56 ]) | 58 ]); |
| 59 |
| 60 exportFrom(generators, [ |
| 61 'syncStar', |
| 62 'async', |
| 63 'asyncStar' |
| 64 ]); |
| 57 | 65 |
| 58 // From dart_utils | 66 // From dart_utils |
| 59 exportFrom(dart_utils, ['copyProperties', 'instantiate']); | 67 exportFrom(dart_utils, ['copyProperties', 'instantiate']); |
| 60 // Renames | 68 // Renames |
| 61 exports.defineLazyClass = _export(dart_utils.defineLazy); | 69 exports.defineLazyClass = _export(dart_utils.defineLazy); |
| 62 exports.defineLazyProperties = _export(dart_utils.defineLazy); | 70 exports.defineLazyProperties = _export(dart_utils.defineLazy); |
| 63 exports.defineLazyClassGeneric = _export(dart_utils.defineLazyProperty); | 71 exports.defineLazyClassGeneric = _export(dart_utils.defineLazyProperty); |
| 64 | 72 |
| 65 // From operations | 73 // From operations |
| 66 exportFrom(operations, [ | 74 exportFrom(operations, [ |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 ]); | 108 ]); |
| 101 | 109 |
| 102 // From rtti | 110 // From rtti |
| 103 exportFrom(rtti, [ | 111 exportFrom(rtti, [ |
| 104 'fn', | 112 'fn', |
| 105 'realRuntimeType', | 113 'realRuntimeType', |
| 106 'runtimeType', | 114 'runtimeType', |
| 107 ]); | 115 ]); |
| 108 | 116 |
| 109 }); | 117 }); |
| OLD | NEW |