validator/engine/parse-css.js
/**
 * Appends a function's contents to a tokenList, consuming from the
 * stream all those tokens that it adds to the tokenList, including
 * the function token and end grouping token.
 * @param {!parse_css.TokenStream} tokenStream
 * @param {!Array<!parse_css.Token>} tokenList output array for tokens.
 */
Appends a function's contents to a tokenList, consuming from the
stream all those tokens that it adds to the tokenList, including
the function token and end grouping token.
@param {!parse_css.TokenStream} tokenStream
@param {!Array} tokenList output array for tokens.
Appends a function ' s contents to a tokenList consuming from the stream all those tokens that it adds to the tokenList including the function token and end grouping token . @param { !parse_css . TokenStream } tokenStream @param { !Array } tokenList output array for tokens .
function consumeAFunction(tokenStream, tokenList) {
  goog.asserts.assert(
      tokenStream.current().tokenType === parse_css.TokenType.FUNCTION_TOKEN,
      'Internal Error: consumeAFunction precondition not met');
  tokenList.push(tokenStream.current());
  while (true) {
    tokenStream.consume();
    const current = tokenStream.current().tokenType;
    if (current === parse_css.TokenType.EOF_TOKEN ||
        current === parse_css.TokenType.CLOSE_PAREN) {
      tokenList.push(tokenStream.current());
      return;
    } else {
      consumeAComponentValue(tokenStream, tokenList);
    }
  }
}
function consumeAFunction ( tokenStream , tokenList ) { goog . asserts . assert ( tokenStream . current ( ) . tokenType === parse_css . TokenType . FUNCTION_TOKEN , 'Internal Error: consumeAFunction precondition not met' ) ; tokenList . push ( tokenStream . current ( ) ) ; while ( true ) { tokenStream . consume ( ) ; const current = tokenStream . current ( ) . tokenType ; if ( current === parse_css . TokenType . EOF_TOKEN || current === parse_css . TokenType . CLOSE_PAREN ) { tokenList . push ( tokenStream . current ( ) ) ; return ; } else { consumeAComponentValue ( tokenStream , tokenList ) ; } } }
Appends a function's contents to a tokenList, consuming from the
 stream all those tokens that it adds to the tokenList, including
 the function token and end grouping token.
Appends a function ' s contents to a tokenList consuming from the stream all those tokens that it adds to the tokenList including the function token and end grouping token .