4 using System.Collections;
5 using System.Collections.Generic;
7 namespace SiliconStudio.Shaders.Ast
14 #region Constructors and Destructors
21 Fields =
new List<Variable>();
26 #region Public Properties
34 public List<Variable> Fields {
get; set; }
38 #region Public Methods
44 ChildrenList.Add(Name);
45 ChildrenList.AddRange(Fields);
52 return string.Format(
"struct {0} {{...}}", Name);
58 return base.Equals(other);
62 public override bool Equals(
object obj)
64 if (ReferenceEquals(null, obj))
68 if (ReferenceEquals(
this, obj))
78 return base.GetHashCode();
83 return Equals(left, right);
88 return !Equals(left, right);
StructType()
Initializes a new instance of the StructType class.
bool Equals(StructType other)
A tag interface to identify a container for scope declarations.
override IEnumerable< Node > Childrens()
Gets the child nodes. An enumeration of child nodes
override int GetHashCode()
override string ToString()
override bool Equals(object obj)
Toplevel interface for a declaration.