| Index: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/processor/NotificationSearchResultsProcessor.java
|
| diff --git a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/processor/NotificationSearchResultsProcessor.java b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/processor/NotificationSearchResultsProcessor.java
|
| index 1165130588af8163d7cd097540424ce02356875f..50df23ef212fe459d7aad345b83a2e3dd98a8c17 100644
|
| --- a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/processor/NotificationSearchResultsProcessor.java
|
| +++ b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/processor/NotificationSearchResultsProcessor.java
|
| @@ -15,6 +15,8 @@ package com.google.dart.server.internal.remote.processor;
|
|
|
| import com.google.dart.server.SearchResult;
|
| import com.google.dart.server.SearchResultKind;
|
| +import com.google.dart.server.generated.types.Element;
|
| +import com.google.dart.server.generated.types.Location;
|
| import com.google.dart.server.internal.BroadcastAnalysisServerListener;
|
| import com.google.dart.server.internal.SearchResultImpl;
|
| import com.google.gson.JsonArray;
|
| @@ -59,9 +61,9 @@ public class NotificationSearchResultsProcessor extends NotificationProcessor {
|
|
|
| private SearchResult constructSearchResult(JsonObject resultObject) {
|
| return new SearchResultImpl(
|
| - constructElementArray(resultObject.getAsJsonArray("path")),
|
| + Element.fromJsonArray(resultObject.getAsJsonArray("path")),
|
| SearchResultKind.valueOf(resultObject.get("kind").getAsString()),
|
| - constructLocation(resultObject.getAsJsonObject("location")),
|
| + Location.fromJson(resultObject.getAsJsonObject("location")),
|
| resultObject.get("isPotential").getAsBoolean());
|
| }
|
| }
|
|
|