OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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.services.src.index.dart_index_contributor; | 5 library test.services.src.index.dart_index_contributor; |
6 | 6 |
7 import 'package:analysis_server/src/provisional/index/index_core.dart'; | 7 import 'package:analysis_server/src/provisional/index/index_core.dart'; |
8 import 'package:analysis_server/src/services/index/index.dart'; | 8 import 'package:analysis_server/src/services/index/index.dart'; |
9 import 'package:analysis_server/src/services/index/index_contributor.dart'; | 9 import 'package:analysis_server/src/services/index/index_contributor.dart'; |
10 import 'package:analysis_server/src/services/index/index_store.dart'; | 10 import 'package:analysis_server/src/services/index/index_store.dart'; |
(...skipping 1763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1774 ExpectedLocation(this.indexable, this.offset, this.length, this.isQualified, | 1774 ExpectedLocation(this.indexable, this.offset, this.length, this.isQualified, |
1775 this.isResolved); | 1775 this.isResolved); |
1776 | 1776 |
1777 @override | 1777 @override |
1778 String toString() { | 1778 String toString() { |
1779 return 'ExpectedLocation(indexable=$indexable; offset=$offset; length=$lengt
h;' | 1779 return 'ExpectedLocation(indexable=$indexable; offset=$offset; length=$lengt
h;' |
1780 ' isQualified=$isQualified isResolved=$isResolved)'; | 1780 ' isQualified=$isQualified isResolved=$isResolved)'; |
1781 } | 1781 } |
1782 } | 1782 } |
1783 | 1783 |
1784 class MockIndexStore extends TypedMock implements InternalIndexStore { | 1784 class MockIndexStore extends TypedMock implements InternalIndexStore {} |
1785 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); | |
1786 } | |
1787 | 1785 |
1788 /** | 1786 /** |
1789 * Information about a relation recorded into {@link IndexStore}. | 1787 * Information about a relation recorded into {@link IndexStore}. |
1790 */ | 1788 */ |
1791 class RecordedRelation { | 1789 class RecordedRelation { |
1792 final IndexableObject indexable; | 1790 final IndexableObject indexable; |
1793 final RelationshipImpl relationship; | 1791 final RelationshipImpl relationship; |
1794 final LocationImpl location; | 1792 final LocationImpl location; |
1795 | 1793 |
1796 RecordedRelation(this.indexable, this.relationship, this.location); | 1794 RecordedRelation(this.indexable, this.relationship, this.location); |
1797 | 1795 |
1798 @override | 1796 @override |
1799 String toString() { | 1797 String toString() { |
1800 return 'RecordedRelation(indexable=$indexable; relationship=$relationship; ' | 1798 return 'RecordedRelation(indexable=$indexable; relationship=$relationship; ' |
1801 'location=$location; flags=' | 1799 'location=$location; flags=' |
1802 '${location.isQualified ? "Q" : ""}' | 1800 '${location.isQualified ? "Q" : ""}' |
1803 '${location.isResolved ? "R" : ""})'; | 1801 '${location.isResolved ? "R" : ""})'; |
1804 } | 1802 } |
1805 } | 1803 } |
OLD | NEW |