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 part of dart2js.semantics_visitor_test; | 5 part of dart2js.semantics_visitor_test; |
6 | 6 |
7 const Map<String, List<Test>> SEND_TESTS = const { | 7 const Map<String, List<Test>> SEND_TESTS = const { |
8 'Parameters': const [ | 8 'Parameters': const [ |
9 // Parameters | 9 // Parameters |
10 const Test('m(o) => o;', | 10 const Test('m(o) => o;', |
(...skipping 1290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1301 arguments: '(null,42)')), | 1301 arguments: '(null,42)')), |
1302 const Test.clazz( | 1302 const Test.clazz( |
1303 ''' | 1303 ''' |
1304 class B { | 1304 class B { |
1305 } | 1305 } |
1306 class C extends B { | 1306 class C extends B { |
1307 m() => super.o; | 1307 m() => super.o; |
1308 } | 1308 } |
1309 ''', | 1309 ''', |
1310 const Visit(VisitKind.VISIT_UNRESOLVED_SUPER_GET)), | 1310 const Visit(VisitKind.VISIT_UNRESOLVED_SUPER_GET)), |
| 1311 const Test.clazz( |
| 1312 ''' |
| 1313 class B { |
| 1314 } |
| 1315 class C extends B { |
| 1316 m() => super.o = 42; |
| 1317 } |
| 1318 ''', |
| 1319 const Visit(VisitKind.VISIT_UNRESOLVED_SUPER_SET, |
| 1320 rhs: '42')), |
1311 ], | 1321 ], |
1312 'Super properties': const [ | 1322 'Super properties': const [ |
1313 // Super properties | 1323 // Super properties |
1314 const Test.clazz( | 1324 const Test.clazz( |
1315 ''' | 1325 ''' |
1316 class B { | 1326 class B { |
1317 get o => null; | 1327 get o => null; |
1318 } | 1328 } |
1319 class C extends B { | 1329 class C extends B { |
1320 m() => super.o; | 1330 m() => super.o; |
(...skipping 3181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4502 element: 'field(a)', rhs: '42')), | 4512 element: 'field(a)', rhs: '42')), |
4503 | 4513 |
4504 const Test( | 4514 const Test( |
4505 ''' | 4515 ''' |
4506 m() => unresolved ??= 42; | 4516 m() => unresolved ??= 42; |
4507 ''', | 4517 ''', |
4508 const Visit(VisitKind.VISIT_UNRESOLVED_SET_IF_NULL, | 4518 const Visit(VisitKind.VISIT_UNRESOLVED_SET_IF_NULL, |
4509 name: 'unresolved', rhs: '42')), | 4519 name: 'unresolved', rhs: '42')), |
4510 ], | 4520 ], |
4511 }; | 4521 }; |
OLD | NEW |