negatedCondition method

Condition negatedCondition ({bool needsParens: false })

Search for conditions such as:

not(@a = 0)

Implementation

Condition negatedCondition({bool needsParens = false}) {
  if (parserInput.$str('not') != null) {
    final Condition result = parenthesisCondition(needsParens: needsParens);
    if (result != null) result.negate = !result.negate;
    return result;
  }
  return null;

// 3.5.3 20180708
//  negatedCondition: function (needsParens) {
//      if (parserInput.$str('not')) {
//          var result = this.parenthesisCondition(needsParens);
//          if (result) {
//              result.negate = !result.negate;
//          }
//          return result;
//      }
//  },
}