| OLD | NEW |
| 1 dart_library.library('dart/_js_mirrors', null, /* Imports */[ | 1 dart_library.library('dart/_js_mirrors', null, /* Imports */[ |
| 2 "dart_runtime/dart", | 2 "dart_runtime/dart", |
| 3 'dart/_internal', | 3 'dart/_internal', |
| 4 'dart/core', | 4 'dart/core', |
| 5 'dart/mirrors' | 5 'dart/mirrors' |
| 6 ], /* Lazy imports */[ | 6 ], /* Lazy imports */[ |
| 7 ], function(exports, dart, _internal, core, mirrors) { | 7 ], function(exports, dart, _internal, core, mirrors) { |
| 8 'use strict'; | 8 'use strict'; |
| 9 let dartx = dart.dartx; | 9 let dartx = dart.dartx; |
| 10 function getName(symbol) { | 10 function getName(symbol) { |
| 11 return _internal.Symbol.getName(dart.as(symbol, _internal.Symbol)); | 11 return _internal.Symbol.getName(dart.as(symbol, _internal.Symbol)); |
| 12 } | 12 } |
| 13 dart.fn(getName, core.String, [core.Symbol]); | 13 dart.fn(getName, core.String, [core.Symbol]); |
| 14 function getSymbol(name, library) { | 14 function getSymbol(name, library) { |
| 15 return dart.throw_(new core.UnimplementedError("MirrorSystem.getSymbol unimp
lemented")); | 15 return dart.throw(new core.UnimplementedError("MirrorSystem.getSymbol unimpl
emented")); |
| 16 } | 16 } |
| 17 dart.fn(getSymbol, core.Symbol, [dart.dynamic, dart.dynamic]); | 17 dart.fn(getSymbol, core.Symbol, [dart.dynamic, dart.dynamic]); |
| 18 dart.defineLazyProperties(exports, { | 18 dart.defineLazyProperties(exports, { |
| 19 get currentJsMirrorSystem() { | 19 get currentJsMirrorSystem() { |
| 20 return dart.throw_(new core.UnimplementedError("MirrorSystem.currentJsMirr
orSystem unimplemented")); | 20 return dart.throw(new core.UnimplementedError("MirrorSystem.currentJsMirro
rSystem unimplemented")); |
| 21 } | 21 } |
| 22 }); | 22 }); |
| 23 function reflect(reflectee) { | 23 function reflect(reflectee) { |
| 24 return new JsInstanceMirror._(reflectee); | 24 return new JsInstanceMirror._(reflectee); |
| 25 } | 25 } |
| 26 dart.fn(reflect, mirrors.InstanceMirror, [dart.dynamic]); | 26 dart.fn(reflect, mirrors.InstanceMirror, [dart.dynamic]); |
| 27 function reflectType(key) { | 27 function reflectType(key) { |
| 28 return new JsClassMirror._(key); | 28 return new JsClassMirror._(key); |
| 29 } | 29 } |
| 30 dart.fn(reflectType, mirrors.TypeMirror, [core.Type]); | 30 dart.fn(reflectType, mirrors.TypeMirror, [core.Type]); |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 exports.getName = getName; | 198 exports.getName = getName; |
| 199 exports.getSymbol = getSymbol; | 199 exports.getSymbol = getSymbol; |
| 200 exports.reflect = reflect; | 200 exports.reflect = reflect; |
| 201 exports.reflectType = reflectType; | 201 exports.reflectType = reflectType; |
| 202 exports.JsInstanceMirror = JsInstanceMirror; | 202 exports.JsInstanceMirror = JsInstanceMirror; |
| 203 exports.JsClassMirror = JsClassMirror; | 203 exports.JsClassMirror = JsClassMirror; |
| 204 exports.JsTypeMirror = JsTypeMirror; | 204 exports.JsTypeMirror = JsTypeMirror; |
| 205 exports.JsParameterMirror = JsParameterMirror; | 205 exports.JsParameterMirror = JsParameterMirror; |
| 206 exports.JsMethodMirror = JsMethodMirror; | 206 exports.JsMethodMirror = JsMethodMirror; |
| 207 }); | 207 }); |
| OLD | NEW |