in client/src/lang/parser.ts [114:137]
private group(): CqlGroup {
this.consume(
TokenType.LEFT_BRACKET,
"Groups should start with a left bracket"
);
if (this.isAtEnd() || this.peek().tokenType === TokenType.RIGHT_BRACKET) {
throw this.error(
"Groups can't be empty. Put a search term between the brackets!"
);
}
this.guardAgainstCqlField(
"within a group. Try putting this search term outside of the brackets!"
);
const binary = this.binary(true);
this.consume(
TokenType.RIGHT_BRACKET,
"Groups must end with a right bracket."
);
return new CqlGroup(binary);
}