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

Unified Diff: pkg/analysis_server/lib/src/protocol_server.dart

Issue 770253003: Update local functions methods/functions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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/protocol_server.dart
diff --git a/pkg/analysis_server/lib/src/protocol_server.dart b/pkg/analysis_server/lib/src/protocol_server.dart
index 74d483efdfc89d764b24c507f18740968d0e46e1..26caf44a99f7368d6778230746f27831abcad2a1 100644
--- a/pkg/analysis_server/lib/src/protocol_server.dart
+++ b/pkg/analysis_server/lib/src/protocol_server.dart
@@ -230,11 +230,6 @@ NavigationTarget newNavigationTarget_fromElement(engine.Element element,
int fileToIndex(String file)) {
ElementKind kind = newElementKind_fromEngine(element.kind);
Location location = newLocation_fromElement(element);
- // TODO(scheglov) Fix the enclosing element problem in the incremental
- // resolver and remove this.
- if (location == null) {
- return null;
- }
String file = location.file;
int fileIndex = fileToIndex(file);
return new NavigationTarget(

Powered by Google App Engine
This is Rietveld 408576698