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

Unified Diff: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/local/computer/DartUnitOutlineComputer.java

Issue 263213007: New analysis_server snapshot and completion.dart in analysis_services. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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/local/computer/DartUnitOutlineComputer.java
diff --git a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/local/computer/DartUnitOutlineComputer.java b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/local/computer/DartUnitOutlineComputer.java
index 7f56779b367bd62d22c2dc35334d7137dfacea50..e3e6e2e1f83cd589459b4920d2eeef4520649980 100644
--- a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/local/computer/DartUnitOutlineComputer.java
+++ b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/local/computer/DartUnitOutlineComputer.java
@@ -256,7 +256,7 @@ public class DartUnitOutlineComputer {
if (element instanceof FunctionElement) {
FunctionElement functionElement = (FunctionElement) element;
if (name.equals(functionElement.getName())) {
- LibraryElement libraryElement = functionElement.getAncestor(LibraryElement.class);
+ LibraryElement libraryElement = functionElement.getLibrary();
return libraryElement != null && UNITTEST_LIBRARY.equals(libraryElement.getName());
}
}

Powered by Google App Engine
This is Rietveld 408576698