in java/com/google/gerrit/plugins/checks/CheckerQuery.java [140:163]
private static void checkOperators(Tree node) throws ConfigInvalidException {
switch (node.getType()) {
case AND:
case OR:
case NOT:
for (int i = 0; i < node.getChildCount(); i++) {
checkOperators(node.getChild(i));
}
break;
case FIELD_NAME:
if (!ALLOWED_OPERATORS.contains(node.getText())) {
throw new ConfigInvalidException("Unsupported operator: " + node);
}
break;
case DEFAULT_FIELD:
throw new ConfigInvalidException(
"Specific search operator required: " + getOnlyChild(node));
default:
throw new ConfigInvalidException("Unsupported query: " + node);
}
}