@SuppressWarnings("unchecked") @Override protected void fillBuffer(){
  int oldP=p;
  int index=tokens.size();
  Token t=tokenSource.nextToken();
  while (t != null && t.getType() != CharStream.EOF) {
    int type=t.getType();
    if (type == InternalN4JSLexer.Solidus || type == InternalN4JSLexer.SolidusEqualsSign || type == InternalN4JSLexer.RightCurlyBracket) {
      t.setTokenIndex(index);
      tokens.add(t);
      index++;
      break;
    }
    boolean discard=false;
    if (channelOverrideMap != null) {
      Integer channelI=(Integer)channelOverrideMap.get(Integer.valueOf(type));
      if (channelI != null) {
        t.setChannel(channelI.intValue());
      }
    }
    if (discardSet != null && discardSet.contains(Integer.valueOf(type))) {
      discard=true;
    }
 else     if (discardOffChannelTokens && t.getChannel() != this.channel) {
      discard=true;
    }
    if (!discard) {
      t.setTokenIndex(index);
      tokens.add(t);
      index++;
    }
    t=tokenSource.nextToken();
  }
  p=oldP == -1 ? 0 : oldP;
  p=skipOffTokenChannels(p);
}

@ SuppressWarnings ( "unchecked" ) @ Override protected void fillBuffer ( ) { int oldP = p ; int index = tokens . size ( ) ; Token t = tokenSource . nextToken ( ) ; while ( t != null && t . getType ( ) != CharStream . EOF ) { int type = t . getType ( ) ; if ( type == InternalN4JSLexer . Solidus || type == InternalN4JSLexer . SolidusEqualsSign || type == InternalN4JSLexer . RightCurlyBracket ) { t . setTokenIndex ( index ) ; tokens . add ( t ) ; index ++ ; break ; } boolean discard = false ; if ( channelOverrideMap != null ) { Integer channelI = ( Integer ) channelOverrideMap . get ( Integer . valueOf ( type ) ) ; if ( channelI != null ) { t . setChannel ( channelI . intValue ( ) ) ; } } if ( discardSet != null && discardSet . contains ( Integer . valueOf ( type ) ) ) { discard = true ; } else if ( discardOffChannelTokens && t . getChannel ( ) != this . channel ) { discard = true ; } if ( ! discard ) { t . setTokenIndex ( index ) ; tokens . add ( t ) ; index ++ ; } t = tokenSource . nextToken ( ) ; } p = oldP == - 1 ? 0 : oldP ; p = skipOffTokenChannels ( p ) ; }
fills the buffer but stops on a div or div - equals token .
