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

Unified Diff: pkg/analysis_server/lib/src/search/search_result.dart

Issue 628293004: Remove references to Engine classes from protocol.dart (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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/search/search_result.dart
diff --git a/pkg/analysis_server/lib/src/search/search_result.dart b/pkg/analysis_server/lib/src/search/search_result.dart
deleted file mode 100644
index e0e566769593c413d74a73bfa297ba1853b6ee89..0000000000000000000000000000000000000000
--- a/pkg/analysis_server/lib/src/search/search_result.dart
+++ /dev/null
@@ -1,26 +0,0 @@
-// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-library search.search_result;
-
-import 'package:analysis_server/src/protocol.dart';
-import 'package:analysis_server/src/services/search/search_engine.dart';
-import 'package:analyzer/src/generated/element.dart' as engine;
-
-
-SearchResult searchResultFromMatch(SearchMatch match) {
- SearchResultKind kind = new SearchResultKind.fromEngine(match.kind);
- Location location = new Location.fromMatch(match);
- List<Element> path = _computePath(match.element);
- return new SearchResult(location, kind, !match.isResolved, path);
-}
-
-List<Element> _computePath(engine.Element element) {
- List<Element> path = <Element>[];
- while (element != null) {
- path.add(new Element.fromEngine(element));
- element = element.enclosingElement;
- }
- return path;
-}

Powered by Google App Engine
This is Rietveld 408576698