Exemple #1
0
 /// <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;
 }
Exemple #2
0
 public void SyntaxError(IParserSyntaxError error)
 {
     base.AddImpl(error);
 }
Exemple #3
0
 /// <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;
 }