Fix documentation of getHiddenTokensToRight in BufferedTokenStream

This commit is contained in:
Akos Kiss 2016-12-22 11:24:26 +01:00
parent 3cd5e746de
commit cbac45e6ed
3 changed files with 3 additions and 3 deletions

View File

@ -68,7 +68,7 @@ namespace antlr4 {
/// <summary>
/// Collect all hidden tokens (any off-default channel) to the right of
/// the current token up until we see a token on DEFAULT_TOKEN_CHANNEL
/// of EOF.
/// or EOF.
/// </summary>
virtual std::vector<Token *> getHiddenTokensToRight(size_t tokenIndex);

View File

@ -372,7 +372,7 @@ public class BufferedTokenStream implements TokenStream {
/** Collect all hidden tokens (any off-default channel) to the right of
* the current token up until we see a token on DEFAULT_TOKEN_CHANNEL
* of EOF.
* or EOF.
*/
public List<Token> getHiddenTokensToRight(int tokenIndex) {
return getHiddenTokensToRight(tokenIndex, -1);

View File

@ -402,7 +402,7 @@ public class BufferedTokenStream: TokenStream {
/** Collect all hidden tokens (any off-default channel) to the right of
* the current token up until we see a token on DEFAULT_TOKEN_CHANNEL
* of EOF.
* or EOF.
*/
public func getHiddenTokensToRight(_ tokenIndex: Int) throws -> Array<Token>? {
return try getHiddenTokensToRight(tokenIndex, -1)