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

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

Issue 1070223002: Remove old debug output. (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
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/incremental_resolver.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f5c58060d990e93876b4f3757a0a1d159dc44654..913e1f2bb2d1e9a9c74f1914c2f83043d987f9fd 100644
--- a/pkg/analysis_server/lib/src/protocol_server.dart
+++ b/pkg/analysis_server/lib/src/protocol_server.dart
@@ -213,18 +213,6 @@ NavigationTarget newNavigationTarget_fromElement(
engine.Element element, int fileToIndex(String file)) {
ElementKind kind = newElementKind_fromEngine(element.kind);
Location location = newLocation_fromElement(element);
- // TODO(scheglov) debug null Location
- if (location == null) {
- String desc = 'location == null';
- try {
- desc += ' for: $element';
- desc += ' of type: ${element.runtimeType}';
- desc += ' element.location: ${element.location}';
- desc += ' element.context: ${element.context}';
- desc += ' element.source: ${element.source}';
- } catch (e) {}
- throw new ArgumentError(desc);
- }
String file = location.file;
int fileIndex = fileToIndex(file);
return new NavigationTarget(kind, fileIndex, location.offset, location.length,
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/incremental_resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698