4 using System.Collections;
5 using System.Collections.Generic;
7 namespace SiliconStudio.Shaders.Ast.Hlsl
14 #region Constructors and Destructors
33 Methods =
new List<MethodDeclaration>();
34 GenericParameters =
new List<TypeBase>();
35 GenericArguments =
new List<TypeBase>();
40 #region Public Properties
43 public List<TypeBase> GenericParameters {
get; set; }
46 public List<TypeBase> GenericArguments {
get; set; }
54 public List<MethodDeclaration> Methods {
get; set; }
58 #region Public Methods
64 ChildrenList.Add(Name);
65 ChildrenList.AddRange(Methods);
72 return string.Format(
"interface {0} {{...}}", Name);
78 return base.Equals(other);
82 public override bool Equals(
object obj)
84 if (ReferenceEquals(null, obj))
88 if (ReferenceEquals(
this, obj))
98 return base.GetHashCode();
111 return Equals(left, right);
124 return !Equals(left, right);
An interface used by generic definitions and instance.
override int GetHashCode()
override IEnumerable< Node > Childrens()
Gets the child nodes. An enumeration of child nodes
override string ToString()
InterfaceType(string name)
Initializes a new instance of the InterfaceType class.
Toplevel interface for a declaration.
InterfaceType()
Initializes a new instance of the InterfaceType class.
override bool Equals(object obj)
bool Equals(InterfaceType other)