private List<TreeViewItem> CalcVisibleItems(HierarchyProperty property, bool hasSearchString)
{
int depth = property.depth;
int[] expanded = base.expandedIDs.ToArray();
List<TreeViewItem> list = new List<TreeViewItem>();
while (property.NextWithDepthCheck(expanded, depth))
{
int num = this.GetAdjustedItemDepth(hasSearchString, depth, property.depth);
GameObjectTreeViewItem item = this.CreateTreeViewItem(property, hasSearchString, num, true);
list.Add(item);
}
return list;
}