mirror of https://github.com/ogoun/Zero.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
844 B
37 lines
844 B
namespace DOM.DSL.Tokens
|
|
{
|
|
/// <summary>
|
|
/// Token referring to the document element
|
|
/// </summary>
|
|
public class TElementToken :
|
|
TToken
|
|
{
|
|
/// <summary>
|
|
/// Имя элемента
|
|
/// </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
|
|
};
|
|
}
|
|
}
|
|
} |