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
981 B

namespace DOM.DSL.Tokens
{
/// <summary>
/// Токен ссылающийся на элемент документа
/// </summary>
public class TElementToken :
TToken
{
/// <summary>
/// Имя элемента
/// </summary>
public string ElementName;
/// <summary>
/// Опционально, при наличии свойств и/или функций для текущего элемента
/// </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
};
}
}
}

Powered by TurnKey Linux.