Пример #1
0
        private void AddRegion(ICodeRegion region, Region parentRegion)
        {
            var r = new Region();

            r.Name       = region.Name;
            r.LineNumber = region.LineStart;
            Debug.WriteLine("Added region {0} to {1}", r.Name, this.Name);

            parentRegion.AddChild(r);

            foreach (var nestedRegion in region.NestedRegions)
            {
                AddRegion(nestedRegion, r);
            }
        }
Пример #2
0
        public bool AddRegion(ICodeRegion region)
        {
            var r = new Region();

            r.Name       = region.Name;
            r.LineNumber = region.LineStart;
            _regionList.Add(r);
            //this.Name = "regions" + _regionList.Count();

            foreach (var nestedRegion in region.NestedRegions)
            {
                AddRegion(nestedRegion, r);
            }
            return(true);
        }
Пример #3
0
        private void AddRegion(ICodeRegion region, Region parentRegion)
        {
            var r = new Region();
            r.Name = region.Name;
            r.LineNumber = region.LineStart;
            Debug.WriteLine("Added region {0} to {1}", r.Name, this.Name);

            parentRegion.AddChild(r);

            foreach (var nestedRegion in region.NestedRegions)
            {
                AddRegion(nestedRegion, r);
            }

        }
Пример #4
0
        public bool AddRegion(ICodeRegion region)
        {
            var r = new Region();
            r.Name = region.Name;
            r.LineNumber = region.LineStart;
            _regionList.Add(r);
            //this.Name = "regions" + _regionList.Count();

            foreach (var nestedRegion in region.NestedRegions)
            {
                AddRegion(nestedRegion, r);
            }
            return true;
        }