value method

Value value ()

A Value is a comma-delimited list of Expressions

font-family: Baskerville, Georgia, serif;

In a Rule, a Value represents everything after the :, and before the ;.

Implementation

Value value() {
  Expression e;
  final List<Expression> expressions = <Expression>[];
  final int index = parserInput.i;

  do {
    e = expression();
    if (e != null) {
      expressions.add(e);
      if (parserInput.$char(',') == null) break;
    }
  } while (e != null);

  return expressions.isNotEmpty ? Value(expressions, index: index) : null;

//3.0.0 20160718
// value: function () {
//     var e, expressions = [], index = parserInput.i;
//
//     do {
//         e = this.expression();
//         if (e) {
//             expressions.push(e);
//             if (! parserInput.$char(',')) { break; }
//         }
//     } while (e);
//
//     if (expressions.length > 0) {
//         return new(tree.Value)(expressions, index);
//     }
// },
}