private void reduce(CssTokenType type){
  StringBuilder sb=new StringBuilder();
  for (  Token<CssTokenType> t : pending) {
    sb.append(t.text);
  }
  FilePosition fp=FilePosition.span(pending.getFirst().pos,pending.getLast().pos);
  pending.clear();
  pending.add(Token.instance(sb.toString(),type,fp));
}

private void reduce ( CssTokenType type ) { StringBuilder sb = new StringBuilder ( ) ; for ( Token < CssTokenType > t : pending ) { sb . append ( t . text ) ; } FilePosition fp = FilePosition . span ( pending . getFirst ( ) . pos , pending . getLast ( ) . pos ) ; pending . clear ( ) ; pending . add ( Token . instance ( sb . toString ( ) , type , fp ) ) ; }
reduces the pending tokens to a single token with the given type . for example , if the pending list contains an identifier followed by an open parenthesis , then it can be reduced to a single function token . this is necessitated by css2 ' s odd lexical convention which classifies as single tokens things that most other languages treat as sequences of primitive tokens . < p > modifies the pending list in place .
