Fix documentation of getHiddenTokensToRight in BufferedTokenStream
This commit is contained in:
parent
3cd5e746de
commit
cbac45e6ed
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue