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', null, /* Imports */[ | 5 dart_library.library('dart/_runtime', null, /* Imports */[ |
| 6 'dart/_utils', |
6 'dart/_classes', | 7 'dart/_classes', |
7 'dart/_errors', | 8 'dart/_errors', |
8 'dart/_generators', | 9 'dart/_generators', |
9 'dart/_operations', | 10 'dart/_operations', |
10 'dart/_rtti', | 11 'dart/_rtti', |
11 'dart/_types', | 12 'dart/_types', |
12 ], /* Lazy Imports */[ | 13 ], /* Lazy Imports */[ |
13 'dart/_js_helper' | 14 'dart/_js_helper' |
14 ], function(exports, classes, errors, generators, operations, rtti, types, | 15 ], function(exports, dart_utils, classes, errors, generators, operations, rtti,
types, |
15 _js_helper) { | 16 _js_helper) { |
16 'use strict'; | 17 'use strict'; |
17 | 18 |
18 function _export(value) { | 19 function _export(value) { |
19 if (value) return value; | 20 if (value) return value; |
20 console.log("Re-exporting null field: " + name); | 21 console.log("Re-exporting null field: " + name); |
21 throw "Bad export"; | 22 throw "Bad export"; |
22 } | 23 } |
23 | 24 |
24 function exportFrom(value, names) { | 25 function exportFrom(value, names) { |
(...skipping 32 matching lines...) Loading... |
57 'virtualField' | 58 'virtualField' |
58 ]); | 59 ]); |
59 | 60 |
60 exportFrom(generators, [ | 61 exportFrom(generators, [ |
61 'syncStar', | 62 'syncStar', |
62 'async', | 63 'async', |
63 'asyncStar' | 64 'asyncStar' |
64 ]); | 65 ]); |
65 | 66 |
66 // From dart_utils | 67 // From dart_utils |
67 exportFrom(dart_utils, ['copyProperties', 'export']); | 68 exportFrom(dart_utils, ['copyProperties', 'export_']); |
68 // Renames | 69 // Renames |
69 exports.defineLazyClass = _export(dart_utils.defineLazy); | 70 exports.defineLazyClass = _export(dart_utils.defineLazy); |
70 exports.defineLazyProperties = _export(dart_utils.defineLazy); | 71 exports.defineLazyProperties = _export(dart_utils.defineLazy); |
71 exports.defineLazyClassGeneric = _export(dart_utils.defineLazyProperty); | 72 exports.defineLazyClassGeneric = _export(dart_utils.defineLazyProperty); |
72 | 73 |
73 // From operations | 74 // From operations |
74 exportFrom(operations, [ | 75 exportFrom(operations, [ |
75 'JsIterator', | 76 'JsIterator', |
76 'arity', | 77 'arity', |
77 'asInt', | 78 'asInt', |
(...skipping 34 matching lines...) Loading... |
112 ]); | 113 ]); |
113 | 114 |
114 // From rtti | 115 // From rtti |
115 exportFrom(rtti, [ | 116 exportFrom(rtti, [ |
116 'fn', | 117 'fn', |
117 'realRuntimeType', | 118 'realRuntimeType', |
118 'runtimeType', | 119 'runtimeType', |
119 ]); | 120 ]); |
120 | 121 |
121 }); | 122 }); |
OLD | NEW |