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

Unified Diff: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/processor/NotificationAnalysisOutlineProcessor.java

Issue 311053005: Updates for the Outline API and use it in Editor. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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.server/src/com/google/dart/server/internal/remote/processor/NotificationAnalysisOutlineProcessor.java
diff --git a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/processor/NotificationAnalysisOutlineProcessor.java b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/processor/NotificationAnalysisOutlineProcessor.java
index 3a1951157773b56918548d689dbf26e4f97412d5..b1f63c62141bf68b737194ec0a416792a9859e3a 100644
--- a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/processor/NotificationAnalysisOutlineProcessor.java
+++ b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/processor/NotificationAnalysisOutlineProcessor.java
@@ -59,14 +59,18 @@ public class NotificationAnalysisOutlineProcessor extends NotificationProcessor
private Outline computeOutline(Outline parent, JsonObject outlineObject) {
ElementKind kind = getElementKind(outlineObject.get("kind").getAsString());
String name = outlineObject.get("name").getAsString();
- int offset = outlineObject.get("offset").getAsInt();
- int length = outlineObject.get("length").getAsInt();
+ int nameOffset = outlineObject.get("nameOffset").getAsInt();
+ int nameLength = outlineObject.get("nameLength").getAsInt();
+ int elementOffset = outlineObject.get("elementOffset").getAsInt();
+ int elementLength = outlineObject.get("elementLength").getAsInt();
boolean isAbstract = outlineObject.get("isAbstract").getAsBoolean();
boolean isStatic = outlineObject.get("isStatic").getAsBoolean();
- String arguments = null;
- if (outlineObject.has("arguments")) {
- arguments = outlineObject.get("arguments").getAsString();
+ // prepare parameters
+ String parameters = null;
+ if (outlineObject.has("parameters")) {
+ parameters = outlineObject.get("parameters").getAsString();
}
+ // prepare return type
String returnType = null;
if (outlineObject.has("returnType")) {
returnType = outlineObject.get("returnType").getAsString();
@@ -77,11 +81,13 @@ public class NotificationAnalysisOutlineProcessor extends NotificationProcessor
parent,
kind,
name,
- offset,
- length,
+ nameOffset,
+ nameLength,
+ elementOffset,
+ elementLength,
isAbstract,
isStatic,
- arguments,
+ parameters,
returnType);
// compute children recursively

Powered by Google App Engine
This is Rietveld 408576698