| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 dart2js.serialization_test_helper; | 5 library dart2js.serialization_test_helper; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 import 'package:compiler/src/common/resolution.dart'; | 8 import 'package:compiler/src/common/resolution.dart'; |
| 9 import 'package:compiler/src/constants/expressions.dart'; | 9 import 'package:compiler/src/constants/expressions.dart'; |
| 10 import 'package:compiler/src/constants/values.dart'; | 10 import 'package:compiler/src/constants/values.dart'; |
| 11 import 'package:compiler/src/dart_types.dart'; | 11 import 'package:compiler/src/elements/resolution_types.dart'; |
| 12 import 'package:compiler/src/compiler.dart'; | 12 import 'package:compiler/src/compiler.dart'; |
| 13 import 'package:compiler/src/elements/elements.dart'; | 13 import 'package:compiler/src/elements/elements.dart'; |
| 14 import 'package:compiler/src/serialization/equivalence.dart'; | 14 import 'package:compiler/src/serialization/equivalence.dart'; |
| 15 import 'package:compiler/src/tree/nodes.dart'; | 15 import 'package:compiler/src/tree/nodes.dart'; |
| 16 import 'package:expect/expect.dart'; | 16 import 'package:expect/expect.dart'; |
| 17 import 'test_data.dart'; | 17 import 'test_data.dart'; |
| 18 | 18 |
| 19 Check currentCheck; | 19 Check currentCheck; |
| 20 | 20 |
| 21 class Check { | 21 class Check { |
| (...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 654 } | 654 } |
| 655 | 655 |
| 656 if (index == 1 && skip != 0) { | 656 if (index == 1 && skip != 0) { |
| 657 return ['${skip}', segmentNumber(index)]; | 657 return ['${skip}', segmentNumber(index)]; |
| 658 } else if (index == count) { | 658 } else if (index == count) { |
| 659 return [segmentNumber(index - 1)]; | 659 return [segmentNumber(index - 1)]; |
| 660 } else { | 660 } else { |
| 661 return [segmentNumber(index - 1), segmentNumber(index)]; | 661 return [segmentNumber(index - 1), segmentNumber(index)]; |
| 662 } | 662 } |
| 663 } | 663 } |
| OLD | NEW |