~halega/+junk/sharpdevelop

« back to all changes in this revision

Viewing changes to src/AddIns/Debugger/Debugger.AddIn/TreeModel/IListNode.cs

  • Committer: sk
  • Date: 2011-09-10 05:17:57 UTC
  • Revision ID: halega@halega.com-20110910051757-qfouz1llya9m6boy
4.1.0.7915 Release Candidate 1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
 
2
// This code is distributed under the BSD license (for details please see \src\AddIns\Debugger\Debugger.AddIn\license.txt)
 
3
 
 
4
using Debugger.AddIn.Visualizers.Utils;
 
5
using ICSharpCode.NRefactory.Ast;
 
6
using System.Collections;
 
7
using System.Collections.Generic;
 
8
using Debugger.MetaData;
 
9
using ICSharpCode.SharpDevelop.Debugging;
 
10
using ICSharpCode.SharpDevelop.Services;
 
11
 
 
12
namespace Debugger.AddIn.TreeModel
 
13
{
 
14
        public class IListNode : TreeNode
 
15
        {
 
16
                Expression targetList;
 
17
                int listCount;
 
18
                
 
19
                public IListNode(TreeNode parent, Expression targetListObject)
 
20
                        : base(parent)
 
21
                {
 
22
                        this.targetList = targetListObject;
 
23
                        
 
24
                        this.Name = "IList";
 
25
                        this.listCount = this.targetList.GetIListCount();
 
26
                        this.childNodes = Utils.LazyGetItemsOfIList(this, this.targetList);
 
27
                }
 
28
                
 
29
                public override bool HasChildNodes {
 
30
                        get { return this.listCount > 0; }
 
31
                }
 
32
        }
 
33
}