// Public Methods // Private Methods private static Item GetItemForNamespace(List <Item> list, PhpNamespace name) { var item = list.Any() ? list.Last() : null; if (item == null || item.Name != name) { item = new Item(name); list.Add(item); } return(item); }
public Item(PhpNamespace Name) { this.Name = Name; Items = new List <IEmitable>(); ; }