XmlToken
The abstract base class of any XML token.
using System.Diagnostics;
namespace AngleSharp.Parser.Xml
{
[DebuggerStepThrough]
internal abstract class XmlToken
{
private readonly XmlTokenType _type;
private readonly TextPosition _position;
public XmlTokenType Type => _type;
public virtual bool IsIgnorable => false;
public TextPosition Position => _position;
public XmlToken(XmlTokenType type, TextPosition position)
{
_type = type;
_position = position;
}
}
}