| 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());
|
| }
|
| }
|
|
|