| 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,
|
|
|