4 using System.Collections;
 
    5 using System.Collections.Generic;
 
    7 namespace SiliconStudio.Shaders.Ast.Hlsl
 
   14         #region Constructors and Destructors 
   21             Members = 
new List<Node>();
 
   22             Attributes = 
new List<AttributeBase>();
 
   23             Qualifiers = Qualifier.None;
 
   28         #region Public Properties 
   36         public List<AttributeBase> Attributes { 
get; set; }
 
   52         public List<Node> Members { 
get; set; }
 
   80         #region Public Methods 
   86             ChildrenList.AddRange(Attributes);
 
   87             ChildrenList.Add(Type);
 
   88             if (Name != null) ChildrenList.Add(Name);
 
   89             if (Register != null) ChildrenList.Add(Register);
 
   90             ChildrenList.AddRange(Members);
 
   97             return string.Format(
"{0} {1} {{...}}", Type, Name);
 
override string ToString()
 
Declaration of a constant buffer. 
 
Describe a register location 
 
ConstantBuffer()
Initializes a new instance of the ConstantBuffer class. 
 
override IEnumerable< Node > Childrens()
Gets the child nodes. An enumeration of child nodes