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

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

Issue 462403005: Move Location factories and RefactoringProblemSeverity.max into the generated classes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rename to 'fromX'. Created 6 years, 4 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
index 7e08d5f3c99346dade2ef62551b952158095fc6f..e40605e7e6d01f7729585c72532629e325e8c0c6 100644
--- a/pkg/analysis_server/lib/src/search/search_result.dart
+++ b/pkg/analysis_server/lib/src/search/search_result.dart
@@ -11,11 +11,7 @@ import 'package:analyzer/src/generated/element.dart' as engine;
SearchResult searchResultFromMatch(SearchMatch match) {
SearchResultKind kind = new SearchResultKind.fromEngine(match.kind);
- Location location =
- new Location.fromOffset(
- match.element,
- match.sourceRange.offset,
- match.sourceRange.length);
+ Location location = new Location.fromMatch(match);
List<Element> path = _computePath(match.element);
return new SearchResult(location, kind, !match.isResolved, path);
}
« no previous file with comments | « pkg/analysis_server/lib/src/protocol2.dart ('k') | pkg/analysis_server/lib/src/services/correction/statement_analyzer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698