| OLD | NEW | 
|---|
| 1 // Copyright (c) 2014, the Dart project authors.  Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 test.invoke_call_on_closure; | 5 library test.invoke_call_on_closure; | 
| 6 | 6 | 
|  | 7 @MirrorsUsed(targets: "test.invoke_call_on_closure") | 
| 7 import 'dart:mirrors'; | 8 import 'dart:mirrors'; | 
| 8 | 9 | 
| 9 import 'package:expect/expect.dart'; | 10 import 'package:expect/expect.dart'; | 
| 10 | 11 | 
| 11 class FakeFunctionCall { | 12 class FakeFunctionCall { | 
| 12   call(x, y) => '1 $x $y'; | 13   call(x, y) => '1 $x $y'; | 
| 13 } | 14 } | 
| 14 class FakeFunctionNSM { | 15 class FakeFunctionNSM { | 
| 15   noSuchMethod(msg) => msg.positionalArguments.join(', '); | 16   noSuchMethod(msg) => msg.positionalArguments.join(', '); | 
| 16 } | 17 } | 
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 59                 im.invoke(#call, [9, 10]).reflectee); | 60                 im.invoke(#call, [9, 10]).reflectee); | 
| 60 | 61 | 
| 61   im = reflect(c.tearOffOpt); | 62   im = reflect(c.tearOffOpt); | 
| 62   Expect.equals('33 C 11 12 13 null', | 63   Expect.equals('33 C 11 12 13 null', | 
| 63                 im.invoke(#call, [11, 12, 13]).reflectee); | 64                 im.invoke(#call, [11, 12, 13]).reflectee); | 
| 64 | 65 | 
| 65   im = reflect(c.tearOffNamed); | 66   im = reflect(c.tearOffNamed); | 
| 66   Expect.equals('44 C 14 15 null 16', | 67   Expect.equals('44 C 14 15 null 16', | 
| 67                 im.invoke(#call, [14, 15], {#w: 16}).reflectee); | 68                 im.invoke(#call, [14, 15], {#w: 16}).reflectee); | 
| 68 } | 69 } | 
| OLD | NEW | 
|---|