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

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

Issue 1209633002: Warning fix. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/analysis/index/index_core.dart'; 7 import 'package:analysis_server/analysis/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 1484 matching lines...) Expand 10 before | Expand all | Expand 10 after
1495 return _assertRecordedRelation(new IndexableElement(expectedElement), 1495 return _assertRecordedRelation(new IndexableElement(expectedElement),
1496 expectedRelationship, expectedLocation); 1496 expectedRelationship, expectedLocation);
1497 } 1497 }
1498 1498
1499 /** 1499 /**
1500 * Asserts that [recordedRelations] has an item with the expected properties. 1500 * Asserts that [recordedRelations] has an item with the expected properties.
1501 */ 1501 */
1502 LocationImpl _assertRecordedRelationForName(String expectedName, 1502 LocationImpl _assertRecordedRelationForName(String expectedName,
1503 RelationshipImpl expectedRelationship, 1503 RelationshipImpl expectedRelationship,
1504 ExpectedLocation expectedLocation) { 1504 ExpectedLocation expectedLocation) {
1505 _assertRecordedRelationForElement( 1505 return _assertRecordedRelationForElement(
1506 new NameElement(expectedName), expectedRelationship, expectedLocation); 1506 new NameElement(expectedName), expectedRelationship, expectedLocation);
1507 } 1507 }
1508 1508
1509 ExpectedLocation _expectedLocation(Element element, String search, 1509 ExpectedLocation _expectedLocation(Element element, String search,
1510 {int length: -1, bool isQualified: false, bool isResolved: true}) { 1510 {int length: -1, bool isQualified: false, bool isResolved: true}) {
1511 int offset = findOffset(search); 1511 int offset = findOffset(search);
1512 if (length == -1) { 1512 if (length == -1) {
1513 length = getLeadingIdentifierLength(search); 1513 length = getLeadingIdentifierLength(search);
1514 } 1514 }
1515 return new ExpectedLocation( 1515 return new ExpectedLocation(
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
1565 1565
1566 RecordedRelation(this.indexable, this.relationship, this.location); 1566 RecordedRelation(this.indexable, this.relationship, this.location);
1567 1567
1568 @override 1568 @override
1569 String toString() { 1569 String toString() {
1570 return 'RecordedRelation(indexable=$indexable; relationship=$relationship; ' 1570 return 'RecordedRelation(indexable=$indexable; relationship=$relationship; '
1571 'location=$location; flags=' '${location.isQualified ? "Q" : ""}' 1571 'location=$location; flags=' '${location.isQualified ? "Q" : ""}'
1572 '${location.isResolved ? "R" : ""})'; 1572 '${location.isResolved ? "R" : ""})';
1573 } 1573 }
1574 } 1574 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698