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

Unified Diff: pkg/analysis_services/lib/search/search_engine.dart

Issue 395623006: Add hierarchy utils and use them in search. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: tweaks Created 6 years, 5 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_services/lib/search/search_engine.dart
diff --git a/pkg/analysis_services/lib/search/search_engine.dart b/pkg/analysis_services/lib/search/search_engine.dart
index ee2467a6fc561b7ae52cc14925b09959ed071101..7ffa6ab571e2b4bc39302816ed3208739b1fed00 100644
--- a/pkg/analysis_services/lib/search/search_engine.dart
+++ b/pkg/analysis_services/lib/search/search_engine.dart
@@ -5,7 +5,7 @@
// This code was auto-generated, is not intended to be edited, and is subject to
// significant change. Please see the README file for more information.
-library engine.search_engine;
+library services.search_engine;
import 'dart:async';
@@ -17,18 +17,6 @@ import 'package:analyzer/src/generated/source.dart';
/**
- * A [Comparator] that can be used to sort the [SearchMatch]s based on the names
- * of the matched elements.
- */
-final Comparator<SearchMatch> SEARCH_MATCH_NAME_COMPARATOR =
- (SearchMatch firstMatch, SearchMatch secondMatch) {
- String firstName = firstMatch.element.displayName;
- String secondName = secondMatch.element.displayName;
- return firstName.compareTo(secondName);
-};
-
-
-/**
* Returns a new [SearchEngine] instance based on the given [Index].
*/
SearchEngine createSearchEngine(Index index) {
@@ -83,71 +71,6 @@ class MatchKind {
*/
static const MatchKind REFERENCE = const MatchKind('REFERENCE');
-// /**
-// * A declaration of a name.
-// */
-// static const MatchKind NAME_DECLARATION = const MatchKind('NAME_DECLARATION');
-//
-// /**
-// * A reference to a name, resolved.
-// */
-// static const MatchKind NAME_REFERENCE_RESOLVED =
-// const MatchKind('NAME_REFERENCE_RESOLVED');
-//
-// /**
-// * An invocation of a name, resolved.
-// */
-// static const MatchKind NAME_INVOCATION_RESOLVED =
-// const MatchKind('NAME_INVOCATION_RESOLVED');
-//
-// /**
-// * A reference to a name in which the name's value is being read.
-// */
-// static const MatchKind NAME_READ_RESOLVED =
-// const MatchKind('NAME_READ_RESOLVED');
-//
-// /**
-// * A reference to a name in which the name's value is being read and written.
-// */
-// static const MatchKind NAME_READ_WRITE_RESOLVED =
-// const MatchKind('NAME_READ_WRITE_RESOLVED');
-//
-// /**
-// * A reference to a name in which the name's value is being written.
-// */
-// static const MatchKind NAME_WRITE_RESOLVED =
-// const MatchKind('NAME_WRITE_RESOLVED');
-//
-// /**
-// * An invocation of a name, unresolved.
-// */
-// static const MatchKind NAME_INVOCATION_UNRESOLVED =
-// const MatchKind('NAME_INVOCATION_UNRESOLVED');
-//
-// /**
-// * A reference to a name in which the name's value is being read.
-// */
-// static const MatchKind NAME_READ_UNRESOLVED =
-// const MatchKind('NAME_READ_UNRESOLVED');
-//
-// /**
-// * A reference to a name in which the name's value is being read and written.
-// */
-// static const MatchKind NAME_READ_WRITE_UNRESOLVED =
-// const MatchKind('NAME_READ_WRITE_UNRESOLVED');
-//
-// /**
-// * A reference to a name in which the name's value is being written.
-// */
-// static const MatchKind NAME_WRITE_UNRESOLVED =
-// const MatchKind('NAME_WRITE_UNRESOLVED');
-//
-// /**
-// * A reference to a name, unresolved.
-// */
-// static const MatchKind NAME_REFERENCE_UNRESOLVED =
-// const MatchKind('NAME_REFERENCE_UNRESOLVED');
-
final String name;
const MatchKind(this.name);
« no previous file with comments | « pkg/analysis_services/lib/search/hierarchy.dart ('k') | pkg/analysis_services/test/search/hierarchy_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698