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

30 lines
833 B

6 years ago
using DOM.DSL.Contracts;
namespace DOM.DSL.Tokens
{
/// <summary>
/// Abstract token
6 years ago
/// </summary>
public abstract class TToken : TCloneable
{
public abstract TToken Clone();
6 years ago
/// <summary>
/// Copying token with set NextToken to null, to break cycle
6 years ago
/// </summary>
/// <returns></returns>
public abstract TToken CloneLocal();
6 years ago
public TElementToken AsElementToken() => this as TElementToken;
6 years ago
public TFunctionToken AsFunctionToken() => this as TFunctionToken;
6 years ago
public TTextToken AsTextToken() => this as TTextToken;
6 years ago
public TBlockToken AsBlockToken() => this as TBlockToken;
6 years ago
public TPropertyToken AsPropertyToken() => this as TPropertyToken;
6 years ago
public TSystemToken AsSystemToken() => this as TSystemToken;
}
}

Powered by TurnKey Linux.