/// <summary> /// Initializes a new <see cref="PlaylistToken"/> instance with the specified type and value. /// </summary> /// <param name="type">The type of the token.</param> /// <param name="value">The value of the token.</param> /// <param name="line">The line number of the token.</param> /// <param name="column">The line position of the token.</param> public PlaylistToken(PlaylistTokenType type, string value, int line, int column) { Type = type; Value = value; Line = line; Column = column; }
private void SetToken(PlaylistTokenType tokenType) { TokenType = tokenType; TokenValue = new string(_buffer, _tokenAnchor, _cursor - _tokenAnchor); TokenLine = _tokenLine; TokenColumn = _tokenColumn; }
public PlaylistToken(PlaylistTokenType type) { Type = type; }
public PlaylistToken(PlaylistTokenType type, string content) { Type = type; Content = content; }