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

Unified Diff: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/MarkOccurrencesManager_NEW.java

Issue 474193003: Make more use of generated code in Java analysis server. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/MarkOccurrencesManager_NEW.java
diff --git a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/MarkOccurrencesManager_NEW.java b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/MarkOccurrencesManager_NEW.java
index ef67f0ea8a081ffca9db7d6bcd1838f8fd89794f..8519551d6280f08445683ef88f5e8636f40faa4f 100644
--- a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/MarkOccurrencesManager_NEW.java
+++ b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/MarkOccurrencesManager_NEW.java
@@ -15,7 +15,7 @@
package com.google.dart.tools.ui.internal.text.editor;
import com.google.common.collect.Maps;
-import com.google.dart.server.Occurrences;
+import com.google.dart.server.generated.types.Occurrences;
import com.google.dart.tools.core.DartCore;
import com.google.dart.tools.ui.internal.text.functions.DartWordFinder;
@@ -206,7 +206,7 @@ public class MarkOccurrencesManager_NEW {
return;
}
- int[] offsets = targetOccurrences.getOffsets();
+ Integer[] offsets = targetOccurrences.getOffsets();
Position[] positions = new Position[offsets.length];
for (int i = 0; i < offsets.length; i++) {
int offset = offsets[i];

Powered by Google App Engine
This is Rietveld 408576698