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
851 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();
7 months ago
public TElementToken AsElementToken() => (this as TElementToken)!;
7 months ago
public TFunctionToken AsFunctionToken() => (this as TFunctionToken)!;
7 months ago
public TTextToken AsTextToken() => (this as TTextToken)!;
7 months ago
public TBlockToken AsBlockToken() => (this as TBlockToken)!;
7 months ago
public TPropertyToken AsPropertyToken() => (this as TPropertyToken)!;
7 months ago
public TSystemToken AsSystemToken() => (this as TSystemToken)!;
6 years ago
}
}

Powered by TurnKey Linux.