/// <summary> /// Creates a new <see cref="NextTokenResults"/> instance with the /// <paramref name="error"/> provided. /// </summary> /// <param name="error">The error of an unsuccessful operation.</param> public NextTokenResults(IParserSyntaxError error) { this.error = error; this.token = null; }
public void SyntaxError(IParserSyntaxError error) { base.AddImpl(error); }
/// <summary> /// Creates a new <see cref="NextTokenResults"/> instance with the /// <paramref name="token"/> provided. /// </summary> /// <param name="token">The token of a successful operation.</param> public NextTokenResults(IToken token) { this.token = token; this.error = null; }