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/TToken.cs

24 lines
946 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using DOM.DSL.Contracts;
namespace DOM.DSL.Tokens
{
/// <summary>
/// Абстрактная единица шаблона
/// </summary>
public abstract class TToken : TCloneable
{
public abstract TToken Clone();
/// <summary>
/// Копия с установкой NextToken в null, для предотвращения циклических расчетов
/// </summary>
/// <returns></returns>
public abstract TToken CloneLocal();
public TElementToken AsElementToken() => this as TElementToken;
public TFunctionToken AsFunctionToken() => this as TFunctionToken;
public TTextToken AsTextToken() => this as TTextToken;
public TBlockToken AsBlockToken() => this as TBlockToken;
public TPropertyToken AsPropertyToken() => this as TPropertyToken;
public TSystemToken AsSystemToken() => this as TSystemToken;
}
}

Powered by TurnKey Linux.