UnityEditor.GameObjectTreeViewDataSource.CalcVisibleItems C# (CSharp) Method

CalcVisibleItems() private method

private CalcVisibleItems ( HierarchyProperty property, bool hasSearchString ) : List
property HierarchyProperty
hasSearchString bool
return List
        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;
        }