in src/mongo/grammar/mongoParser.ts [362:414]
public arguments(): ArgumentsContext {
const _localctx: ArgumentsContext = new ArgumentsContext(this._ctx, this.state);
this.enterRule(_localctx, 12, mongoParser.RULE_arguments);
let _la: number;
try {
this.enterOuterAlt(_localctx, 1);
{
this.state = 72;
_localctx._OPEN_PARENTHESIS = this.match(mongoParser.T__0);
this.state = 81;
this._errHandler.sync(this);
_la = this._input.LA(1);
if ((((_la) & ~0x1F) === 0 && ((1 << _la) & ((1 << mongoParser.T__3) | (1 << mongoParser.T__5) | (1 << mongoParser.RegexLiteral) | (1 << mongoParser.StringLiteral) | (1 << mongoParser.NullLiteral) | (1 << mongoParser.BooleanLiteral) | (1 << mongoParser.NumericLiteral))) !== 0)) {
{
this.state = 73;
this.argument();
this.state = 78;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === mongoParser.T__1) {
{
{
this.state = 74;
this.match(mongoParser.T__1);
this.state = 75;
this.argument();
}
}
this.state = 80;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
}
}
this.state = 83;
_localctx._CLOSED_PARENTHESIS = this.match(mongoParser.T__2);
}
}
catch (re) {
if (re instanceof RecognitionException) {
_localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
} else {
throw re;
}
}
finally {
this.exitRule();
}
return _localctx;
}