variableCurly method

Variable variableCurly ()

A variable entity using the protective {}. Example:

@{var}

Implementation

Variable variableCurly() {
  String curly;
  final int index = parserInput.i;

  if (parserInput.currentChar() == '@' &&
      (curly = parserInput.$re(_variableCurlyRegExp, 1)) != null) {
    return Variable('@$curly', index, fileInfo);
  }
  return null;

//2.2.0
//  variableCurly: function () {
//      var curly, index = parserInput.i;
//
//      if (parserInput.currentChar() === '@' && (curly = parserInput.$re(/^@\{([\w-]+)\}/))) {
//          return new(tree.Variable)("@" + curly[1], index, fileInfo);
//      }
//  }
}