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 library dart._js_mirrors; | 5 library dart._js_mirrors; |
6 | 6 |
7 import 'dart:mirrors'; | 7 import 'dart:mirrors'; |
8 import 'dart:_foreign_helper' show JS; | 8 import 'dart:_foreign_helper' show JS; |
9 import 'dart:_internal' as _internal; | 9 import 'dart:_internal' as _internal; |
10 | 10 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 67 |
68 dynamic _getGenericClass(obj) { | 68 dynamic _getGenericClass(obj) { |
69 return JS('', '#.getGenericClass(#)', _dart, obj); | 69 return JS('', '#.getGenericClass(#)', _dart, obj); |
70 } | 70 } |
71 | 71 |
72 dynamic _getGenericArgs(obj) { | 72 dynamic _getGenericArgs(obj) { |
73 return JS('', '#.getGenericArgs(#)', _dart, obj); | 73 return JS('', '#.getGenericArgs(#)', _dart, obj); |
74 } | 74 } |
75 | 75 |
76 dynamic _defaultConstructorType(type) { | 76 dynamic _defaultConstructorType(type) { |
77 return JS('', '#.definiteFunctionType(#, [])', _dart, type); | 77 return JS('', '#.fnType(#, [])', _dart, type); |
78 } | 78 } |
79 | 79 |
80 dynamic _getMixins(type) { | 80 dynamic _getMixins(type) { |
81 return JS('', '#.getMixins(#, [])', _dart, type); | 81 return JS('', '#.getMixins(#, [])', _dart, type); |
82 } | 82 } |
83 | 83 |
84 dynamic _getFunctionType(type) { | 84 dynamic _getFunctionType(type) { |
85 return JS('', '#.getFunctionTypeMirror(#)', _dart, type); | 85 return JS('', '#.getFunctionTypeMirror(#)', _dart, type); |
86 } | 86 } |
87 | 87 |
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
647 var param = | 647 var param = |
648 new JsParameterMirror._(new Symbol(''), _wrap(type), metadata); | 648 new JsParameterMirror._(new Symbol(''), _wrap(type), metadata); |
649 params[i + args.length] = param; | 649 params[i + args.length] = param; |
650 } | 650 } |
651 | 651 |
652 _params = new List.unmodifiable(params); | 652 _params = new List.unmodifiable(params); |
653 } | 653 } |
654 | 654 |
655 String toString() => "MethodMirror on '$_name'"; | 655 String toString() => "MethodMirror on '$_name'"; |
656 } | 656 } |
OLD | NEW |