| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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.model; | 5 library test.model; |
| 6 | 6 |
| 7 var accessorA; | 7 var accessorA; |
| 8 | 8 |
| 9 var accessorB; | 9 var accessorB; |
| 10 | 10 |
| 11 var accessorC; | 11 var accessorC; |
| 12 | 12 |
| 13 var fieldC; | 13 var fieldC; |
| 14 | 14 |
| 15 class A { | 15 class A { |
| 16 var field; | 16 var field; |
| 17 instanceMethod(x) => 'A:instanceMethod($x)'; | 17 instanceMethod(x) => 'A:instanceMethod($x)'; |
| 18 get accessor => 'A:get accessor'; | 18 get accessor => 'A:get accessor'; |
| 19 set accessor(x) { | 19 set accessor(x) { |
| 20 accessorA = x; | 20 accessorA = x; |
| 21 } | 21 } |
| 22 |
| 22 aMethod() => 'aMethod'; | 23 aMethod() => 'aMethod'; |
| 23 } | 24 } |
| 24 | 25 |
| 25 class B extends A { | 26 class B extends A { |
| 26 get field => 'B:get field'; | 27 get field => 'B:get field'; |
| 27 instanceMethod(x) => 'B:instanceMethod($x)'; | 28 instanceMethod(x) => 'B:instanceMethod($x)'; |
| 28 get accessor => 'B:get accessor'; | 29 get accessor => 'B:get accessor'; |
| 29 set accessor(x) { | 30 set accessor(x) { |
| 30 accessorB = x; | 31 accessorB = x; |
| 31 } | 32 } |
| 33 |
| 32 bMethod() => 'bMethod'; | 34 bMethod() => 'bMethod'; |
| 33 } | 35 } |
| 34 | 36 |
| 35 class C extends B { | 37 class C extends B { |
| 36 set field(x) { | 38 set field(x) { |
| 37 fieldC = x; | 39 fieldC = x; |
| 38 } | 40 } |
| 41 |
| 39 instanceMethod(x) => 'C:instanceMethod($x)'; | 42 instanceMethod(x) => 'C:instanceMethod($x)'; |
| 40 get accessor => 'C:get accessor'; | 43 get accessor => 'C:get accessor'; |
| 41 set accessor(x) { | 44 set accessor(x) { |
| 42 accessorC = x; | 45 accessorC = x; |
| 43 } | 46 } |
| 47 |
| 44 cMethod() => 'cMethod'; | 48 cMethod() => 'cMethod'; |
| 45 } | 49 } |
| OLD | NEW |