Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(321)

Side by Side Diff: pkg/dev_compiler/tool/input_sdk/private/js_mirrors.dart

Issue 2869733006: Revert "Revert "fix #27256, track type bounds for generic functions"" (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698