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.
Zero/ZeroLevel/Services/DOM/DSL/Tokens/TElementToken.cs

37 lines
835 B

6 years ago
namespace DOM.DSL.Tokens
{
/// <summary>
/// Token referring to the document element
6 years ago
/// </summary>
public class TElementToken :
TToken
{
/// <summary>
6 years ago
/// Element name
6 years ago
/// </summary>
public string ElementName;
6 years ago
/// <summary>
/// Optionally, next token
6 years ago
/// </summary>
public TToken NextToken;
public override TToken Clone()
{
return new TElementToken
{
ElementName = this.ElementName,
7 months ago
NextToken = this.NextToken?.Clone()!
6 years ago
};
}
public override TToken CloneLocal()
{
return new TElementToken
{
ElementName = this.ElementName,
7 months ago
NextToken = null!
6 years ago
};
}
}
}

Powered by TurnKey Linux.