| 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 import 'dart:convert'; | 5 import 'dart:convert'; |
| 6 | 6 |
| 7 import 'package:analyzer/dart/ast/ast.dart'; | 7 import 'package:analyzer/dart/ast/ast.dart'; |
| 8 import 'package:analyzer/dart/element/element.dart'; | 8 import 'package:analyzer/dart/element/element.dart'; |
| 9 import 'package:analyzer/src/summary/format.dart'; | 9 import 'package:analyzer/src/summary/format.dart'; |
| 10 import 'package:analyzer/src/summary/idl.dart'; | 10 import 'package:analyzer/src/summary/idl.dart'; |
| 11 import 'package:analyzer/src/summary/index_unit.dart'; | 11 import 'package:analyzer/src/summary/index_unit.dart'; |
| 12 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
| 12 import 'package:unittest/unittest.dart'; | 13 import 'package:unittest/unittest.dart'; |
| 13 | 14 |
| 14 import '../../reflective_tests.dart'; | |
| 15 import '../abstract_single_unit.dart'; | 15 import '../abstract_single_unit.dart'; |
| 16 | 16 |
| 17 main() { | 17 main() { |
| 18 groupSep = ' | '; | 18 groupSep = ' | '; |
| 19 runReflectiveTests(PackageIndexAssemblerTest); | 19 defineReflectiveTests(PackageIndexAssemblerTest); |
| 20 } | 20 } |
| 21 | 21 |
| 22 class ExpectedLocation { | 22 class ExpectedLocation { |
| 23 final CompilationUnitElement unitElement; | 23 final CompilationUnitElement unitElement; |
| 24 final int offset; | 24 final int offset; |
| 25 final int length; | 25 final int length; |
| 26 final bool isQualified; | 26 final bool isQualified; |
| 27 | 27 |
| 28 ExpectedLocation( | 28 ExpectedLocation( |
| 29 this.unitElement, this.offset, this.length, this.isQualified); | 29 this.unitElement, this.offset, this.length, this.isQualified); |
| (...skipping 1301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1331 final bool isQualified; | 1331 final bool isQualified; |
| 1332 | 1332 |
| 1333 _Relation(this.kind, this.offset, this.length, this.isQualified); | 1333 _Relation(this.kind, this.offset, this.length, this.isQualified); |
| 1334 | 1334 |
| 1335 @override | 1335 @override |
| 1336 String toString() { | 1336 String toString() { |
| 1337 return '_Relation{kind: $kind, offset: $offset, length: $length, ' | 1337 return '_Relation{kind: $kind, offset: $offset, length: $length, ' |
| 1338 'isQualified: $isQualified}'; | 1338 'isQualified: $isQualified}'; |
| 1339 } | 1339 } |
| 1340 } | 1340 } |
| OLD | NEW |