Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(167)

Side by Side Diff: pkg/analysis_server/test/services/index/dart_index_contributor_test.dart

Issue 1507813004: Remove unnecessary 'noSuchMethod' declarations. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/protocol_server_test.dart ('k') | pkg/analysis_server/test/services/index/store/mocks.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698