property method

Property property ()

A Property accessor, such as $color, in

color: black;
background-color: $color

That results in:

background-color: black;

Implementation

Property property() {
  String name;
  final index = parserInput.i;

  if (parserInput.currentChar() == r'$' &&
      (name = parserInput.$re(_propertyRegExp, 1)) != null) {
    return Property(name, index, fileInfo);
  }
  return null;

//3.0.0 20160718
// property: function () {
//     var name, index = parserInput.i;
//
//     if (parserInput.currentChar() === '$' && (name = parserInput.$re(/^\$[\w-]+/))) {
//         return new(tree.Property)(name, index, fileInfo);
//     }
// },
}