diff --git a/platform/xdebugger-testFramework/src/com/intellij/xdebugger/XTestCompositeNode.java b/platform/xdebugger-testFramework/src/com/intellij/xdebugger/XTestCompositeNode.java index f1988b495025..a9a1d4122c17 100644 --- a/platform/xdebugger-testFramework/src/com/intellij/xdebugger/XTestCompositeNode.java +++ b/platform/xdebugger-testFramework/src/com/intellij/xdebugger/XTestCompositeNode.java @@ -18,6 +18,7 @@ import static org.junit.Assert.assertNull; public class XTestCompositeNode extends XTestContainer implements XCompositeNode { private final @NotNull AtomicReference myNextChildrenRunnableReference = new AtomicReference<>(); + private final List myTopValues = new ArrayList<>(); public XTestCompositeNode() { } @@ -26,12 +27,17 @@ public class XTestCompositeNode extends XTestContainer implements XCompo myNextChildrenRunnableReference.set(() -> value.computeChildren(this)); } + public List getTopValues() { + return myTopValues; + } + @Override public void addChildren(@NotNull XValueChildrenList children, boolean last) { final List list = new ArrayList<>(); for (int i = 0; i < children.size(); i++) { list.add(children.getValue(i)); } + myTopValues.addAll(children.getTopValues()); addChildren(list, last); }