code: function invalidParameter(ruleName, expr) {
    return createError(
        'Invalid parameter to rule ' + ruleName + ': ' + expr + ' has arity ' + expr.getArity() +
           ', but parameter expressions must have arity 1',
        expr.source);
  }
docs: Invalid parameter expression