block method

List<Node> block ()

The block rule is used by ruleset and mixin.definition.

It's a wrapper around the primary rule, with added {}.

Implementation

List<Node> block() {
  List<Node> content;

  if (parserInput.$char('{') != null &&
      (content = primary()) != null &&
      parserInput.$char('}') != null) {
    return content;
  }
  return null;

//2.2.0
//  block: function () {
//      var content;
//      if (parserInput.$char('{') && (content = this.primary()) && parserInput.$char('}')) {
//          return content;
//      }
//  }
}