Merge pull request #1542 from akosthekiss/fix-doc-hidden-tokens-right

Fix documentation of getHiddenTokensToRight in BufferedTokenStream
This commit is contained in:
Terence Parr 2016-12-22 09:20:33 -08:00 committed by GitHub
commit 58600d29b8
4 changed files with 4 additions and 3 deletions

View File

@ -127,3 +127,4 @@ YYYY/MM/DD, github id, Full name, email
2016/12/01, samtatasurya, Samuel Tatasurya, xemradiant@gmail.com 2016/12/01, samtatasurya, Samuel Tatasurya, xemradiant@gmail.com
2016/12/03, redxdev, Samuel Bloomberg, sam@redxdev.com 2016/12/03, redxdev, Samuel Bloomberg, sam@redxdev.com
2016/12/11, Gaulouis, Gaulouis, gaulouis.com@gmail.com 2016/12/11, Gaulouis, Gaulouis, gaulouis.com@gmail.com
2016/12/22, akosthekiss, Akos Kiss, akiss@inf.u-szeged.hu

View File

@ -68,7 +68,7 @@ namespace antlr4 {
/// <summary> /// <summary>
/// Collect all hidden tokens (any off-default channel) to the right of /// 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 /// the current token up until we see a token on DEFAULT_TOKEN_CHANNEL
/// of EOF. /// or EOF.
/// </summary> /// </summary>
virtual std::vector<Token *> getHiddenTokensToRight(size_t tokenIndex); 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 /** 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 * the current token up until we see a token on DEFAULT_TOKEN_CHANNEL
* of EOF. * or EOF.
*/ */
public List<Token> getHiddenTokensToRight(int tokenIndex) { public List<Token> getHiddenTokensToRight(int tokenIndex) {
return getHiddenTokensToRight(tokenIndex, -1); 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 /** 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 * 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>? { public func getHiddenTokensToRight(_ tokenIndex: Int) throws -> Array<Token>? {
return try getHiddenTokensToRight(tokenIndex, -1) return try getHiddenTokensToRight(tokenIndex, -1)