mirror of https://github.com/ogoun/Zero.git
37 lines
833 B
37 lines
833 B
namespace DOM.DSL.Tokens
|
|
{
|
|
/// <summary>
|
|
/// Token referring to the document element
|
|
/// </summary>
|
|
public class TElementToken :
|
|
TToken
|
|
{
|
|
/// <summary>
|
|
/// Element name
|
|
/// </summary>
|
|
public string ElementName;
|
|
|
|
/// <summary>
|
|
/// Optionally, next token
|
|
/// </summary>
|
|
public TToken NextToken;
|
|
|
|
public override TToken Clone()
|
|
{
|
|
return new TElementToken
|
|
{
|
|
ElementName = this.ElementName,
|
|
NextToken = this.NextToken?.Clone()
|
|
};
|
|
}
|
|
|
|
public override TToken CloneLocal()
|
|
{
|
|
return new TElementToken
|
|
{
|
|
ElementName = this.ElementName,
|
|
NextToken = null
|
|
};
|
|
}
|
|
}
|
|
} |