| 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:async'; | 5 import 'dart:async'; |
| 6 import 'dart:convert'; | 6 import 'dart:convert'; |
| 7 | 7 |
| 8 import 'package:analysis_server/src/services/index/index_unit.dart'; | 8 import 'package:analysis_server/src/services/index/index_unit.dart'; |
| 9 import 'package:analyzer/dart/ast/ast.dart'; | 9 import 'package:analyzer/dart/ast/ast.dart'; |
| 10 import 'package:analyzer/dart/element/element.dart'; | 10 import 'package:analyzer/dart/element/element.dart'; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 return '(unit=$unitElement; offset=$offset; length=$length;' | 35 return '(unit=$unitElement; offset=$offset; length=$length;' |
| 36 ' isQualified=$isQualified)'; | 36 ' isQualified=$isQualified)'; |
| 37 } | 37 } |
| 38 } | 38 } |
| 39 | 39 |
| 40 @reflectiveTest | 40 @reflectiveTest |
| 41 class PackageIndexAssemblerTest extends AbstractSingleUnitTest { | 41 class PackageIndexAssemblerTest extends AbstractSingleUnitTest { |
| 42 PackageIndex packageIndex; | 42 PackageIndex packageIndex; |
| 43 UnitIndex unitIndex; | 43 UnitIndex unitIndex; |
| 44 | 44 |
| 45 @override |
| 46 bool get enableNewAnalysisDriver => false; |
| 47 |
| 45 _ElementIndexAssert assertThat(Element element) { | 48 _ElementIndexAssert assertThat(Element element) { |
| 46 List<_Relation> relations = _getElementRelations(element); | 49 List<_Relation> relations = _getElementRelations(element); |
| 47 return new _ElementIndexAssert(this, element, relations); | 50 return new _ElementIndexAssert(this, element, relations); |
| 48 } | 51 } |
| 49 | 52 |
| 50 _NameIndexAssert assertThatName(String name) { | 53 _NameIndexAssert assertThatName(String name) { |
| 51 return new _NameIndexAssert(this, name); | 54 return new _NameIndexAssert(this, name); |
| 52 } | 55 } |
| 53 | 56 |
| 54 CompilationUnitElement importedUnit({int index: 0}) { | 57 CompilationUnitElement importedUnit({int index: 0}) { |
| (...skipping 1278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1333 final bool isQualified; | 1336 final bool isQualified; |
| 1334 | 1337 |
| 1335 _Relation(this.kind, this.offset, this.length, this.isQualified); | 1338 _Relation(this.kind, this.offset, this.length, this.isQualified); |
| 1336 | 1339 |
| 1337 @override | 1340 @override |
| 1338 String toString() { | 1341 String toString() { |
| 1339 return '_Relation{kind: $kind, offset: $offset, length: $length, ' | 1342 return '_Relation{kind: $kind, offset: $offset, length: $length, ' |
| 1340 'isQualified: $isQualified}'; | 1343 'isQualified: $isQualified}'; |
| 1341 } | 1344 } |
| 1342 } | 1345 } |
| OLD | NEW |