question: 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 ) ) ; }
target:  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.