4 using System.Collections;
5 using System.Collections.Generic;
7 namespace SiliconStudio.Shaders.Ast
14 #region Constructors and Destructors
47 #region Public Properties
65 get {
return Literal != null ? Literal.Text : null; }
87 get {
return Literal != null ? Literal.Value : null; }
92 Literal.Value = value;
103 #region Public Methods
107 if (ReferenceEquals(null, other))
return false;
108 if (ReferenceEquals(
this, other))
return true;
114 if (ReferenceEquals(null, obj))
return false;
115 if (ReferenceEquals(
this, obj))
return true;
127 return Equals(left, right);
132 return !Equals(left, right);
138 ChildrenList.Clear();
146 return string.Format(
"{0}",
Literal);
override int GetHashCode()
override int GetHashCode()
bool Equals(LiteralExpression other)
LiteralExpression(Literal literal)
Initializes a new instance of the LiteralExpression class.
override bool Equals(object obj)
LiteralExpression(object value)
Initializes a new instance of the LiteralExpression class.
override string ToString()
override IEnumerable< Node > Childrens()
Gets the child nodes. An enumeration of child nodes
Literal Literal
Gets or sets the literal.
LiteralExpression()
Initializes a new instance of the LiteralExpression class.