Boo.BooLangService.Intellisense.IntellisenseNodeList.Add C# (CSharp) Method

Add() public method

public Add ( IBooParseTreeNode item ) : void
item IBooParseTreeNode
return void
        public override void Add(IBooParseTreeNode item)
        {
            if (item.IntellisenseVisible)
                base.Add(item);
        }

Usage Example

        private IList<IBooParseTreeNode> FlattenUp(IBooParseTreeNode node)
        {
            IList<IBooParseTreeNode> flattened = new IntellisenseNodeList();
            IBooParseTreeNode parent = node;

            while ((parent = parent.Parent) != null)
            {
                foreach (IBooParseTreeNode sibling in parent.Children)
                {
                    flattened.Add(sibling);
                }

                flattened.Add(parent);
            }

            return flattened;
        }
All Usage Examples Of Boo.BooLangService.Intellisense.IntellisenseNodeList::Add
IntellisenseNodeList