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

Unified Diff: pkg/analysis_server/lib/src/services/search/search_engine_internal.dart

Issue 1087483006: Rename two more classes to prepare for the public API (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analysis_server/lib/src/services/search/search_engine_internal.dart
diff --git a/pkg/analysis_server/lib/src/services/search/search_engine_internal.dart b/pkg/analysis_server/lib/src/services/search/search_engine_internal.dart
index e5c80dddc59cd055c10e74270044e6fa8e3a8005..d97cf4234d274403a0e8d7269743bdaa0d5f02b7 100644
--- a/pkg/analysis_server/lib/src/services/search/search_engine_internal.dart
+++ b/pkg/analysis_server/lib/src/services/search/search_engine_internal.dart
@@ -6,11 +6,11 @@ library services.src.search.search_engine;
import 'dart:async';
+import 'package:analysis_server/src/services/correction/source_range.dart';
import 'package:analysis_server/src/services/index/index.dart';
import 'package:analysis_server/src/services/search/search_engine.dart';
import 'package:analyzer/src/generated/element.dart';
import 'package:analyzer/src/generated/source.dart';
-import 'package:analysis_server/src/services/correction/source_range.dart';
/**
* A [SearchEngine] implementation.
@@ -197,11 +197,11 @@ class _Requestor {
_Requestor(this.index);
- void add(Element element, Relationship relationship, MatchKind kind) {
+ void add(Element element, RelationshipImpl relationship, MatchKind kind) {
Future relationsFuture = index.getRelationships(element, relationship);
- Future matchesFuture = relationsFuture.then((List<Location> locations) {
+ Future matchesFuture = relationsFuture.then((List<LocationImpl> locations) {
List<SearchMatch> matches = <SearchMatch>[];
- for (Location location in locations) {
+ for (LocationImpl location in locations) {
matches.add(new SearchMatch(kind, location.element,
new SourceRange(location.offset, location.length),
location.isResolved, location.isQualified));

Powered by Google App Engine
This is Rietveld 408576698