3 using System.Collections.Generic;
6 using SiliconStudio.Shaders.Ast;
8 namespace SiliconStudio.Paradox.Shaders.Parser.Ast
12 #region Constructors and Destructors
19 Generics =
new List<Variable>();
24 #region Public Properties
32 public List<Variable> Generics {
get; set; }
36 #region Public Methods
41 public string Separator
51 if (ReferenceEquals(null, other))
return false;
52 if (ReferenceEquals(
this, other))
return true;
54 return base.Equals(other) && (Generics.Count != other.
Generics.Count);
58 public override bool Equals(
object obj)
60 if (ReferenceEquals(null, obj))
return false;
61 if (ReferenceEquals(
this, obj))
return true;
70 return (base.GetHashCode() * 397) ^ Generics.GetHashCode();
83 var ranks =
new StringBuilder();
86 foreach (var expression
in Indices)
88 ranks.Append(
"[").Append(expression).Append(
"]");
92 return string.Format(IsSpecialReference ?
"{0}<{1}{2}>" :
"{0}{1}{2}", Text, string.Join(Separator, Generics), ranks);
override int GetHashCode()
List< Variable > Generics
Gets or sets the path.
override bool Equals(object obj)
override IEnumerable< Node > Childrens()
Gets the child nodes. An enumeration of child nodes
bool Equals(ClassIdentifierGeneric other)
override string ToString()
ClassIdentifierGeneric()
Initializes a new instance of the ClassIdentifierGeneric class.