public void skipUntil ( final TokenType ... tokenTypes ) { Set < TokenType > tokenTypeSet = Sets . newHashSet ( tokenTypes ) ; tokenTypeSet . add ( Assist . END ) ; while ( ! tokenTypeSet . contains ( lexer . getCurrentToken ( ) . getType ( ) ) ) { lexer . nextToken ( ) ; } }
Skip until one of input tokens .