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.
|
|
|
|
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
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|