Exemple #1
0
 /// <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;
 }
Exemple #2
0
 private void SetToken(PlaylistTokenType tokenType)
 {
     TokenType = tokenType;
     TokenValue = new string(_buffer, _tokenAnchor, _cursor - _tokenAnchor);
     TokenLine = _tokenLine;
     TokenColumn = _tokenColumn;
 }
Exemple #3
0
 public PlaylistToken(PlaylistTokenType type)
 {
     Type = type;
 }
Exemple #4
0
 public PlaylistToken(PlaylistTokenType type, string content)
 {
     Type    = type;
     Content = content;
 }