1 |
|
2 |
|
3 |
|
4 |
|
5 | var antlr4 = require('antlr4/index');
|
6 | var SOQLListener = require('./SOQLListener').SOQLListener;
|
7 | var grammarFileName = "SOQL.g4";
|
8 |
|
9 | var serializedATN = ["\u0003\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964",
|
10 | "\u0003\u008f\u0284\u0004\u0002\t\u0002\u0004\u0003\t\u0003\u0004\u0004",
|
11 | "\t\u0004\u0004\u0005\t\u0005\u0004\u0006\t\u0006\u0004\u0007\t\u0007",
|
12 | "\u0004\b\t\b\u0004\t\t\t\u0004\n\t\n\u0004\u000b\t\u000b\u0004\f\t\f",
|
13 | "\u0004\r\t\r\u0004\u000e\t\u000e\u0004\u000f\t\u000f\u0004\u0010\t\u0010",
|
14 | "\u0004\u0011\t\u0011\u0004\u0012\t\u0012\u0004\u0013\t\u0013\u0004\u0014",
|
15 | "\t\u0014\u0004\u0015\t\u0015\u0004\u0016\t\u0016\u0004\u0017\t\u0017",
|
16 | "\u0004\u0018\t\u0018\u0004\u0019\t\u0019\u0004\u001a\t\u001a\u0004\u001b",
|
17 | "\t\u001b\u0004\u001c\t\u001c\u0004\u001d\t\u001d\u0004\u001e\t\u001e",
|
18 | "\u0004\u001f\t\u001f\u0004 \t \u0004!\t!\u0004\"\t\"\u0004#\t#\u0004",
|
19 | "$\t$\u0004%\t%\u0004&\t&\u0004\'\t\'\u0004(\t(\u0004)\t)\u0004*\t*\u0004",
|
20 | "+\t+\u0004,\t,\u0004-\t-\u0004.\t.\u0004/\t/\u00040\t0\u00041\t1\u0004",
|
21 | "2\t2\u00043\t3\u00044\t4\u00045\t5\u00046\t6\u00047\t7\u00048\t8\u0004",
|
22 | "9\t9\u0004:\t:\u0004;\t;\u0004<\t<\u0004=\t=\u0004>\t>\u0004?\t?\u0004",
|
23 | "@\t@\u0004A\tA\u0004B\tB\u0004C\tC\u0004D\tD\u0004E\tE\u0004F\tF\u0004",
|
24 | "G\tG\u0004H\tH\u0004I\tI\u0004J\tJ\u0004K\tK\u0004L\tL\u0004M\tM\u0004",
|
25 | "N\tN\u0004O\tO\u0004P\tP\u0004Q\tQ\u0004R\tR\u0004S\tS\u0004T\tT\u0004",
|
26 | "U\tU\u0004V\tV\u0004W\tW\u0004X\tX\u0003\u0002\u0003\u0002\u0003\u0003",
|
27 | "\u0003\u0003\u0005\u0003\u00b5\n\u0003\u0003\u0004\u0003\u0004\u0003",
|
28 | "\u0004\u0003\u0004\u0003\u0004\u0005\u0004\u00bc\n\u0004\u0003\u0005",
|
29 | "\u0003\u0005\u0003\u0006\u0003\u0006\u0003\u0007\u0003\u0007\u0003\b",
|
30 | "\u0003\b\u0003\t\u0003\t\u0003\n\u0003\n\u0003\n\u0003\n\u0003\n\u0005",
|
31 | "\n\u00cd\n\n\u0003\u000b\u0005\u000b\u00d0\n\u000b\u0003\u000b\u0003",
|
32 | "\u000b\u0003\f\u0003\f\u0003\f\u0003\f\u0003\f\u0003\f\u0003\f\u0003",
|
33 | "\f\u0003\f\u0005\f\u00dd\n\f\u0003\r\u0003\r\u0003\u000e\u0003\u000e",
|
34 | "\u0003\u000f\u0003\u000f\u0003\u000f\u0003\u000f\u0003\u0010\u0003\u0010",
|
35 | "\u0003\u0011\u0003\u0011\u0003\u0012\u0003\u0012\u0003\u0013\u0003\u0013",
|
36 | "\u0003\u0014\u0003\u0014\u0003\u0015\u0003\u0015\u0003\u0016\u0003\u0016",
|
37 | "\u0003\u0017\u0003\u0017\u0003\u0017\u0003\u0017\u0005\u0017\u00f9\n",
|
38 | "\u0017\u0003\u0018\u0003\u0018\u0003\u0019\u0003\u0019\u0003\u001a\u0003",
|
39 | "\u001a\u0003\u001b\u0003\u001b\u0003\u001c\u0003\u001c\u0003\u001c\u0005",
|
40 | "\u001c\u0106\n\u001c\u0003\u001c\u0005\u001c\u0109\n\u001c\u0003\u001c",
|
41 | "\u0005\u001c\u010c\n\u001c\u0003\u001c\u0003\u001c\u0005\u001c\u0110",
|
42 | "\n\u001c\u0005\u001c\u0112\n\u001c\u0003\u001c\u0005\u001c\u0115\n\u001c",
|
43 | "\u0003\u001c\u0005\u001c\u0118\n\u001c\u0003\u001c\u0005\u001c\u011b",
|
44 | "\n\u001c\u0003\u001c\u0005\u001c\u011e\n\u001c\u0003\u001c\u0005\u001c",
|
45 | "\u0121\n\u001c\u0003\u001c\u0003\u001c\u0003\u001d\u0003\u001d\u0003",
|
46 | "\u001d\u0003\u001d\u0007\u001d\u0129\n\u001d\f\u001d\u000e\u001d\u012c",
|
47 | "\u000b\u001d\u0003\u001e\u0003\u001e\u0003\u001e\u0003\u001e\u0007\u001e",
|
48 | "\u0132\n\u001e\f\u001e\u000e\u001e\u0135\u000b\u001e\u0003\u001f\u0003",
|
49 | "\u001f\u0003\u001f\u0003\u001f\u0003 \u0003 \u0003 \u0003!\u0003!\u0003",
|
50 | "!\u0003!\u0003!\u0005!\u0143\n!\u0003\"\u0003\"\u0003\"\u0003#\u0003",
|
51 | "#\u0003#\u0003#\u0003$\u0003$\u0003$\u0003%\u0003%\u0003%\u0003&\u0003",
|
52 | "&\u0003&\u0003&\u0005&\u0156\n&\u0003&\u0003&\u0005&\u015a\n&\u0003",
|
53 | "\'\u0003\'\u0003\'\u0003\'\u0005\'\u0160\n\'\u0003(\u0003(\u0003(\u0003",
|
54 | "(\u0005(\u0166\n(\u0003(\u0005(\u0169\n(\u0003(\u0005(\u016c\n(\u0003",
|
55 | "(\u0005(\u016f\n(\u0003(\u0005(\u0172\n(\u0003(\u0005(\u0175\n(\u0003",
|
56 | "(\u0005(\u0178\n(\u0003(\u0005(\u017b\n(\u0003(\u0003(\u0003)\u0003",
|
57 | ")\u0003)\u0003)\u0007)\u0183\n)\f)\u000e)\u0186\u000b)\u0003*\u0003",
|
58 | "*\u0003*\u0003*\u0005*\u018c\n*\u0003+\u0003+\u0005+\u0190\n+\u0003",
|
59 | ",\u0003,\u0005,\u0194\n,\u0003-\u0003-\u0005-\u0198\n-\u0003.\u0005",
|
60 | ".\u019b\n.\u0003.\u0003.\u0003/\u0003/\u0003/\u0005/\u01a2\n/\u0003",
|
61 | "/\u0003/\u00030\u00030\u00030\u00070\u01a9\n0\f0\u000e0\u01ac\u000b",
|
62 | "0\u00031\u00031\u00031\u00051\u01b1\n1\u00032\u00032\u00032\u00032\u0005",
|
63 | "2\u01b7\n2\u00032\u00032\u00033\u00063\u01bc\n3\r3\u000e3\u01bd\u0003",
|
64 | "4\u00034\u00034\u00034\u00035\u00035\u00035\u00036\u00036\u00036\u0003",
|
65 | "7\u00037\u00037\u00077\u01cd\n7\f7\u000e7\u01d0\u000b7\u00038\u0005",
|
66 | "8\u01d3\n8\u00038\u00038\u00058\u01d7\n8\u00039\u00039\u00039\u0006",
|
67 | "9\u01dc\n9\r9\u000e9\u01dd\u0003:\u0003:\u0003:\u0003:\u0003:\u0003",
|
68 | ":\u0003:\u0003:\u0003:\u0003:\u0005:\u01ea\n:\u0003;\u0003;\u0003;\u0003",
|
69 | ";\u0003;\u0005;\u01f1\n;\u0003<\u0003<\u0003<\u0007<\u01f6\n<\f<\u000e",
|
70 | "<\u01f9\u000b<\u0003=\u0005=\u01fc\n=\u0003=\u0003=\u0005=\u0200\n=",
|
71 | "\u0003>\u0003>\u0003>\u0003>\u0003?\u0003?\u0003?\u0005?\u0209\n?\u0003",
|
72 | "@\u0003@\u0003@\u0003@\u0003A\u0003A\u0003A\u0003A\u0005A\u0213\nA\u0003",
|
73 | "B\u0003B\u0003B\u0003B\u0003C\u0003C\u0005C\u021b\nC\u0003D\u0003D\u0003",
|
74 | "D\u0003D\u0003E\u0003E\u0003E\u0007E\u0224\nE\fE\u000eE\u0227\u000b",
|
75 | "E\u0003F\u0003F\u0003F\u0005F\u022c\nF\u0003G\u0003G\u0003H\u0003H\u0003",
|
76 | "H\u0003H\u0003I\u0003I\u0003I\u0007I\u0237\nI\fI\u000eI\u023a\u000b",
|
77 | "I\u0003J\u0003J\u0003J\u0003J\u0003K\u0003K\u0003K\u0003K\u0003K\u0007",
|
78 | "K\u0245\nK\fK\u000eK\u0248\u000bK\u0003K\u0003K\u0005K\u024c\nK\u0003",
|
79 | "L\u0003L\u0003M\u0003M\u0003N\u0003N\u0003N\u0003N\u0003N\u0003O\u0003",
|
80 | "O\u0003O\u0003O\u0003O\u0003P\u0003P\u0003P\u0007P\u025f\nP\fP\u000e",
|
81 | "P\u0262\u000bP\u0003Q\u0003Q\u0005Q\u0266\nQ\u0003R\u0003R\u0003R\u0007",
|
82 | "R\u026b\nR\fR\u000eR\u026e\u000bR\u0003S\u0003S\u0005S\u0272\nS\u0003",
|
83 | "S\u0005S\u0275\nS\u0003T\u0003T\u0003U\u0003U\u0003U\u0003V\u0003V\u0005",
|
84 | "V\u027e\nV\u0003W\u0003W\u0003X\u0003X\u0003X\u0002\u0002Y\u0002\u0004",
|
85 | "\u0006\b\n\f\u000e\u0010\u0012\u0014\u0016\u0018\u001a\u001c\u001e ",
|
86 | "\"$&(*,.02468:<>@BDFHJLNPRTVXZ\\^`bdfhjlnprtvxz|~\u0080\u0082\u0084",
|
87 | "\u0086\u0088\u008a\u008c\u008e\u0090\u0092\u0094\u0096\u0098\u009a\u009c",
|
88 | "\u009e\u00a0\u00a2\u00a4\u00a6\u00a8\u00aa\u00ac\u00ae\u0002\u0012\u0003",
|
89 | "\u0002$4\u0003\u0002Oe\u0003\u0002fz\u0004\u0002\u008d\u008d\u008f\u008f",
|
90 | "\u0004\u0002\u000e\u000e\u001e\u001e\u0003\u00025A\u0003\u0002BG\u0003",
|
91 | "\u0002HI\u0003\u0002JN\u0004\u0002\u0006\u0006\u001b\u001b\u0003\u0002",
|
92 | "\u0004\u0005\u0003\u0002$\'\u0004\u0002\b\b\u000b\u000b\u0004\u0002",
|
93 | "\u000f\u000f\u0015\u0015\u0005\u0002##--22\u0004\u0002//33\u0002\u0288",
|
94 | "\u0002\u00b0\u0003\u0002\u0002\u0002\u0004\u00b4\u0003\u0002\u0002\u0002",
|
95 | "\u0006\u00bb\u0003\u0002\u0002\u0002\b\u00bd\u0003\u0002\u0002\u0002",
|
96 | "\n\u00bf\u0003\u0002\u0002\u0002\f\u00c1\u0003\u0002\u0002\u0002\u000e",
|
97 | "\u00c3\u0003\u0002\u0002\u0002\u0010\u00c5\u0003\u0002\u0002\u0002\u0012",
|
98 | "\u00cc\u0003\u0002\u0002\u0002\u0014\u00cf\u0003\u0002\u0002\u0002\u0016",
|
99 | "\u00dc\u0003\u0002\u0002\u0002\u0018\u00de\u0003\u0002\u0002\u0002\u001a",
|
100 | "\u00e0\u0003\u0002\u0002\u0002\u001c\u00e2\u0003\u0002\u0002\u0002\u001e",
|
101 | "\u00e6\u0003\u0002\u0002\u0002 \u00e8\u0003\u0002\u0002\u0002\"\u00ea",
|
102 | "\u0003\u0002\u0002\u0002$\u00ec\u0003\u0002\u0002\u0002&\u00ee\u0003",
|
103 | "\u0002\u0002\u0002(\u00f0\u0003\u0002\u0002\u0002*\u00f2\u0003\u0002",
|
104 | "\u0002\u0002,\u00f8\u0003\u0002\u0002\u0002.\u00fa\u0003\u0002\u0002",
|
105 | "\u00020\u00fc\u0003\u0002\u0002\u00022\u00fe\u0003\u0002\u0002\u0002",
|
106 | "4\u0100\u0003\u0002\u0002\u00026\u0102\u0003\u0002\u0002\u00028\u0124",
|
107 | "\u0003\u0002\u0002\u0002:\u012d\u0003\u0002\u0002\u0002<\u0136\u0003",
|
108 | "\u0002\u0002\u0002>\u013a\u0003\u0002\u0002\u0002@\u013d\u0003\u0002",
|
109 | "\u0002\u0002B\u0144\u0003\u0002\u0002\u0002D\u0147\u0003\u0002\u0002",
|
110 | "\u0002F\u014b\u0003\u0002\u0002\u0002H\u014e\u0003\u0002\u0002\u0002",
|
111 | "J\u0151\u0003\u0002\u0002\u0002L\u015b\u0003\u0002\u0002\u0002N\u0161",
|
112 | "\u0003\u0002\u0002\u0002P\u017e\u0003\u0002\u0002\u0002R\u018b\u0003",
|
113 | "\u0002\u0002\u0002T\u018f\u0003\u0002\u0002\u0002V\u0191\u0003\u0002",
|
114 | "\u0002\u0002X\u0195\u0003\u0002\u0002\u0002Z\u019a\u0003\u0002\u0002",
|
115 | "\u0002\\\u019e\u0003\u0002\u0002\u0002^\u01a5\u0003\u0002\u0002\u0002",
|
116 | "`\u01b0\u0003\u0002\u0002\u0002b\u01b2\u0003\u0002\u0002\u0002d\u01bb",
|
117 | "\u0003\u0002\u0002\u0002f\u01bf\u0003\u0002\u0002\u0002h\u01c3\u0003",
|
118 | "\u0002\u0002\u0002j\u01c6\u0003\u0002\u0002\u0002l\u01c9\u0003\u0002",
|
119 | "\u0002\u0002n\u01d2\u0003\u0002\u0002\u0002p\u01db\u0003\u0002\u0002",
|
120 | "\u0002r\u01e9\u0003\u0002\u0002\u0002t\u01f0\u0003\u0002\u0002\u0002",
|
121 | "v\u01f2\u0003\u0002\u0002\u0002x\u01fb\u0003\u0002\u0002\u0002z\u0201",
|
122 | "\u0003\u0002\u0002\u0002|\u0208\u0003\u0002\u0002\u0002~\u020a\u0003",
|
123 | "\u0002\u0002\u0002\u0080\u020e\u0003\u0002\u0002\u0002\u0082\u0214\u0003",
|
124 | "\u0002\u0002\u0002\u0084\u021a\u0003\u0002\u0002\u0002\u0086\u021c\u0003",
|
125 | "\u0002\u0002\u0002\u0088\u0220\u0003\u0002\u0002\u0002\u008a\u0228\u0003",
|
126 | "\u0002\u0002\u0002\u008c\u022d\u0003\u0002\u0002\u0002\u008e\u022f\u0003",
|
127 | "\u0002\u0002\u0002\u0090\u0233\u0003\u0002\u0002\u0002\u0092\u023b\u0003",
|
128 | "\u0002\u0002\u0002\u0094\u024b\u0003\u0002\u0002\u0002\u0096\u024d\u0003",
|
129 | "\u0002\u0002\u0002\u0098\u024f\u0003\u0002\u0002\u0002\u009a\u0251\u0003",
|
130 | "\u0002\u0002\u0002\u009c\u0256\u0003\u0002\u0002\u0002\u009e\u025b\u0003",
|
131 | "\u0002\u0002\u0002\u00a0\u0265\u0003\u0002\u0002\u0002\u00a2\u0267\u0003",
|
132 | "\u0002\u0002\u0002\u00a4\u026f\u0003\u0002\u0002\u0002\u00a6\u0276\u0003",
|
133 | "\u0002\u0002\u0002\u00a8\u0278\u0003\u0002\u0002\u0002\u00aa\u027d\u0003",
|
134 | "\u0002\u0002\u0002\u00ac\u027f\u0003\u0002\u0002\u0002\u00ae\u0281\u0003",
|
135 | "\u0002\u0002\u0002\u00b0\u00b1\t\u0002\u0002\u0002\u00b1\u0003\u0003",
|
136 | "\u0002\u0002\u0002\u00b2\u00b5\u0005\u0002\u0002\u0002\u00b3\u00b5\u0007",
|
137 | "\u0011\u0002\u0002\u00b4\u00b2\u0003\u0002\u0002\u0002\u00b4\u00b3\u0003",
|
138 | "\u0002\u0002\u0002\u00b5\u0005\u0003\u0002\u0002\u0002\u00b6\u00bc\u0007",
|
139 | "\u008a\u0002\u0002\u00b7\u00bc\u0005\u0004\u0003\u0002\u00b8\u00bc\u0005",
|
140 | "\u0018\r\u0002\u00b9\u00bc\u0005\u001a\u000e\u0002\u00ba\u00bc\u0005",
|
141 | ",\u0017\u0002\u00bb\u00b6\u0003\u0002\u0002\u0002\u00bb\u00b7\u0003",
|
142 | "\u0002\u0002\u0002\u00bb\u00b8\u0003\u0002\u0002\u0002\u00bb\u00b9\u0003",
|
143 | "\u0002\u0002\u0002\u00bb\u00ba\u0003\u0002\u0002\u0002\u00bc\u0007\u0003",
|
144 | "\u0002\u0002\u0002\u00bd\u00be\u0005\u0006\u0004\u0002\u00be\t\u0003",
|
145 | "\u0002\u0002\u0002\u00bf\u00c0\u0005\u0006\u0004\u0002\u00c0\u000b\u0003",
|
146 | "\u0002\u0002\u0002\u00c1\u00c2\u0005\u0006\u0004\u0002\u00c2\r\u0003",
|
147 | "\u0002\u0002\u0002\u00c3\u00c4\u0005\u0006\u0004\u0002\u00c4\u000f\u0003",
|
148 | "\u0002\u0002\u0002\u00c5\u00c6\u0005\u0006\u0004\u0002\u00c6\u0011\u0003",
|
149 | "\u0002\u0002\u0002\u00c7\u00cd\u0007\u008a\u0002\u0002\u00c8\u00cd\u0005",
|
150 | "\u0002\u0002\u0002\u00c9\u00cd\u0005\u0018\r\u0002\u00ca\u00cd\u0005",
|
151 | "\u001a\u000e\u0002\u00cb\u00cd\u0005,\u0017\u0002\u00cc\u00c7\u0003",
|
152 | "\u0002\u0002\u0002\u00cc\u00c8\u0003\u0002\u0002\u0002\u00cc\u00c9\u0003",
|
153 | "\u0002\u0002\u0002\u00cc\u00ca\u0003\u0002\u0002\u0002\u00cc\u00cb\u0003",
|
154 | "\u0002\u0002\u0002\u00cd\u0013\u0003\u0002\u0002\u0002\u00ce\u00d0\u0007",
|
155 | "\u0007\u0002\u0002\u00cf\u00ce\u0003\u0002\u0002\u0002\u00cf\u00d0\u0003",
|
156 | "\u0002\u0002\u0002\u00d0\u00d1\u0003\u0002\u0002\u0002\u00d1\u00d2\u0005",
|
157 | "\u0012\n\u0002\u00d2\u0015\u0003\u0002\u0002\u0002\u00d3\u00dd\u0005",
|
158 | "\u0018\r\u0002\u00d4\u00dd\u0005\u001c\u000f\u0002\u00d5\u00dd\u0005",
|
159 | "\u001e\u0010\u0002\u00d6\u00dd\u0005 \u0011\u0002\u00d7\u00dd\u0005",
|
160 | "\"\u0012\u0002\u00d8\u00dd\u0005$\u0013\u0002\u00d9\u00dd\u0005&\u0014",
|
161 | "\u0002\u00da\u00dd\u0005(\u0015\u0002\u00db\u00dd\u0005*\u0016\u0002",
|
162 | "\u00dc\u00d3\u0003\u0002\u0002\u0002\u00dc\u00d4\u0003\u0002\u0002\u0002",
|
163 | "\u00dc\u00d5\u0003\u0002\u0002\u0002\u00dc\u00d6\u0003\u0002\u0002\u0002",
|
164 | "\u00dc\u00d7\u0003\u0002\u0002\u0002\u00dc\u00d8\u0003\u0002\u0002\u0002",
|
165 | "\u00dc\u00d9\u0003\u0002\u0002\u0002\u00dc\u00da\u0003\u0002\u0002\u0002",
|
166 | "\u00dc\u00db\u0003\u0002\u0002\u0002\u00dd\u0017\u0003\u0002\u0002\u0002",
|
167 | "\u00de\u00df\t\u0003\u0002\u0002\u00df\u0019\u0003\u0002\u0002\u0002",
|
168 | "\u00e0\u00e1\t\u0004\u0002\u0002\u00e1\u001b\u0003\u0002\u0002\u0002",
|
169 | "\u00e2\u00e3\u0005\u001a\u000e\u0002\u00e3\u00e4\u0007\u0082\u0002\u0002",
|
170 | "\u00e4\u00e5\u0007\u008d\u0002\u0002\u00e5\u001d\u0003\u0002\u0002\u0002",
|
171 | "\u00e6\u00e7\u0007\u008c\u0002\u0002\u00e7\u001f\u0003\u0002\u0002\u0002",
|
172 | "\u00e8\u00e9\u0007\u008b\u0002\u0002\u00e9!\u0003\u0002\u0002\u0002",
|
173 | "\u00ea\u00eb\t\u0005\u0002\u0002\u00eb#\u0003\u0002\u0002\u0002\u00ec",
|
174 | "\u00ed\u0007\u008e\u0002\u0002\u00ed%\u0003\u0002\u0002\u0002\u00ee",
|
175 | "\u00ef\u0007\u0004\u0002\u0002\u00ef\'\u0003\u0002\u0002\u0002\u00f0",
|
176 | "\u00f1\t\u0006\u0002\u0002\u00f1)\u0003\u0002\u0002\u0002\u00f2\u00f3",
|
177 | "\u0007\u0019\u0002\u0002\u00f3+\u0003\u0002\u0002\u0002\u00f4\u00f9",
|
178 | "\u0005.\u0018\u0002\u00f5\u00f9\u00050\u0019\u0002\u00f6\u00f9\u0005",
|
179 | "2\u001a\u0002\u00f7\u00f9\u00054\u001b\u0002\u00f8\u00f4\u0003\u0002",
|
180 | "\u0002\u0002\u00f8\u00f5\u0003\u0002\u0002\u0002\u00f8\u00f6\u0003\u0002",
|
181 | "\u0002\u0002\u00f8\u00f7\u0003\u0002\u0002\u0002\u00f9-\u0003\u0002",
|
182 | "\u0002\u0002\u00fa\u00fb\t\u0007\u0002\u0002\u00fb/\u0003\u0002\u0002",
|
183 | "\u0002\u00fc\u00fd\t\b\u0002\u0002\u00fd1\u0003\u0002\u0002\u0002\u00fe",
|
184 | "\u00ff\t\t\u0002\u0002\u00ff3\u0003\u0002\u0002\u0002\u0100\u0101\t",
|
185 | "\n\u0002\u0002\u01015\u0003\u0002\u0002\u0002\u0102\u0103\u00058\u001d",
|
186 | "\u0002\u0103\u0105\u0005:\u001e\u0002\u0104\u0106\u0005<\u001f\u0002",
|
187 | "\u0105\u0104\u0003\u0002\u0002\u0002\u0105\u0106\u0003\u0002\u0002\u0002",
|
188 | "\u0106\u0108\u0003\u0002\u0002\u0002\u0107\u0109\u0005> \u0002\u0108",
|
189 | "\u0107\u0003\u0002\u0002\u0002\u0108\u0109\u0003\u0002\u0002\u0002\u0109",
|
190 | "\u010b\u0003\u0002\u0002\u0002\u010a\u010c\u0005\u008aF\u0002\u010b",
|
191 | "\u010a\u0003\u0002\u0002\u0002\u010b\u010c\u0003\u0002\u0002\u0002\u010c",
|
192 | "\u0111\u0003\u0002\u0002\u0002\u010d\u010f\u0005@!\u0002\u010e\u0110",
|
193 | "\u0005B\"\u0002\u010f\u010e\u0003\u0002\u0002\u0002\u010f\u0110\u0003",
|
194 | "\u0002\u0002\u0002\u0110\u0112\u0003\u0002\u0002\u0002\u0111\u010d\u0003",
|
195 | "\u0002\u0002\u0002\u0111\u0112\u0003\u0002\u0002\u0002\u0112\u0114\u0003",
|
196 | "\u0002\u0002\u0002\u0113\u0115\u0005D#\u0002\u0114\u0113\u0003\u0002",
|
197 | "\u0002\u0002\u0114\u0115\u0003\u0002\u0002\u0002\u0115\u0117\u0003\u0002",
|
198 | "\u0002\u0002\u0116\u0118\u0005F$\u0002\u0117\u0116\u0003\u0002\u0002",
|
199 | "\u0002\u0117\u0118\u0003\u0002\u0002\u0002\u0118\u011a\u0003\u0002\u0002",
|
200 | "\u0002\u0119\u011b\u0005H%\u0002\u011a\u0119\u0003\u0002\u0002\u0002",
|
201 | "\u011a\u011b\u0003\u0002\u0002\u0002\u011b\u011d\u0003\u0002\u0002\u0002",
|
202 | "\u011c\u011e\u0005J&\u0002\u011d\u011c\u0003\u0002\u0002\u0002\u011d",
|
203 | "\u011e\u0003\u0002\u0002\u0002\u011e\u0120\u0003\u0002\u0002\u0002\u011f",
|
204 | "\u0121\u0005L\'\u0002\u0120\u011f\u0003\u0002\u0002\u0002\u0120\u0121",
|
205 | "\u0003\u0002\u0002\u0002\u0121\u0122\u0003\u0002\u0002\u0002\u0122\u0123",
|
206 | "\u0007\u0002\u0002\u0003\u01237\u0003\u0002\u0002\u0002\u0124\u0125",
|
207 | "\u0007\u001d\u0002\u0002\u0125\u012a\u0005R*\u0002\u0126\u0127\u0007",
|
208 | "\u0084\u0002\u0002\u0127\u0129\u0005R*\u0002\u0128\u0126\u0003\u0002",
|
209 | "\u0002\u0002\u0129\u012c\u0003\u0002\u0002\u0002\u012a\u0128\u0003\u0002",
|
210 | "\u0002\u0002\u012a\u012b\u0003\u0002\u0002\u0002\u012b9\u0003\u0002",
|
211 | "\u0002\u0002\u012c\u012a\u0003\u0002\u0002\u0002\u012d\u012e\u0007\u0010",
|
212 | "\u0002\u0002\u012e\u0133\u0005n8\u0002\u012f\u0130\u0007\u0084\u0002",
|
213 | "\u0002\u0130\u0132\u0005n8\u0002\u0131\u012f\u0003\u0002\u0002\u0002",
|
214 | "\u0132\u0135\u0003\u0002\u0002\u0002\u0133\u0131\u0003\u0002\u0002\u0002",
|
215 | "\u0133\u0134\u0003\u0002\u0002\u0002\u0134;\u0003\u0002\u0002\u0002",
|
216 | "\u0135\u0133\u0003\u0002\u0002\u0002\u0136\u0137\u0007\u001f\u0002\u0002",
|
217 | "\u0137\u0138\u0007.\u0002\u0002\u0138\u0139\u0005\f\u0007\u0002\u0139",
|
218 | "=\u0003\u0002\u0002\u0002\u013a\u013b\u0007 \u0002\u0002\u013b\u013c",
|
219 | "\u0005v<\u0002\u013c?\u0003\u0002\u0002\u0002\u013d\u013e\u0007\u0011",
|
220 | "\u0002\u0002\u013e\u0142\u0007\t\u0002\u0002\u013f\u0143\u0005\u009a",
|
221 | "N\u0002\u0140\u0143\u0005\u009cO\u0002\u0141\u0143\u0005\u0098M\u0002",
|
222 | "\u0142\u013f\u0003\u0002\u0002\u0002\u0142\u0140\u0003\u0002\u0002\u0002",
|
223 | "\u0142\u0141\u0003\u0002\u0002\u0002\u0143A\u0003\u0002\u0002\u0002",
|
224 | "\u0144\u0145\u0007\u0012\u0002\u0002\u0145\u0146\u0005v<\u0002\u0146",
|
225 | "C\u0003\u0002\u0002\u0002\u0147\u0148\u0007,\u0002\u0002\u0148\u0149",
|
226 | "\u0007\t\u0002\u0002\u0149\u014a\u0005\u00a2R\u0002\u014aE\u0003\u0002",
|
227 | "\u0002\u0002\u014b\u014c\u0007\u0017\u0002\u0002\u014c\u014d\u0007\u008d",
|
228 | "\u0002\u0002\u014dG\u0003\u0002\u0002\u0002\u014e\u014f\u0007+\u0002",
|
229 | "\u0002\u014f\u0150\u0007\u008d\u0002\u0002\u0150I\u0003\u0002\u0002",
|
230 | "\u0002\u0151\u0152\u0007\"\u0002\u0002\u0152\u0155\u0005\u00acW\u0002",
|
231 | "\u0153\u0154\u0007\u0084\u0002\u0002\u0154\u0156\u0005\u00acW\u0002",
|
232 | "\u0155\u0153\u0003\u0002\u0002\u0002\u0155\u0156\u0003\u0002\u0002\u0002",
|
233 | "\u0156\u0159\u0003\u0002\u0002\u0002\u0157\u0158\u0007\u0084\u0002\u0002",
|
234 | "\u0158\u015a\u0005\u00acW\u0002\u0159\u0157\u0003\u0002\u0002\u0002",
|
235 | "\u0159\u015a\u0003\u0002\u0002\u0002\u015aK\u0003\u0002\u0002\u0002",
|
236 | "\u015b\u015c\u0007#\u0002\u0002\u015c\u015f\u0005\u00aeX\u0002\u015d",
|
237 | "\u015e\u0007\u0084\u0002\u0002\u015e\u0160\u0005\u00aeX\u0002\u015f",
|
238 | "\u015d\u0003\u0002\u0002\u0002\u015f\u0160\u0003\u0002\u0002\u0002\u0160",
|
239 | "M\u0003\u0002\u0002\u0002\u0161\u0162\u0007\u0087\u0002\u0002\u0162",
|
240 | "\u0163\u0005P)\u0002\u0163\u0165\u0005:\u001e\u0002\u0164\u0166\u0005",
|
241 | "<\u001f\u0002\u0165\u0164\u0003\u0002\u0002\u0002\u0165\u0166\u0003",
|
242 | "\u0002\u0002\u0002\u0166\u0168\u0003\u0002\u0002\u0002\u0167\u0169\u0005",
|
243 | "> \u0002\u0168\u0167\u0003\u0002\u0002\u0002\u0168\u0169\u0003\u0002",
|
244 | "\u0002\u0002\u0169\u016b\u0003\u0002\u0002\u0002\u016a\u016c\u0005\u008a",
|
245 | "F\u0002\u016b\u016a\u0003\u0002\u0002\u0002\u016b\u016c\u0003\u0002",
|
246 | "\u0002\u0002\u016c\u016e\u0003\u0002\u0002\u0002\u016d\u016f\u0005D",
|
247 | "#\u0002\u016e\u016d\u0003\u0002\u0002\u0002\u016e\u016f\u0003\u0002",
|
248 | "\u0002\u0002\u016f\u0171\u0003\u0002\u0002\u0002\u0170\u0172\u0005F",
|
249 | "$\u0002\u0171\u0170\u0003\u0002\u0002\u0002\u0171\u0172\u0003\u0002",
|
250 | "\u0002\u0002\u0172\u0174\u0003\u0002\u0002\u0002\u0173\u0175\u0005H",
|
251 | "%\u0002\u0174\u0173\u0003\u0002\u0002\u0002\u0174\u0175\u0003\u0002",
|
252 | "\u0002\u0002\u0175\u0177\u0003\u0002\u0002\u0002\u0176\u0178\u0005J",
|
253 | "&\u0002\u0177\u0176\u0003\u0002\u0002\u0002\u0177\u0178\u0003\u0002",
|
254 | "\u0002\u0002\u0178\u017a\u0003\u0002\u0002\u0002\u0179\u017b\u0005L",
|
255 | "\'\u0002\u017a\u0179\u0003\u0002\u0002\u0002\u017a\u017b\u0003\u0002",
|
256 | "\u0002\u0002\u017b\u017c\u0003\u0002\u0002\u0002\u017c\u017d\u0007\u0086",
|
257 | "\u0002\u0002\u017dO\u0003\u0002\u0002\u0002\u017e\u017f\u0007\u001d",
|
258 | "\u0002\u0002\u017f\u0184\u0005T+\u0002\u0180\u0181\u0007\u0084\u0002",
|
259 | "\u0002\u0181\u0183\u0005T+\u0002\u0182\u0180\u0003\u0002\u0002\u0002",
|
260 | "\u0183\u0186\u0003\u0002\u0002\u0002\u0184\u0182\u0003\u0002\u0002\u0002",
|
261 | "\u0184\u0185\u0003\u0002\u0002\u0002\u0185Q\u0003\u0002\u0002\u0002",
|
262 | "\u0186\u0184\u0003\u0002\u0002\u0002\u0187\u018c\u0005V,\u0002\u0188",
|
263 | "\u018c\u0005X-\u0002\u0189\u018c\u0005N(\u0002\u018a\u018c\u0005b2\u0002",
|
264 | "\u018b\u0187\u0003\u0002\u0002\u0002\u018b\u0188\u0003\u0002\u0002\u0002",
|
265 | "\u018b\u0189\u0003\u0002\u0002\u0002\u018b\u018a\u0003\u0002\u0002\u0002",
|
266 | "\u018cS\u0003\u0002\u0002\u0002\u018d\u0190\u0005V,\u0002\u018e\u0190",
|
267 | "\u0005X-\u0002\u018f\u018d\u0003\u0002\u0002\u0002\u018f\u018e\u0003",
|
268 | "\u0002\u0002\u0002\u0190U\u0003\u0002\u0002\u0002\u0191\u0193\u0005",
|
269 | "Z.\u0002\u0192\u0194\u0005\u0014\u000b\u0002\u0193\u0192\u0003\u0002",
|
270 | "\u0002\u0002\u0193\u0194\u0003\u0002\u0002\u0002\u0194W\u0003\u0002",
|
271 | "\u0002\u0002\u0195\u0197\u0005\\/\u0002\u0196\u0198\u0005\u0014\u000b",
|
272 | "\u0002\u0197\u0196\u0003\u0002\u0002\u0002\u0197\u0198\u0003\u0002\u0002",
|
273 | "\u0002\u0198Y\u0003\u0002\u0002\u0002\u0199\u019b\u0005p9\u0002\u019a",
|
274 | "\u0199\u0003\u0002\u0002\u0002\u019a\u019b\u0003\u0002\u0002\u0002\u019b",
|
275 | "\u019c\u0003\u0002\u0002\u0002\u019c\u019d\u0005\n\u0006\u0002\u019d",
|
276 | "[\u0003\u0002\u0002\u0002\u019e\u019f\u0005,\u0017\u0002\u019f\u01a1",
|
277 | "\u0007\u0087\u0002\u0002\u01a0\u01a2\u0005^0\u0002\u01a1\u01a0\u0003",
|
278 | "\u0002\u0002\u0002\u01a1\u01a2\u0003\u0002\u0002\u0002\u01a2\u01a3\u0003",
|
279 | "\u0002\u0002\u0002\u01a3\u01a4\u0007\u0086\u0002\u0002\u01a4]\u0003",
|
280 | "\u0002\u0002\u0002\u01a5\u01aa\u0005`1\u0002\u01a6\u01a7\u0007\u0084",
|
281 | "\u0002\u0002\u01a7\u01a9\u0005`1\u0002\u01a8\u01a6\u0003\u0002\u0002",
|
282 | "\u0002\u01a9\u01ac\u0003\u0002\u0002\u0002\u01aa\u01a8\u0003\u0002\u0002",
|
283 | "\u0002\u01aa\u01ab\u0003\u0002\u0002\u0002\u01ab_\u0003\u0002\u0002",
|
284 | "\u0002\u01ac\u01aa\u0003\u0002\u0002\u0002\u01ad\u01b1\u0005Z.\u0002",
|
285 | "\u01ae\u01b1\u0005\u0016\f\u0002\u01af\u01b1\u0005\\/\u0002\u01b0\u01ad",
|
286 | "\u0003\u0002\u0002\u0002\u01b0\u01ae\u0003\u0002\u0002\u0002\u01b0\u01af",
|
287 | "\u0003\u0002\u0002\u0002\u01b1a\u0003\u0002\u0002\u0002\u01b2\u01b3",
|
288 | "\u00071\u0002\u0002\u01b3\u01b4\u0005Z.\u0002\u01b4\u01b6\u0005d3\u0002",
|
289 | "\u01b5\u01b7\u0005j6\u0002\u01b6\u01b5\u0003\u0002\u0002\u0002\u01b6",
|
290 | "\u01b7\u0003\u0002\u0002\u0002\u01b7\u01b8\u0003\u0002\u0002\u0002\u01b8",
|
291 | "\u01b9\u0007*\u0002\u0002\u01b9c\u0003\u0002\u0002\u0002\u01ba\u01bc",
|
292 | "\u0005f4\u0002\u01bb\u01ba\u0003\u0002\u0002\u0002\u01bc\u01bd\u0003",
|
293 | "\u0002\u0002\u0002\u01bd\u01bb\u0003\u0002\u0002\u0002\u01bd\u01be\u0003",
|
294 | "\u0002\u0002\u0002\u01bee\u0003\u0002\u0002\u0002\u01bf\u01c0\u0007",
|
295 | "4\u0002\u0002\u01c0\u01c1\u0005\b\u0005\u0002\u01c1\u01c2\u0005h5\u0002",
|
296 | "\u01c2g\u0003\u0002\u0002\u0002\u01c3\u01c4\u00070\u0002\u0002\u01c4",
|
297 | "\u01c5\u0005l7\u0002\u01c5i\u0003\u0002\u0002\u0002\u01c6\u01c7\u0007",
|
298 | "\f\u0002\u0002\u01c7\u01c8\u0005l7\u0002\u01c8k\u0003\u0002\u0002\u0002",
|
299 | "\u01c9\u01ce\u0005Z.\u0002\u01ca\u01cb\u0007\u0084\u0002\u0002\u01cb",
|
300 | "\u01cd\u0005Z.\u0002\u01cc\u01ca\u0003\u0002\u0002\u0002\u01cd\u01d0",
|
301 | "\u0003\u0002\u0002\u0002\u01ce\u01cc\u0003\u0002\u0002\u0002\u01ce\u01cf",
|
302 | "\u0003\u0002\u0002\u0002\u01cfm\u0003\u0002\u0002\u0002\u01d0\u01ce",
|
303 | "\u0003\u0002\u0002\u0002\u01d1\u01d3\u0005p9\u0002\u01d2\u01d1\u0003",
|
304 | "\u0002\u0002\u0002\u01d2\u01d3\u0003\u0002\u0002\u0002\u01d3\u01d4\u0003",
|
305 | "\u0002\u0002\u0002\u01d4\u01d6\u0005\b\u0005\u0002\u01d5\u01d7\u0005",
|
306 | "\u0014\u000b\u0002\u01d6\u01d5\u0003\u0002\u0002\u0002\u01d6\u01d7\u0003",
|
307 | "\u0002\u0002\u0002\u01d7o\u0003\u0002\u0002\u0002\u01d8\u01d9\u0005",
|
308 | "\b\u0005\u0002\u01d9\u01da\u0007\u0081\u0002\u0002\u01da\u01dc\u0003",
|
309 | "\u0002\u0002\u0002\u01db\u01d8\u0003\u0002\u0002\u0002\u01dc\u01dd\u0003",
|
310 | "\u0002\u0002\u0002\u01dd\u01db\u0003\u0002\u0002\u0002\u01dd\u01de\u0003",
|
311 | "\u0002\u0002\u0002\u01deq\u0003\u0002\u0002\u0002\u01df\u01ea\u0007",
|
312 | "{\u0002\u0002\u01e0\u01ea\u0007|\u0002\u0002\u01e1\u01ea\u0007}\u0002",
|
313 | "\u0002\u01e2\u01ea\u0007~\u0002\u0002\u01e3\u01ea\u0007\u007f\u0002",
|
314 | "\u0002\u01e4\u01ea\u0007\u0080\u0002\u0002\u01e5\u01e6\u0007\u007f\u0002",
|
315 | "\u0002\u01e6\u01ea\u0007{\u0002\u0002\u01e7\u01e8\u0007\u0080\u0002",
|
316 | "\u0002\u01e8\u01ea\u0007{\u0002\u0002\u01e9\u01df\u0003\u0002\u0002",
|
317 | "\u0002\u01e9\u01e0\u0003\u0002\u0002\u0002\u01e9\u01e1\u0003\u0002\u0002",
|
318 | "\u0002\u01e9\u01e2\u0003\u0002\u0002\u0002\u01e9\u01e3\u0003\u0002\u0002",
|
319 | "\u0002\u01e9\u01e4\u0003\u0002\u0002\u0002\u01e9\u01e5\u0003\u0002\u0002",
|
320 | "\u0002\u01e9\u01e7\u0003\u0002\u0002\u0002\u01eas\u0003\u0002\u0002",
|
321 | "\u0002\u01eb\u01f1\u0007\u0013\u0002\u0002\u01ec\u01ed\u0007\u0018\u0002",
|
322 | "\u0002\u01ed\u01f1\u0007\u0013\u0002\u0002\u01ee\u01f1\u0007\u0014\u0002",
|
323 | "\u0002\u01ef\u01f1\u0007\r\u0002\u0002\u01f0\u01eb\u0003\u0002\u0002",
|
324 | "\u0002\u01f0\u01ec\u0003\u0002\u0002\u0002\u01f0\u01ee\u0003\u0002\u0002",
|
325 | "\u0002\u01f0\u01ef\u0003\u0002\u0002\u0002\u01f1u\u0003\u0002\u0002",
|
326 | "\u0002\u01f2\u01f7\u0005x=\u0002\u01f3\u01f4\t\u000b\u0002\u0002\u01f4",
|
327 | "\u01f6\u0005x=\u0002\u01f5\u01f3\u0003\u0002\u0002\u0002\u01f6\u01f9",
|
328 | "\u0003\u0002\u0002\u0002\u01f7\u01f5\u0003\u0002\u0002\u0002\u01f7\u01f8",
|
329 | "\u0003\u0002\u0002\u0002\u01f8w\u0003\u0002\u0002\u0002\u01f9\u01f7",
|
330 | "\u0003\u0002\u0002\u0002\u01fa\u01fc\u0007\u0018\u0002\u0002\u01fb\u01fa",
|
331 | "\u0003\u0002\u0002\u0002\u01fb\u01fc\u0003\u0002\u0002\u0002\u01fc\u01ff",
|
332 | "\u0003\u0002\u0002\u0002\u01fd\u0200\u0005|?\u0002\u01fe\u0200\u0005",
|
333 | "z>\u0002\u01ff\u01fd\u0003\u0002\u0002\u0002\u01ff\u01fe\u0003\u0002",
|
334 | "\u0002\u0002\u0200y\u0003\u0002\u0002\u0002\u0201\u0202\u0007\u0087",
|
335 | "\u0002\u0002\u0202\u0203\u0005v<\u0002\u0203\u0204\u0007\u0086\u0002",
|
336 | "\u0002\u0204{\u0003\u0002\u0002\u0002\u0205\u0209\u0005~@\u0002\u0206",
|
337 | "\u0209\u0005\u0080A\u0002\u0207\u0209\u0005\u0082B\u0002\u0208\u0205",
|
338 | "\u0003\u0002\u0002\u0002\u0208\u0206\u0003\u0002\u0002\u0002\u0208\u0207",
|
339 | "\u0003\u0002\u0002\u0002\u0209}\u0003\u0002\u0002\u0002\u020a\u020b",
|
340 | "\u0005\u0084C\u0002\u020b\u020c\u0005r:\u0002\u020c\u020d\u0005\u0016",
|
341 | "\f\u0002\u020d\u007f\u0003\u0002\u0002\u0002\u020e\u020f\u0005\u0084",
|
342 | "C\u0002\u020f\u0212\u0005t;\u0002\u0210\u0213\u0005N(\u0002\u0211\u0213",
|
343 | "\u0005\u0086D\u0002\u0212\u0210\u0003\u0002\u0002\u0002\u0212\u0211",
|
344 | "\u0003\u0002\u0002\u0002\u0213\u0081\u0003\u0002\u0002\u0002\u0214\u0215",
|
345 | "\u0005\u0084C\u0002\u0215\u0216\u0007\u0016\u0002\u0002\u0216\u0217",
|
346 | "\t\f\u0002\u0002\u0217\u0083\u0003\u0002\u0002\u0002\u0218\u021b\u0005",
|
347 | "Z.\u0002\u0219\u021b\u0005\\/\u0002\u021a\u0218\u0003\u0002\u0002\u0002",
|
348 | "\u021a\u0219\u0003\u0002\u0002\u0002\u021b\u0085\u0003\u0002\u0002\u0002",
|
349 | "\u021c\u021d\u0007\u0087\u0002\u0002\u021d\u021e\u0005\u0088E\u0002",
|
350 | "\u021e\u021f\u0007\u0086\u0002\u0002\u021f\u0087\u0003\u0002\u0002\u0002",
|
351 | "\u0220\u0225\u0005\u0016\f\u0002\u0221\u0222\u0007\u0084\u0002\u0002",
|
352 | "\u0222\u0224\u0005\u0016\f\u0002\u0223\u0221\u0003\u0002\u0002\u0002",
|
353 | "\u0224\u0227\u0003\u0002\u0002\u0002\u0225\u0223\u0003\u0002\u0002\u0002",
|
354 | "\u0225\u0226\u0003\u0002\u0002\u0002\u0226\u0089\u0003\u0002\u0002\u0002",
|
355 | "\u0227\u0225\u0003\u0002\u0002\u0002\u0228\u022b\u0007!\u0002\u0002",
|
356 | "\u0229\u022c\u0005\u008cG\u0002\u022a\u022c\u0005\u008eH\u0002\u022b",
|
357 | "\u0229\u0003\u0002\u0002\u0002\u022b\u022a\u0003\u0002\u0002\u0002\u022c",
|
358 | "\u008b\u0003\u0002\u0002\u0002\u022d\u022e\u0005~@\u0002\u022e\u008d",
|
359 | "\u0003\u0002\u0002\u0002\u022f\u0230\u0007)\u0002\u0002\u0230\u0231",
|
360 | "\u0007(\u0002\u0002\u0231\u0232\u0005\u0090I\u0002\u0232\u008f\u0003",
|
361 | "\u0002\u0002\u0002\u0233\u0238\u0005\u0092J\u0002\u0234\u0235\u0007",
|
362 | "\u0006\u0002\u0002\u0235\u0237\u0005\u0092J\u0002\u0236\u0234\u0003",
|
363 | "\u0002\u0002\u0002\u0237\u023a\u0003\u0002\u0002\u0002\u0238\u0236\u0003",
|
364 | "\u0002\u0002\u0002\u0238\u0239\u0003\u0002\u0002\u0002\u0239\u0091\u0003",
|
365 | "\u0002\u0002\u0002\u023a\u0238\u0003\u0002\u0002\u0002\u023b\u023c\u0005",
|
366 | "\u000e\b\u0002\u023c\u023d\u0005\u0096L\u0002\u023d\u023e\u0005\u0094",
|
367 | "K\u0002\u023e\u0093\u0003\u0002\u0002\u0002\u023f\u024c\u0005\u0010",
|
368 | "\t\u0002\u0240\u0241\u0007\u0087\u0002\u0002\u0241\u0246\u0005\u0010",
|
369 | "\t\u0002\u0242\u0243\u0007\u0084\u0002\u0002\u0243\u0245\u0005\u0010",
|
370 | "\t\u0002\u0244\u0242\u0003\u0002\u0002\u0002\u0245\u0248\u0003\u0002",
|
371 | "\u0002\u0002\u0246\u0244\u0003\u0002\u0002\u0002\u0246\u0247\u0003\u0002",
|
372 | "\u0002\u0002\u0247\u0249\u0003\u0002\u0002\u0002\u0248\u0246\u0003\u0002",
|
373 | "\u0002\u0002\u0249\u024a\u0007\u0086\u0002\u0002\u024a\u024c\u0003\u0002",
|
374 | "\u0002\u0002\u024b\u023f\u0003\u0002\u0002\u0002\u024b\u0240\u0003\u0002",
|
375 | "\u0002\u0002\u024c\u0095\u0003\u0002\u0002\u0002\u024d\u024e\t\r\u0002",
|
376 | "\u0002\u024e\u0097\u0003\u0002\u0002\u0002\u024f\u0250\u0005\u009eP",
|
377 | "\u0002\u0250\u0099\u0003\u0002\u0002\u0002\u0251\u0252\u0007\u001c\u0002",
|
378 | "\u0002\u0252\u0253\u0007\u0087\u0002\u0002\u0253\u0254\u0005\u009eP",
|
379 | "\u0002\u0254\u0255\u0007\u0086\u0002\u0002\u0255\u009b\u0003\u0002\u0002",
|
380 | "\u0002\u0256\u0257\u0007\n\u0002\u0002\u0257\u0258\u0007\u0087\u0002",
|
381 | "\u0002\u0258\u0259\u0005\u009eP\u0002\u0259\u025a\u0007\u0086\u0002",
|
382 | "\u0002\u025a\u009d\u0003\u0002\u0002\u0002\u025b\u0260\u0005\u00a0Q",
|
383 | "\u0002\u025c\u025d\u0007\u0084\u0002\u0002\u025d\u025f\u0005\u00a0Q",
|
384 | "\u0002\u025e\u025c\u0003\u0002\u0002\u0002\u025f\u0262\u0003\u0002\u0002",
|
385 | "\u0002\u0260\u025e\u0003\u0002\u0002\u0002\u0260\u0261\u0003\u0002\u0002",
|
386 | "\u0002\u0261\u009f\u0003\u0002\u0002\u0002\u0262\u0260\u0003\u0002\u0002",
|
387 | "\u0002\u0263\u0266\u0005Z.\u0002\u0264\u0266\u0005\\/\u0002\u0265\u0263",
|
388 | "\u0003\u0002\u0002\u0002\u0265\u0264\u0003\u0002\u0002\u0002\u0266\u00a1",
|
389 | "\u0003\u0002\u0002\u0002\u0267\u026c\u0005\u00a4S\u0002\u0268\u0269",
|
390 | "\u0007\u0084\u0002\u0002\u0269\u026b\u0005\u00a4S\u0002\u026a\u0268",
|
391 | "\u0003\u0002\u0002\u0002\u026b\u026e\u0003\u0002\u0002\u0002\u026c\u026a",
|
392 | "\u0003\u0002\u0002\u0002\u026c\u026d\u0003\u0002\u0002\u0002\u026d\u00a3",
|
393 | "\u0003\u0002\u0002\u0002\u026e\u026c\u0003\u0002\u0002\u0002\u026f\u0271",
|
394 | "\u0005\u00aaV\u0002\u0270\u0272\u0005\u00a6T\u0002\u0271\u0270\u0003",
|
395 | "\u0002\u0002\u0002\u0271\u0272\u0003\u0002\u0002\u0002\u0272\u0274\u0003",
|
396 | "\u0002\u0002\u0002\u0273\u0275\u0005\u00a8U\u0002\u0274\u0273\u0003",
|
397 | "\u0002\u0002\u0002\u0274\u0275\u0003\u0002\u0002\u0002\u0275\u00a5\u0003",
|
398 | "\u0002\u0002\u0002\u0276\u0277\t\u000e\u0002\u0002\u0277\u00a7\u0003",
|
399 | "\u0002\u0002\u0002\u0278\u0279\u0007\u001a\u0002\u0002\u0279\u027a\t",
|
400 | "\u000f\u0002\u0002\u027a\u00a9\u0003\u0002\u0002\u0002\u027b\u027e\u0005",
|
401 | "Z.\u0002\u027c\u027e\u0005\\/\u0002\u027d\u027b\u0003\u0002\u0002\u0002",
|
402 | "\u027d\u027c\u0003\u0002\u0002\u0002\u027e\u00ab\u0003\u0002\u0002\u0002",
|
403 | "\u027f\u0280\t\u0010\u0002\u0002\u0280\u00ad\u0003\u0002\u0002\u0002",
|
404 | "\u0281\u0282\t\u0011\u0002\u0002\u0282\u00af\u0003\u0002\u0002\u0002",
|
405 | "B\u00b4\u00bb\u00cc\u00cf\u00dc\u00f8\u0105\u0108\u010b\u010f\u0111",
|
406 | "\u0114\u0117\u011a\u011d\u0120\u012a\u0133\u0142\u0155\u0159\u015f\u0165",
|
407 | "\u0168\u016b\u016e\u0171\u0174\u0177\u017a\u0184\u018b\u018f\u0193\u0197",
|
408 | "\u019a\u01a1\u01aa\u01b0\u01b6\u01bd\u01ce\u01d2\u01d6\u01dd\u01e9\u01f0",
|
409 | "\u01f7\u01fb\u01ff\u0208\u0212\u021a\u0225\u022b\u0238\u0246\u024b\u0260",
|
410 | "\u0265\u026c\u0271\u0274\u027d"].join("");
|
411 |
|
412 |
|
413 | var atn = new antlr4.atn.ATNDeserializer().deserialize(serializedATN);
|
414 |
|
415 | var decisionsToDFA = atn.decisionToState.map( function(ds, index) { return new antlr4.dfa.DFA(ds, index); });
|
416 |
|
417 | var sharedContextCache = new antlr4.PredictionContextCache();
|
418 |
|
419 | var literalNames = [ null, null, null, null, null, null, null, null, null,
|
420 | null, null, null, null, null, null, null, null, null,
|
421 | null, null, null, null, null, null, null, null, null,
|
422 | null, null, null, null, null, null, null, null, null,
|
423 | null, null, null, null, null, null, null, null, null,
|
424 | null, null, null, null, null, null, null, null, null,
|
425 | null, null, null, null, null, null, null, null, null,
|
426 | null, null, null, null, null, null, null, null, null,
|
427 | null, null, null, null, null, null, null, null, null,
|
428 | null, null, null, null, null, null, null, null, null,
|
429 | null, null, null, null, null, null, null, null, null,
|
430 | null, null, null, null, null, null, null, null, null,
|
431 | null, null, null, null, null, null, null, null, null,
|
432 | null, null, null, null, "'='", null, "'<='", "'>='",
|
433 | "'>'", "'<'", "'.'", "':'", "';'", "','", "'*'", "')'",
|
434 | "'('", "'+'", "'-'" ];
|
435 |
|
436 | var symbolicNames = [ null, "WHITE_SPACE", "STRING_VALUE", "LIKE_STRING_VALUE",
|
437 | "AND", "AS", "ASC", "BY", "CUBE", "DESC", "ELSE",
|
438 | "EXCLUDES", "FALSE", "FIRST", "FROM", "GROUP", "HAVING",
|
439 | "IN", "INCLUDES", "LAST", "LIKE", "LIMIT", "NOT",
|
440 | "NULL", "NULLS", "OR", "ROLLUP", "SELECT", "TRUE",
|
441 | "USING", "WHERE", "WITH", "FOR", "UPDATE", "ABOVE",
|
442 | "ABOVE_OR_BELOW", "AT", "BELOW", "CATEGORY", "DATA",
|
443 | "END", "OFFSET", "ORDER", "REFERENCE", "SCOPE", "TRACKING",
|
444 | "THEN", "TYPEOF", "VIEW", "VIEWSTAT", "WHEN", "CALENDAR_MONTH",
|
445 | "CALENDAR_QUARTER", "CALENDAR_YEAR", "DAY_IN_MONTH",
|
446 | "DAY_IN_WEEK", "DAY_IN_YEAR", "DAY_ONLY", "FISCAL_MONTH",
|
447 | "FISCAL_QUARTER", "FISCAL_YEAR", "HOUR_IN_DAY", "WEEK_IN_MONTH",
|
448 | "WEEK_IN_YEAR", "AVG", "COUNT", "COUNT_DISTINCT",
|
449 | "MIN", "MAX", "SUM", "DISTANCE", "GEOLOCATION", "FORMAT",
|
450 | "TOLABEL", "CONVERT_TIME_ZONE", "CONVERT_CURRENCY",
|
451 | "GROUPING", "YESTERDAY", "TODAY", "TOMORROW", "LAST_WEEK",
|
452 | "THIS_WEEK", "NEXT_WEEK", "LAST_MONTH", "THIS_MONTH",
|
453 | "NEXT_MONTH", "LAST_90_DAYS", "NEXT_90_DAYS", "THIS_QUARTER",
|
454 | "LAST_QUARTER", "NEXT_QUARTER", "THIS_YEAR", "LAST_YEAR",
|
455 | "NEXT_YEAR", "THIS_FISCAL_QUARTER", "LAST_FISCAL_QUARTER",
|
456 | "NEXT_FISCAL_QUARTER", "THIS_FISCAL_YEAR", "LAST_FISCAL_YEAR",
|
457 | "NEXT_FISCAL_YEAR", "NEXT_N_DAYS", "LAST_N_DAYS",
|
458 | "N_DAYS_AGO", "NEXT_N_WEEKS", "LAST_N_WEEKS", "N_WEEKS_AGO",
|
459 | "NEXT_N_MONTHS", "LAST_N_MONTHS", "N_MONTHS_AGO",
|
460 | "NEXT_N_QUARTERS", "LAST_N_QUARTERS", "N_QUARTERS_AGO",
|
461 | "NEXT_N_YEARS", "LAST_N_YEARS", "N_YEARS_AGO", "NEXT_N_FISCAL_QUARTERS",
|
462 | "LAST_N_FISCAL_QUARTERS", "N_FISCAL_QUARTERS_AGO",
|
463 | "NEXT_N_FISCAL_YEARS", "LAST_N_FISCAL_YEARS", "N_FISCAL_YEARS_AGO",
|
464 | "EQ", "NOT_EQ", "LET", "GET", "GTH", "LTH", "DOT",
|
465 | "COLON", "SEMICOLON", "COMMA", "ASTERISK", "RPAREN",
|
466 | "LPAREN", "PLUS", "MINUS", "ID", "DATE", "DATETIME",
|
467 | "UNSIGNED_INTEGER", "REAL_NUMBER", "SIGNED_INTEGER" ];
|
468 |
|
469 | var ruleNames = [ "keywords_alias_allowed", "keywords_name_allowed", "name",
|
470 | "object_name", "field_name", "filter_scope_name", "data_category_group_name",
|
471 | "data_category_name", "alias_name", "alias", "literal",
|
472 | "date_formula_literal", "date_formula_n_literal_name",
|
473 | "date_formula_n_literal", "datetime_literal", "date_literal",
|
474 | "integer_literal", "real_literal", "string_literal",
|
475 | "boolean_literal", "null_literal", "function_name", "function_date",
|
476 | "function_aggregate", "function_location", "function_other",
|
477 | "soql_query", "select_clause", "from_clause", "using_clause",
|
478 | "where_clause", "groupby_clause", "having_clause", "orderby_clause",
|
479 | "limit_clause", "offset_clause", "for_clause", "update_clause",
|
480 | "soql_subquery", "subquery_select_clause", "select_spec",
|
481 | "subquery_select_spec", "field_spec", "function_call_spec",
|
482 | "field", "function_call", "function_parameter_list",
|
483 | "function_parameter", "typeof_spec", "typeof_when_then_clause_list",
|
484 | "typeof_when_then_clause", "typeof_then_clause", "typeof_else_clause",
|
485 | "field_list", "object_spec", "object_prefix", "comparison_operator",
|
486 | "set_operator", "condition", "condition1", "parenthesis",
|
487 | "simple_condition", "field_based_condition", "set_based_condition",
|
488 | "like_based_condition", "condition_field", "set_values",
|
489 | "set_value_list", "with_clause", "with_plain_clause",
|
490 | "with_data_category_clause", "data_category_spec_list",
|
491 | "data_category_spec", "data_category_parameter_list",
|
492 | "data_category_selector", "group_by_plain_clause", "group_by_rollup_clause",
|
493 | "group_by_cube_clause", "group_by_list", "group_by_spec",
|
494 | "order_by_list", "order_by_spec", "order_by_direction_clause",
|
495 | "order_by_nulls_clause", "order_by_field", "for_value",
|
496 | "update_value" ];
|
497 |
|
498 | function SOQLParser (input) {
|
499 | antlr4.Parser.call(this, input);
|
500 | this._interp = new antlr4.atn.ParserATNSimulator(this, atn, decisionsToDFA, sharedContextCache);
|
501 | this.ruleNames = ruleNames;
|
502 | this.literalNames = literalNames;
|
503 | this.symbolicNames = symbolicNames;
|
504 | return this;
|
505 | }
|
506 |
|
507 | SOQLParser.prototype = Object.create(antlr4.Parser.prototype);
|
508 | SOQLParser.prototype.constructor = SOQLParser;
|
509 |
|
510 | Object.defineProperty(SOQLParser.prototype, "atn", {
|
511 | get : function() {
|
512 | return atn;
|
513 | }
|
514 | });
|
515 |
|
516 | SOQLParser.EOF = antlr4.Token.EOF;
|
517 | SOQLParser.WHITE_SPACE = 1;
|
518 | SOQLParser.STRING_VALUE = 2;
|
519 | SOQLParser.LIKE_STRING_VALUE = 3;
|
520 | SOQLParser.AND = 4;
|
521 | SOQLParser.AS = 5;
|
522 | SOQLParser.ASC = 6;
|
523 | SOQLParser.BY = 7;
|
524 | SOQLParser.CUBE = 8;
|
525 | SOQLParser.DESC = 9;
|
526 | SOQLParser.ELSE = 10;
|
527 | SOQLParser.EXCLUDES = 11;
|
528 | SOQLParser.FALSE = 12;
|
529 | SOQLParser.FIRST = 13;
|
530 | SOQLParser.FROM = 14;
|
531 | SOQLParser.GROUP = 15;
|
532 | SOQLParser.HAVING = 16;
|
533 | SOQLParser.IN = 17;
|
534 | SOQLParser.INCLUDES = 18;
|
535 | SOQLParser.LAST = 19;
|
536 | SOQLParser.LIKE = 20;
|
537 | SOQLParser.LIMIT = 21;
|
538 | SOQLParser.NOT = 22;
|
539 | SOQLParser.NULL = 23;
|
540 | SOQLParser.NULLS = 24;
|
541 | SOQLParser.OR = 25;
|
542 | SOQLParser.ROLLUP = 26;
|
543 | SOQLParser.SELECT = 27;
|
544 | SOQLParser.TRUE = 28;
|
545 | SOQLParser.USING = 29;
|
546 | SOQLParser.WHERE = 30;
|
547 | SOQLParser.WITH = 31;
|
548 | SOQLParser.FOR = 32;
|
549 | SOQLParser.UPDATE = 33;
|
550 | SOQLParser.ABOVE = 34;
|
551 | SOQLParser.ABOVE_OR_BELOW = 35;
|
552 | SOQLParser.AT = 36;
|
553 | SOQLParser.BELOW = 37;
|
554 | SOQLParser.CATEGORY = 38;
|
555 | SOQLParser.DATA = 39;
|
556 | SOQLParser.END = 40;
|
557 | SOQLParser.OFFSET = 41;
|
558 | SOQLParser.ORDER = 42;
|
559 | SOQLParser.REFERENCE = 43;
|
560 | SOQLParser.SCOPE = 44;
|
561 | SOQLParser.TRACKING = 45;
|
562 | SOQLParser.THEN = 46;
|
563 | SOQLParser.TYPEOF = 47;
|
564 | SOQLParser.VIEW = 48;
|
565 | SOQLParser.VIEWSTAT = 49;
|
566 | SOQLParser.WHEN = 50;
|
567 | SOQLParser.CALENDAR_MONTH = 51;
|
568 | SOQLParser.CALENDAR_QUARTER = 52;
|
569 | SOQLParser.CALENDAR_YEAR = 53;
|
570 | SOQLParser.DAY_IN_MONTH = 54;
|
571 | SOQLParser.DAY_IN_WEEK = 55;
|
572 | SOQLParser.DAY_IN_YEAR = 56;
|
573 | SOQLParser.DAY_ONLY = 57;
|
574 | SOQLParser.FISCAL_MONTH = 58;
|
575 | SOQLParser.FISCAL_QUARTER = 59;
|
576 | SOQLParser.FISCAL_YEAR = 60;
|
577 | SOQLParser.HOUR_IN_DAY = 61;
|
578 | SOQLParser.WEEK_IN_MONTH = 62;
|
579 | SOQLParser.WEEK_IN_YEAR = 63;
|
580 | SOQLParser.AVG = 64;
|
581 | SOQLParser.COUNT = 65;
|
582 | SOQLParser.COUNT_DISTINCT = 66;
|
583 | SOQLParser.MIN = 67;
|
584 | SOQLParser.MAX = 68;
|
585 | SOQLParser.SUM = 69;
|
586 | SOQLParser.DISTANCE = 70;
|
587 | SOQLParser.GEOLOCATION = 71;
|
588 | SOQLParser.FORMAT = 72;
|
589 | SOQLParser.TOLABEL = 73;
|
590 | SOQLParser.CONVERT_TIME_ZONE = 74;
|
591 | SOQLParser.CONVERT_CURRENCY = 75;
|
592 | SOQLParser.GROUPING = 76;
|
593 | SOQLParser.YESTERDAY = 77;
|
594 | SOQLParser.TODAY = 78;
|
595 | SOQLParser.TOMORROW = 79;
|
596 | SOQLParser.LAST_WEEK = 80;
|
597 | SOQLParser.THIS_WEEK = 81;
|
598 | SOQLParser.NEXT_WEEK = 82;
|
599 | SOQLParser.LAST_MONTH = 83;
|
600 | SOQLParser.THIS_MONTH = 84;
|
601 | SOQLParser.NEXT_MONTH = 85;
|
602 | SOQLParser.LAST_90_DAYS = 86;
|
603 | SOQLParser.NEXT_90_DAYS = 87;
|
604 | SOQLParser.THIS_QUARTER = 88;
|
605 | SOQLParser.LAST_QUARTER = 89;
|
606 | SOQLParser.NEXT_QUARTER = 90;
|
607 | SOQLParser.THIS_YEAR = 91;
|
608 | SOQLParser.LAST_YEAR = 92;
|
609 | SOQLParser.NEXT_YEAR = 93;
|
610 | SOQLParser.THIS_FISCAL_QUARTER = 94;
|
611 | SOQLParser.LAST_FISCAL_QUARTER = 95;
|
612 | SOQLParser.NEXT_FISCAL_QUARTER = 96;
|
613 | SOQLParser.THIS_FISCAL_YEAR = 97;
|
614 | SOQLParser.LAST_FISCAL_YEAR = 98;
|
615 | SOQLParser.NEXT_FISCAL_YEAR = 99;
|
616 | SOQLParser.NEXT_N_DAYS = 100;
|
617 | SOQLParser.LAST_N_DAYS = 101;
|
618 | SOQLParser.N_DAYS_AGO = 102;
|
619 | SOQLParser.NEXT_N_WEEKS = 103;
|
620 | SOQLParser.LAST_N_WEEKS = 104;
|
621 | SOQLParser.N_WEEKS_AGO = 105;
|
622 | SOQLParser.NEXT_N_MONTHS = 106;
|
623 | SOQLParser.LAST_N_MONTHS = 107;
|
624 | SOQLParser.N_MONTHS_AGO = 108;
|
625 | SOQLParser.NEXT_N_QUARTERS = 109;
|
626 | SOQLParser.LAST_N_QUARTERS = 110;
|
627 | SOQLParser.N_QUARTERS_AGO = 111;
|
628 | SOQLParser.NEXT_N_YEARS = 112;
|
629 | SOQLParser.LAST_N_YEARS = 113;
|
630 | SOQLParser.N_YEARS_AGO = 114;
|
631 | SOQLParser.NEXT_N_FISCAL_QUARTERS = 115;
|
632 | SOQLParser.LAST_N_FISCAL_QUARTERS = 116;
|
633 | SOQLParser.N_FISCAL_QUARTERS_AGO = 117;
|
634 | SOQLParser.NEXT_N_FISCAL_YEARS = 118;
|
635 | SOQLParser.LAST_N_FISCAL_YEARS = 119;
|
636 | SOQLParser.N_FISCAL_YEARS_AGO = 120;
|
637 | SOQLParser.EQ = 121;
|
638 | SOQLParser.NOT_EQ = 122;
|
639 | SOQLParser.LET = 123;
|
640 | SOQLParser.GET = 124;
|
641 | SOQLParser.GTH = 125;
|
642 | SOQLParser.LTH = 126;
|
643 | SOQLParser.DOT = 127;
|
644 | SOQLParser.COLON = 128;
|
645 | SOQLParser.SEMICOLON = 129;
|
646 | SOQLParser.COMMA = 130;
|
647 | SOQLParser.ASTERISK = 131;
|
648 | SOQLParser.RPAREN = 132;
|
649 | SOQLParser.LPAREN = 133;
|
650 | SOQLParser.PLUS = 134;
|
651 | SOQLParser.MINUS = 135;
|
652 | SOQLParser.ID = 136;
|
653 | SOQLParser.DATE = 137;
|
654 | SOQLParser.DATETIME = 138;
|
655 | SOQLParser.UNSIGNED_INTEGER = 139;
|
656 | SOQLParser.REAL_NUMBER = 140;
|
657 | SOQLParser.SIGNED_INTEGER = 141;
|
658 |
|
659 | SOQLParser.RULE_keywords_alias_allowed = 0;
|
660 | SOQLParser.RULE_keywords_name_allowed = 1;
|
661 | SOQLParser.RULE_name = 2;
|
662 | SOQLParser.RULE_object_name = 3;
|
663 | SOQLParser.RULE_field_name = 4;
|
664 | SOQLParser.RULE_filter_scope_name = 5;
|
665 | SOQLParser.RULE_data_category_group_name = 6;
|
666 | SOQLParser.RULE_data_category_name = 7;
|
667 | SOQLParser.RULE_alias_name = 8;
|
668 | SOQLParser.RULE_alias = 9;
|
669 | SOQLParser.RULE_literal = 10;
|
670 | SOQLParser.RULE_date_formula_literal = 11;
|
671 | SOQLParser.RULE_date_formula_n_literal_name = 12;
|
672 | SOQLParser.RULE_date_formula_n_literal = 13;
|
673 | SOQLParser.RULE_datetime_literal = 14;
|
674 | SOQLParser.RULE_date_literal = 15;
|
675 | SOQLParser.RULE_integer_literal = 16;
|
676 | SOQLParser.RULE_real_literal = 17;
|
677 | SOQLParser.RULE_string_literal = 18;
|
678 | SOQLParser.RULE_boolean_literal = 19;
|
679 | SOQLParser.RULE_null_literal = 20;
|
680 | SOQLParser.RULE_function_name = 21;
|
681 | SOQLParser.RULE_function_date = 22;
|
682 | SOQLParser.RULE_function_aggregate = 23;
|
683 | SOQLParser.RULE_function_location = 24;
|
684 | SOQLParser.RULE_function_other = 25;
|
685 | SOQLParser.RULE_soql_query = 26;
|
686 | SOQLParser.RULE_select_clause = 27;
|
687 | SOQLParser.RULE_from_clause = 28;
|
688 | SOQLParser.RULE_using_clause = 29;
|
689 | SOQLParser.RULE_where_clause = 30;
|
690 | SOQLParser.RULE_groupby_clause = 31;
|
691 | SOQLParser.RULE_having_clause = 32;
|
692 | SOQLParser.RULE_orderby_clause = 33;
|
693 | SOQLParser.RULE_limit_clause = 34;
|
694 | SOQLParser.RULE_offset_clause = 35;
|
695 | SOQLParser.RULE_for_clause = 36;
|
696 | SOQLParser.RULE_update_clause = 37;
|
697 | SOQLParser.RULE_soql_subquery = 38;
|
698 | SOQLParser.RULE_subquery_select_clause = 39;
|
699 | SOQLParser.RULE_select_spec = 40;
|
700 | SOQLParser.RULE_subquery_select_spec = 41;
|
701 | SOQLParser.RULE_field_spec = 42;
|
702 | SOQLParser.RULE_function_call_spec = 43;
|
703 | SOQLParser.RULE_field = 44;
|
704 | SOQLParser.RULE_function_call = 45;
|
705 | SOQLParser.RULE_function_parameter_list = 46;
|
706 | SOQLParser.RULE_function_parameter = 47;
|
707 | SOQLParser.RULE_typeof_spec = 48;
|
708 | SOQLParser.RULE_typeof_when_then_clause_list = 49;
|
709 | SOQLParser.RULE_typeof_when_then_clause = 50;
|
710 | SOQLParser.RULE_typeof_then_clause = 51;
|
711 | SOQLParser.RULE_typeof_else_clause = 52;
|
712 | SOQLParser.RULE_field_list = 53;
|
713 | SOQLParser.RULE_object_spec = 54;
|
714 | SOQLParser.RULE_object_prefix = 55;
|
715 | SOQLParser.RULE_comparison_operator = 56;
|
716 | SOQLParser.RULE_set_operator = 57;
|
717 | SOQLParser.RULE_condition = 58;
|
718 | SOQLParser.RULE_condition1 = 59;
|
719 | SOQLParser.RULE_parenthesis = 60;
|
720 | SOQLParser.RULE_simple_condition = 61;
|
721 | SOQLParser.RULE_field_based_condition = 62;
|
722 | SOQLParser.RULE_set_based_condition = 63;
|
723 | SOQLParser.RULE_like_based_condition = 64;
|
724 | SOQLParser.RULE_condition_field = 65;
|
725 | SOQLParser.RULE_set_values = 66;
|
726 | SOQLParser.RULE_set_value_list = 67;
|
727 | SOQLParser.RULE_with_clause = 68;
|
728 | SOQLParser.RULE_with_plain_clause = 69;
|
729 | SOQLParser.RULE_with_data_category_clause = 70;
|
730 | SOQLParser.RULE_data_category_spec_list = 71;
|
731 | SOQLParser.RULE_data_category_spec = 72;
|
732 | SOQLParser.RULE_data_category_parameter_list = 73;
|
733 | SOQLParser.RULE_data_category_selector = 74;
|
734 | SOQLParser.RULE_group_by_plain_clause = 75;
|
735 | SOQLParser.RULE_group_by_rollup_clause = 76;
|
736 | SOQLParser.RULE_group_by_cube_clause = 77;
|
737 | SOQLParser.RULE_group_by_list = 78;
|
738 | SOQLParser.RULE_group_by_spec = 79;
|
739 | SOQLParser.RULE_order_by_list = 80;
|
740 | SOQLParser.RULE_order_by_spec = 81;
|
741 | SOQLParser.RULE_order_by_direction_clause = 82;
|
742 | SOQLParser.RULE_order_by_nulls_clause = 83;
|
743 | SOQLParser.RULE_order_by_field = 84;
|
744 | SOQLParser.RULE_for_value = 85;
|
745 | SOQLParser.RULE_update_value = 86;
|
746 |
|
747 | function Keywords_alias_allowedContext(parser, parent, invokingState) {
|
748 | if(parent===undefined) {
|
749 | parent = null;
|
750 | }
|
751 | if(invokingState===undefined || invokingState===null) {
|
752 | invokingState = -1;
|
753 | }
|
754 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
755 | this.parser = parser;
|
756 | this.ruleIndex = SOQLParser.RULE_keywords_alias_allowed;
|
757 | return this;
|
758 | }
|
759 |
|
760 | Keywords_alias_allowedContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
761 | Keywords_alias_allowedContext.prototype.constructor = Keywords_alias_allowedContext;
|
762 |
|
763 | Keywords_alias_allowedContext.prototype.ABOVE = function() {
|
764 | return this.getToken(SOQLParser.ABOVE, 0);
|
765 | };
|
766 |
|
767 | Keywords_alias_allowedContext.prototype.ABOVE_OR_BELOW = function() {
|
768 | return this.getToken(SOQLParser.ABOVE_OR_BELOW, 0);
|
769 | };
|
770 |
|
771 | Keywords_alias_allowedContext.prototype.AT = function() {
|
772 | return this.getToken(SOQLParser.AT, 0);
|
773 | };
|
774 |
|
775 | Keywords_alias_allowedContext.prototype.BELOW = function() {
|
776 | return this.getToken(SOQLParser.BELOW, 0);
|
777 | };
|
778 |
|
779 | Keywords_alias_allowedContext.prototype.CATEGORY = function() {
|
780 | return this.getToken(SOQLParser.CATEGORY, 0);
|
781 | };
|
782 |
|
783 | Keywords_alias_allowedContext.prototype.DATA = function() {
|
784 | return this.getToken(SOQLParser.DATA, 0);
|
785 | };
|
786 |
|
787 | Keywords_alias_allowedContext.prototype.END = function() {
|
788 | return this.getToken(SOQLParser.END, 0);
|
789 | };
|
790 |
|
791 | Keywords_alias_allowedContext.prototype.OFFSET = function() {
|
792 | return this.getToken(SOQLParser.OFFSET, 0);
|
793 | };
|
794 |
|
795 | Keywords_alias_allowedContext.prototype.ORDER = function() {
|
796 | return this.getToken(SOQLParser.ORDER, 0);
|
797 | };
|
798 |
|
799 | Keywords_alias_allowedContext.prototype.REFERENCE = function() {
|
800 | return this.getToken(SOQLParser.REFERENCE, 0);
|
801 | };
|
802 |
|
803 | Keywords_alias_allowedContext.prototype.SCOPE = function() {
|
804 | return this.getToken(SOQLParser.SCOPE, 0);
|
805 | };
|
806 |
|
807 | Keywords_alias_allowedContext.prototype.TRACKING = function() {
|
808 | return this.getToken(SOQLParser.TRACKING, 0);
|
809 | };
|
810 |
|
811 | Keywords_alias_allowedContext.prototype.THEN = function() {
|
812 | return this.getToken(SOQLParser.THEN, 0);
|
813 | };
|
814 |
|
815 | Keywords_alias_allowedContext.prototype.TYPEOF = function() {
|
816 | return this.getToken(SOQLParser.TYPEOF, 0);
|
817 | };
|
818 |
|
819 | Keywords_alias_allowedContext.prototype.VIEW = function() {
|
820 | return this.getToken(SOQLParser.VIEW, 0);
|
821 | };
|
822 |
|
823 | Keywords_alias_allowedContext.prototype.VIEWSTAT = function() {
|
824 | return this.getToken(SOQLParser.VIEWSTAT, 0);
|
825 | };
|
826 |
|
827 | Keywords_alias_allowedContext.prototype.WHEN = function() {
|
828 | return this.getToken(SOQLParser.WHEN, 0);
|
829 | };
|
830 |
|
831 | Keywords_alias_allowedContext.prototype.enterRule = function(listener) {
|
832 | if(listener instanceof SOQLListener ) {
|
833 | listener.enterKeywords_alias_allowed(this);
|
834 | }
|
835 | };
|
836 |
|
837 | Keywords_alias_allowedContext.prototype.exitRule = function(listener) {
|
838 | if(listener instanceof SOQLListener ) {
|
839 | listener.exitKeywords_alias_allowed(this);
|
840 | }
|
841 | };
|
842 |
|
843 |
|
844 |
|
845 |
|
846 | SOQLParser.Keywords_alias_allowedContext = Keywords_alias_allowedContext;
|
847 |
|
848 | SOQLParser.prototype.keywords_alias_allowed = function() {
|
849 |
|
850 | var localctx = new Keywords_alias_allowedContext(this, this._ctx, this.state);
|
851 | this.enterRule(localctx, 0, SOQLParser.RULE_keywords_alias_allowed);
|
852 | var _la = 0;
|
853 | try {
|
854 | this.enterOuterAlt(localctx, 1);
|
855 | this.state = 174;
|
856 | _la = this._input.LA(1);
|
857 | if(!(((((_la - 34)) & ~0x1f) == 0 && ((1 << (_la - 34)) & ((1 << (SOQLParser.ABOVE - 34)) | (1 << (SOQLParser.ABOVE_OR_BELOW - 34)) | (1 << (SOQLParser.AT - 34)) | (1 << (SOQLParser.BELOW - 34)) | (1 << (SOQLParser.CATEGORY - 34)) | (1 << (SOQLParser.DATA - 34)) | (1 << (SOQLParser.END - 34)) | (1 << (SOQLParser.OFFSET - 34)) | (1 << (SOQLParser.ORDER - 34)) | (1 << (SOQLParser.REFERENCE - 34)) | (1 << (SOQLParser.SCOPE - 34)) | (1 << (SOQLParser.TRACKING - 34)) | (1 << (SOQLParser.THEN - 34)) | (1 << (SOQLParser.TYPEOF - 34)) | (1 << (SOQLParser.VIEW - 34)) | (1 << (SOQLParser.VIEWSTAT - 34)) | (1 << (SOQLParser.WHEN - 34)))) !== 0))) {
|
858 | this._errHandler.recoverInline(this);
|
859 | }
|
860 | else {
|
861 | this._errHandler.reportMatch(this);
|
862 | this.consume();
|
863 | }
|
864 | } catch (re) {
|
865 | if(re instanceof antlr4.error.RecognitionException) {
|
866 | localctx.exception = re;
|
867 | this._errHandler.reportError(this, re);
|
868 | this._errHandler.recover(this, re);
|
869 | } else {
|
870 | throw re;
|
871 | }
|
872 | } finally {
|
873 | this.exitRule();
|
874 | }
|
875 | return localctx;
|
876 | };
|
877 |
|
878 | function Keywords_name_allowedContext(parser, parent, invokingState) {
|
879 | if(parent===undefined) {
|
880 | parent = null;
|
881 | }
|
882 | if(invokingState===undefined || invokingState===null) {
|
883 | invokingState = -1;
|
884 | }
|
885 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
886 | this.parser = parser;
|
887 | this.ruleIndex = SOQLParser.RULE_keywords_name_allowed;
|
888 | return this;
|
889 | }
|
890 |
|
891 | Keywords_name_allowedContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
892 | Keywords_name_allowedContext.prototype.constructor = Keywords_name_allowedContext;
|
893 |
|
894 | Keywords_name_allowedContext.prototype.keywords_alias_allowed = function() {
|
895 | return this.getTypedRuleContext(Keywords_alias_allowedContext,0);
|
896 | };
|
897 |
|
898 | Keywords_name_allowedContext.prototype.GROUP = function() {
|
899 | return this.getToken(SOQLParser.GROUP, 0);
|
900 | };
|
901 |
|
902 | Keywords_name_allowedContext.prototype.enterRule = function(listener) {
|
903 | if(listener instanceof SOQLListener ) {
|
904 | listener.enterKeywords_name_allowed(this);
|
905 | }
|
906 | };
|
907 |
|
908 | Keywords_name_allowedContext.prototype.exitRule = function(listener) {
|
909 | if(listener instanceof SOQLListener ) {
|
910 | listener.exitKeywords_name_allowed(this);
|
911 | }
|
912 | };
|
913 |
|
914 |
|
915 |
|
916 |
|
917 | SOQLParser.Keywords_name_allowedContext = Keywords_name_allowedContext;
|
918 |
|
919 | SOQLParser.prototype.keywords_name_allowed = function() {
|
920 |
|
921 | var localctx = new Keywords_name_allowedContext(this, this._ctx, this.state);
|
922 | this.enterRule(localctx, 2, SOQLParser.RULE_keywords_name_allowed);
|
923 | try {
|
924 | this.state = 178;
|
925 | this._errHandler.sync(this);
|
926 | switch(this._input.LA(1)) {
|
927 | case SOQLParser.ABOVE:
|
928 | case SOQLParser.ABOVE_OR_BELOW:
|
929 | case SOQLParser.AT:
|
930 | case SOQLParser.BELOW:
|
931 | case SOQLParser.CATEGORY:
|
932 | case SOQLParser.DATA:
|
933 | case SOQLParser.END:
|
934 | case SOQLParser.OFFSET:
|
935 | case SOQLParser.ORDER:
|
936 | case SOQLParser.REFERENCE:
|
937 | case SOQLParser.SCOPE:
|
938 | case SOQLParser.TRACKING:
|
939 | case SOQLParser.THEN:
|
940 | case SOQLParser.TYPEOF:
|
941 | case SOQLParser.VIEW:
|
942 | case SOQLParser.VIEWSTAT:
|
943 | case SOQLParser.WHEN:
|
944 | this.enterOuterAlt(localctx, 1);
|
945 | this.state = 176;
|
946 | this.keywords_alias_allowed();
|
947 | break;
|
948 | case SOQLParser.GROUP:
|
949 | this.enterOuterAlt(localctx, 2);
|
950 | this.state = 177;
|
951 | this.match(SOQLParser.GROUP);
|
952 | break;
|
953 | default:
|
954 | throw new antlr4.error.NoViableAltException(this);
|
955 | }
|
956 | } catch (re) {
|
957 | if(re instanceof antlr4.error.RecognitionException) {
|
958 | localctx.exception = re;
|
959 | this._errHandler.reportError(this, re);
|
960 | this._errHandler.recover(this, re);
|
961 | } else {
|
962 | throw re;
|
963 | }
|
964 | } finally {
|
965 | this.exitRule();
|
966 | }
|
967 | return localctx;
|
968 | };
|
969 |
|
970 | function NameContext(parser, parent, invokingState) {
|
971 | if(parent===undefined) {
|
972 | parent = null;
|
973 | }
|
974 | if(invokingState===undefined || invokingState===null) {
|
975 | invokingState = -1;
|
976 | }
|
977 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
978 | this.parser = parser;
|
979 | this.ruleIndex = SOQLParser.RULE_name;
|
980 | return this;
|
981 | }
|
982 |
|
983 | NameContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
984 | NameContext.prototype.constructor = NameContext;
|
985 |
|
986 | NameContext.prototype.ID = function() {
|
987 | return this.getToken(SOQLParser.ID, 0);
|
988 | };
|
989 |
|
990 | NameContext.prototype.keywords_name_allowed = function() {
|
991 | return this.getTypedRuleContext(Keywords_name_allowedContext,0);
|
992 | };
|
993 |
|
994 | NameContext.prototype.date_formula_literal = function() {
|
995 | return this.getTypedRuleContext(Date_formula_literalContext,0);
|
996 | };
|
997 |
|
998 | NameContext.prototype.date_formula_n_literal_name = function() {
|
999 | return this.getTypedRuleContext(Date_formula_n_literal_nameContext,0);
|
1000 | };
|
1001 |
|
1002 | NameContext.prototype.function_name = function() {
|
1003 | return this.getTypedRuleContext(Function_nameContext,0);
|
1004 | };
|
1005 |
|
1006 | NameContext.prototype.enterRule = function(listener) {
|
1007 | if(listener instanceof SOQLListener ) {
|
1008 | listener.enterName(this);
|
1009 | }
|
1010 | };
|
1011 |
|
1012 | NameContext.prototype.exitRule = function(listener) {
|
1013 | if(listener instanceof SOQLListener ) {
|
1014 | listener.exitName(this);
|
1015 | }
|
1016 | };
|
1017 |
|
1018 |
|
1019 |
|
1020 |
|
1021 | SOQLParser.NameContext = NameContext;
|
1022 |
|
1023 | SOQLParser.prototype.name = function() {
|
1024 |
|
1025 | var localctx = new NameContext(this, this._ctx, this.state);
|
1026 | this.enterRule(localctx, 4, SOQLParser.RULE_name);
|
1027 | try {
|
1028 | this.state = 185;
|
1029 | this._errHandler.sync(this);
|
1030 | switch(this._input.LA(1)) {
|
1031 | case SOQLParser.ID:
|
1032 | this.enterOuterAlt(localctx, 1);
|
1033 | this.state = 180;
|
1034 | this.match(SOQLParser.ID);
|
1035 | break;
|
1036 | case SOQLParser.GROUP:
|
1037 | case SOQLParser.ABOVE:
|
1038 | case SOQLParser.ABOVE_OR_BELOW:
|
1039 | case SOQLParser.AT:
|
1040 | case SOQLParser.BELOW:
|
1041 | case SOQLParser.CATEGORY:
|
1042 | case SOQLParser.DATA:
|
1043 | case SOQLParser.END:
|
1044 | case SOQLParser.OFFSET:
|
1045 | case SOQLParser.ORDER:
|
1046 | case SOQLParser.REFERENCE:
|
1047 | case SOQLParser.SCOPE:
|
1048 | case SOQLParser.TRACKING:
|
1049 | case SOQLParser.THEN:
|
1050 | case SOQLParser.TYPEOF:
|
1051 | case SOQLParser.VIEW:
|
1052 | case SOQLParser.VIEWSTAT:
|
1053 | case SOQLParser.WHEN:
|
1054 | this.enterOuterAlt(localctx, 2);
|
1055 | this.state = 181;
|
1056 | this.keywords_name_allowed();
|
1057 | break;
|
1058 | case SOQLParser.YESTERDAY:
|
1059 | case SOQLParser.TODAY:
|
1060 | case SOQLParser.TOMORROW:
|
1061 | case SOQLParser.LAST_WEEK:
|
1062 | case SOQLParser.THIS_WEEK:
|
1063 | case SOQLParser.NEXT_WEEK:
|
1064 | case SOQLParser.LAST_MONTH:
|
1065 | case SOQLParser.THIS_MONTH:
|
1066 | case SOQLParser.NEXT_MONTH:
|
1067 | case SOQLParser.LAST_90_DAYS:
|
1068 | case SOQLParser.NEXT_90_DAYS:
|
1069 | case SOQLParser.THIS_QUARTER:
|
1070 | case SOQLParser.LAST_QUARTER:
|
1071 | case SOQLParser.NEXT_QUARTER:
|
1072 | case SOQLParser.THIS_YEAR:
|
1073 | case SOQLParser.LAST_YEAR:
|
1074 | case SOQLParser.NEXT_YEAR:
|
1075 | case SOQLParser.THIS_FISCAL_QUARTER:
|
1076 | case SOQLParser.LAST_FISCAL_QUARTER:
|
1077 | case SOQLParser.NEXT_FISCAL_QUARTER:
|
1078 | case SOQLParser.THIS_FISCAL_YEAR:
|
1079 | case SOQLParser.LAST_FISCAL_YEAR:
|
1080 | case SOQLParser.NEXT_FISCAL_YEAR:
|
1081 | this.enterOuterAlt(localctx, 3);
|
1082 | this.state = 182;
|
1083 | this.date_formula_literal();
|
1084 | break;
|
1085 | case SOQLParser.NEXT_N_DAYS:
|
1086 | case SOQLParser.LAST_N_DAYS:
|
1087 | case SOQLParser.N_DAYS_AGO:
|
1088 | case SOQLParser.NEXT_N_WEEKS:
|
1089 | case SOQLParser.LAST_N_WEEKS:
|
1090 | case SOQLParser.N_WEEKS_AGO:
|
1091 | case SOQLParser.NEXT_N_MONTHS:
|
1092 | case SOQLParser.LAST_N_MONTHS:
|
1093 | case SOQLParser.N_MONTHS_AGO:
|
1094 | case SOQLParser.NEXT_N_QUARTERS:
|
1095 | case SOQLParser.LAST_N_QUARTERS:
|
1096 | case SOQLParser.N_QUARTERS_AGO:
|
1097 | case SOQLParser.NEXT_N_YEARS:
|
1098 | case SOQLParser.LAST_N_YEARS:
|
1099 | case SOQLParser.N_YEARS_AGO:
|
1100 | case SOQLParser.NEXT_N_FISCAL_QUARTERS:
|
1101 | case SOQLParser.LAST_N_FISCAL_QUARTERS:
|
1102 | case SOQLParser.N_FISCAL_QUARTERS_AGO:
|
1103 | case SOQLParser.NEXT_N_FISCAL_YEARS:
|
1104 | case SOQLParser.LAST_N_FISCAL_YEARS:
|
1105 | case SOQLParser.N_FISCAL_YEARS_AGO:
|
1106 | this.enterOuterAlt(localctx, 4);
|
1107 | this.state = 183;
|
1108 | this.date_formula_n_literal_name();
|
1109 | break;
|
1110 | case SOQLParser.CALENDAR_MONTH:
|
1111 | case SOQLParser.CALENDAR_QUARTER:
|
1112 | case SOQLParser.CALENDAR_YEAR:
|
1113 | case SOQLParser.DAY_IN_MONTH:
|
1114 | case SOQLParser.DAY_IN_WEEK:
|
1115 | case SOQLParser.DAY_IN_YEAR:
|
1116 | case SOQLParser.DAY_ONLY:
|
1117 | case SOQLParser.FISCAL_MONTH:
|
1118 | case SOQLParser.FISCAL_QUARTER:
|
1119 | case SOQLParser.FISCAL_YEAR:
|
1120 | case SOQLParser.HOUR_IN_DAY:
|
1121 | case SOQLParser.WEEK_IN_MONTH:
|
1122 | case SOQLParser.WEEK_IN_YEAR:
|
1123 | case SOQLParser.AVG:
|
1124 | case SOQLParser.COUNT:
|
1125 | case SOQLParser.COUNT_DISTINCT:
|
1126 | case SOQLParser.MIN:
|
1127 | case SOQLParser.MAX:
|
1128 | case SOQLParser.SUM:
|
1129 | case SOQLParser.DISTANCE:
|
1130 | case SOQLParser.GEOLOCATION:
|
1131 | case SOQLParser.FORMAT:
|
1132 | case SOQLParser.TOLABEL:
|
1133 | case SOQLParser.CONVERT_TIME_ZONE:
|
1134 | case SOQLParser.CONVERT_CURRENCY:
|
1135 | case SOQLParser.GROUPING:
|
1136 | this.enterOuterAlt(localctx, 5);
|
1137 | this.state = 184;
|
1138 | this.function_name();
|
1139 | break;
|
1140 | default:
|
1141 | throw new antlr4.error.NoViableAltException(this);
|
1142 | }
|
1143 | } catch (re) {
|
1144 | if(re instanceof antlr4.error.RecognitionException) {
|
1145 | localctx.exception = re;
|
1146 | this._errHandler.reportError(this, re);
|
1147 | this._errHandler.recover(this, re);
|
1148 | } else {
|
1149 | throw re;
|
1150 | }
|
1151 | } finally {
|
1152 | this.exitRule();
|
1153 | }
|
1154 | return localctx;
|
1155 | };
|
1156 |
|
1157 | function Object_nameContext(parser, parent, invokingState) {
|
1158 | if(parent===undefined) {
|
1159 | parent = null;
|
1160 | }
|
1161 | if(invokingState===undefined || invokingState===null) {
|
1162 | invokingState = -1;
|
1163 | }
|
1164 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
1165 | this.parser = parser;
|
1166 | this.ruleIndex = SOQLParser.RULE_object_name;
|
1167 | return this;
|
1168 | }
|
1169 |
|
1170 | Object_nameContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
1171 | Object_nameContext.prototype.constructor = Object_nameContext;
|
1172 |
|
1173 | Object_nameContext.prototype.name = function() {
|
1174 | return this.getTypedRuleContext(NameContext,0);
|
1175 | };
|
1176 |
|
1177 | Object_nameContext.prototype.enterRule = function(listener) {
|
1178 | if(listener instanceof SOQLListener ) {
|
1179 | listener.enterObject_name(this);
|
1180 | }
|
1181 | };
|
1182 |
|
1183 | Object_nameContext.prototype.exitRule = function(listener) {
|
1184 | if(listener instanceof SOQLListener ) {
|
1185 | listener.exitObject_name(this);
|
1186 | }
|
1187 | };
|
1188 |
|
1189 |
|
1190 |
|
1191 |
|
1192 | SOQLParser.Object_nameContext = Object_nameContext;
|
1193 |
|
1194 | SOQLParser.prototype.object_name = function() {
|
1195 |
|
1196 | var localctx = new Object_nameContext(this, this._ctx, this.state);
|
1197 | this.enterRule(localctx, 6, SOQLParser.RULE_object_name);
|
1198 | try {
|
1199 | this.enterOuterAlt(localctx, 1);
|
1200 | this.state = 187;
|
1201 | this.name();
|
1202 | } catch (re) {
|
1203 | if(re instanceof antlr4.error.RecognitionException) {
|
1204 | localctx.exception = re;
|
1205 | this._errHandler.reportError(this, re);
|
1206 | this._errHandler.recover(this, re);
|
1207 | } else {
|
1208 | throw re;
|
1209 | }
|
1210 | } finally {
|
1211 | this.exitRule();
|
1212 | }
|
1213 | return localctx;
|
1214 | };
|
1215 |
|
1216 | function Field_nameContext(parser, parent, invokingState) {
|
1217 | if(parent===undefined) {
|
1218 | parent = null;
|
1219 | }
|
1220 | if(invokingState===undefined || invokingState===null) {
|
1221 | invokingState = -1;
|
1222 | }
|
1223 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
1224 | this.parser = parser;
|
1225 | this.ruleIndex = SOQLParser.RULE_field_name;
|
1226 | return this;
|
1227 | }
|
1228 |
|
1229 | Field_nameContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
1230 | Field_nameContext.prototype.constructor = Field_nameContext;
|
1231 |
|
1232 | Field_nameContext.prototype.name = function() {
|
1233 | return this.getTypedRuleContext(NameContext,0);
|
1234 | };
|
1235 |
|
1236 | Field_nameContext.prototype.enterRule = function(listener) {
|
1237 | if(listener instanceof SOQLListener ) {
|
1238 | listener.enterField_name(this);
|
1239 | }
|
1240 | };
|
1241 |
|
1242 | Field_nameContext.prototype.exitRule = function(listener) {
|
1243 | if(listener instanceof SOQLListener ) {
|
1244 | listener.exitField_name(this);
|
1245 | }
|
1246 | };
|
1247 |
|
1248 |
|
1249 |
|
1250 |
|
1251 | SOQLParser.Field_nameContext = Field_nameContext;
|
1252 |
|
1253 | SOQLParser.prototype.field_name = function() {
|
1254 |
|
1255 | var localctx = new Field_nameContext(this, this._ctx, this.state);
|
1256 | this.enterRule(localctx, 8, SOQLParser.RULE_field_name);
|
1257 | try {
|
1258 | this.enterOuterAlt(localctx, 1);
|
1259 | this.state = 189;
|
1260 | this.name();
|
1261 | } catch (re) {
|
1262 | if(re instanceof antlr4.error.RecognitionException) {
|
1263 | localctx.exception = re;
|
1264 | this._errHandler.reportError(this, re);
|
1265 | this._errHandler.recover(this, re);
|
1266 | } else {
|
1267 | throw re;
|
1268 | }
|
1269 | } finally {
|
1270 | this.exitRule();
|
1271 | }
|
1272 | return localctx;
|
1273 | };
|
1274 |
|
1275 | function Filter_scope_nameContext(parser, parent, invokingState) {
|
1276 | if(parent===undefined) {
|
1277 | parent = null;
|
1278 | }
|
1279 | if(invokingState===undefined || invokingState===null) {
|
1280 | invokingState = -1;
|
1281 | }
|
1282 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
1283 | this.parser = parser;
|
1284 | this.ruleIndex = SOQLParser.RULE_filter_scope_name;
|
1285 | return this;
|
1286 | }
|
1287 |
|
1288 | Filter_scope_nameContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
1289 | Filter_scope_nameContext.prototype.constructor = Filter_scope_nameContext;
|
1290 |
|
1291 | Filter_scope_nameContext.prototype.name = function() {
|
1292 | return this.getTypedRuleContext(NameContext,0);
|
1293 | };
|
1294 |
|
1295 | Filter_scope_nameContext.prototype.enterRule = function(listener) {
|
1296 | if(listener instanceof SOQLListener ) {
|
1297 | listener.enterFilter_scope_name(this);
|
1298 | }
|
1299 | };
|
1300 |
|
1301 | Filter_scope_nameContext.prototype.exitRule = function(listener) {
|
1302 | if(listener instanceof SOQLListener ) {
|
1303 | listener.exitFilter_scope_name(this);
|
1304 | }
|
1305 | };
|
1306 |
|
1307 |
|
1308 |
|
1309 |
|
1310 | SOQLParser.Filter_scope_nameContext = Filter_scope_nameContext;
|
1311 |
|
1312 | SOQLParser.prototype.filter_scope_name = function() {
|
1313 |
|
1314 | var localctx = new Filter_scope_nameContext(this, this._ctx, this.state);
|
1315 | this.enterRule(localctx, 10, SOQLParser.RULE_filter_scope_name);
|
1316 | try {
|
1317 | this.enterOuterAlt(localctx, 1);
|
1318 | this.state = 191;
|
1319 | this.name();
|
1320 | } catch (re) {
|
1321 | if(re instanceof antlr4.error.RecognitionException) {
|
1322 | localctx.exception = re;
|
1323 | this._errHandler.reportError(this, re);
|
1324 | this._errHandler.recover(this, re);
|
1325 | } else {
|
1326 | throw re;
|
1327 | }
|
1328 | } finally {
|
1329 | this.exitRule();
|
1330 | }
|
1331 | return localctx;
|
1332 | };
|
1333 |
|
1334 | function Data_category_group_nameContext(parser, parent, invokingState) {
|
1335 | if(parent===undefined) {
|
1336 | parent = null;
|
1337 | }
|
1338 | if(invokingState===undefined || invokingState===null) {
|
1339 | invokingState = -1;
|
1340 | }
|
1341 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
1342 | this.parser = parser;
|
1343 | this.ruleIndex = SOQLParser.RULE_data_category_group_name;
|
1344 | return this;
|
1345 | }
|
1346 |
|
1347 | Data_category_group_nameContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
1348 | Data_category_group_nameContext.prototype.constructor = Data_category_group_nameContext;
|
1349 |
|
1350 | Data_category_group_nameContext.prototype.name = function() {
|
1351 | return this.getTypedRuleContext(NameContext,0);
|
1352 | };
|
1353 |
|
1354 | Data_category_group_nameContext.prototype.enterRule = function(listener) {
|
1355 | if(listener instanceof SOQLListener ) {
|
1356 | listener.enterData_category_group_name(this);
|
1357 | }
|
1358 | };
|
1359 |
|
1360 | Data_category_group_nameContext.prototype.exitRule = function(listener) {
|
1361 | if(listener instanceof SOQLListener ) {
|
1362 | listener.exitData_category_group_name(this);
|
1363 | }
|
1364 | };
|
1365 |
|
1366 |
|
1367 |
|
1368 |
|
1369 | SOQLParser.Data_category_group_nameContext = Data_category_group_nameContext;
|
1370 |
|
1371 | SOQLParser.prototype.data_category_group_name = function() {
|
1372 |
|
1373 | var localctx = new Data_category_group_nameContext(this, this._ctx, this.state);
|
1374 | this.enterRule(localctx, 12, SOQLParser.RULE_data_category_group_name);
|
1375 | try {
|
1376 | this.enterOuterAlt(localctx, 1);
|
1377 | this.state = 193;
|
1378 | this.name();
|
1379 | } catch (re) {
|
1380 | if(re instanceof antlr4.error.RecognitionException) {
|
1381 | localctx.exception = re;
|
1382 | this._errHandler.reportError(this, re);
|
1383 | this._errHandler.recover(this, re);
|
1384 | } else {
|
1385 | throw re;
|
1386 | }
|
1387 | } finally {
|
1388 | this.exitRule();
|
1389 | }
|
1390 | return localctx;
|
1391 | };
|
1392 |
|
1393 | function Data_category_nameContext(parser, parent, invokingState) {
|
1394 | if(parent===undefined) {
|
1395 | parent = null;
|
1396 | }
|
1397 | if(invokingState===undefined || invokingState===null) {
|
1398 | invokingState = -1;
|
1399 | }
|
1400 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
1401 | this.parser = parser;
|
1402 | this.ruleIndex = SOQLParser.RULE_data_category_name;
|
1403 | return this;
|
1404 | }
|
1405 |
|
1406 | Data_category_nameContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
1407 | Data_category_nameContext.prototype.constructor = Data_category_nameContext;
|
1408 |
|
1409 | Data_category_nameContext.prototype.name = function() {
|
1410 | return this.getTypedRuleContext(NameContext,0);
|
1411 | };
|
1412 |
|
1413 | Data_category_nameContext.prototype.enterRule = function(listener) {
|
1414 | if(listener instanceof SOQLListener ) {
|
1415 | listener.enterData_category_name(this);
|
1416 | }
|
1417 | };
|
1418 |
|
1419 | Data_category_nameContext.prototype.exitRule = function(listener) {
|
1420 | if(listener instanceof SOQLListener ) {
|
1421 | listener.exitData_category_name(this);
|
1422 | }
|
1423 | };
|
1424 |
|
1425 |
|
1426 |
|
1427 |
|
1428 | SOQLParser.Data_category_nameContext = Data_category_nameContext;
|
1429 |
|
1430 | SOQLParser.prototype.data_category_name = function() {
|
1431 |
|
1432 | var localctx = new Data_category_nameContext(this, this._ctx, this.state);
|
1433 | this.enterRule(localctx, 14, SOQLParser.RULE_data_category_name);
|
1434 | try {
|
1435 | this.enterOuterAlt(localctx, 1);
|
1436 | this.state = 195;
|
1437 | this.name();
|
1438 | } catch (re) {
|
1439 | if(re instanceof antlr4.error.RecognitionException) {
|
1440 | localctx.exception = re;
|
1441 | this._errHandler.reportError(this, re);
|
1442 | this._errHandler.recover(this, re);
|
1443 | } else {
|
1444 | throw re;
|
1445 | }
|
1446 | } finally {
|
1447 | this.exitRule();
|
1448 | }
|
1449 | return localctx;
|
1450 | };
|
1451 |
|
1452 | function Alias_nameContext(parser, parent, invokingState) {
|
1453 | if(parent===undefined) {
|
1454 | parent = null;
|
1455 | }
|
1456 | if(invokingState===undefined || invokingState===null) {
|
1457 | invokingState = -1;
|
1458 | }
|
1459 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
1460 | this.parser = parser;
|
1461 | this.ruleIndex = SOQLParser.RULE_alias_name;
|
1462 | return this;
|
1463 | }
|
1464 |
|
1465 | Alias_nameContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
1466 | Alias_nameContext.prototype.constructor = Alias_nameContext;
|
1467 |
|
1468 | Alias_nameContext.prototype.ID = function() {
|
1469 | return this.getToken(SOQLParser.ID, 0);
|
1470 | };
|
1471 |
|
1472 | Alias_nameContext.prototype.keywords_alias_allowed = function() {
|
1473 | return this.getTypedRuleContext(Keywords_alias_allowedContext,0);
|
1474 | };
|
1475 |
|
1476 | Alias_nameContext.prototype.date_formula_literal = function() {
|
1477 | return this.getTypedRuleContext(Date_formula_literalContext,0);
|
1478 | };
|
1479 |
|
1480 | Alias_nameContext.prototype.date_formula_n_literal_name = function() {
|
1481 | return this.getTypedRuleContext(Date_formula_n_literal_nameContext,0);
|
1482 | };
|
1483 |
|
1484 | Alias_nameContext.prototype.function_name = function() {
|
1485 | return this.getTypedRuleContext(Function_nameContext,0);
|
1486 | };
|
1487 |
|
1488 | Alias_nameContext.prototype.enterRule = function(listener) {
|
1489 | if(listener instanceof SOQLListener ) {
|
1490 | listener.enterAlias_name(this);
|
1491 | }
|
1492 | };
|
1493 |
|
1494 | Alias_nameContext.prototype.exitRule = function(listener) {
|
1495 | if(listener instanceof SOQLListener ) {
|
1496 | listener.exitAlias_name(this);
|
1497 | }
|
1498 | };
|
1499 |
|
1500 |
|
1501 |
|
1502 |
|
1503 | SOQLParser.Alias_nameContext = Alias_nameContext;
|
1504 |
|
1505 | SOQLParser.prototype.alias_name = function() {
|
1506 |
|
1507 | var localctx = new Alias_nameContext(this, this._ctx, this.state);
|
1508 | this.enterRule(localctx, 16, SOQLParser.RULE_alias_name);
|
1509 | try {
|
1510 | this.state = 202;
|
1511 | this._errHandler.sync(this);
|
1512 | switch(this._input.LA(1)) {
|
1513 | case SOQLParser.ID:
|
1514 | this.enterOuterAlt(localctx, 1);
|
1515 | this.state = 197;
|
1516 | this.match(SOQLParser.ID);
|
1517 | break;
|
1518 | case SOQLParser.ABOVE:
|
1519 | case SOQLParser.ABOVE_OR_BELOW:
|
1520 | case SOQLParser.AT:
|
1521 | case SOQLParser.BELOW:
|
1522 | case SOQLParser.CATEGORY:
|
1523 | case SOQLParser.DATA:
|
1524 | case SOQLParser.END:
|
1525 | case SOQLParser.OFFSET:
|
1526 | case SOQLParser.ORDER:
|
1527 | case SOQLParser.REFERENCE:
|
1528 | case SOQLParser.SCOPE:
|
1529 | case SOQLParser.TRACKING:
|
1530 | case SOQLParser.THEN:
|
1531 | case SOQLParser.TYPEOF:
|
1532 | case SOQLParser.VIEW:
|
1533 | case SOQLParser.VIEWSTAT:
|
1534 | case SOQLParser.WHEN:
|
1535 | this.enterOuterAlt(localctx, 2);
|
1536 | this.state = 198;
|
1537 | this.keywords_alias_allowed();
|
1538 | break;
|
1539 | case SOQLParser.YESTERDAY:
|
1540 | case SOQLParser.TODAY:
|
1541 | case SOQLParser.TOMORROW:
|
1542 | case SOQLParser.LAST_WEEK:
|
1543 | case SOQLParser.THIS_WEEK:
|
1544 | case SOQLParser.NEXT_WEEK:
|
1545 | case SOQLParser.LAST_MONTH:
|
1546 | case SOQLParser.THIS_MONTH:
|
1547 | case SOQLParser.NEXT_MONTH:
|
1548 | case SOQLParser.LAST_90_DAYS:
|
1549 | case SOQLParser.NEXT_90_DAYS:
|
1550 | case SOQLParser.THIS_QUARTER:
|
1551 | case SOQLParser.LAST_QUARTER:
|
1552 | case SOQLParser.NEXT_QUARTER:
|
1553 | case SOQLParser.THIS_YEAR:
|
1554 | case SOQLParser.LAST_YEAR:
|
1555 | case SOQLParser.NEXT_YEAR:
|
1556 | case SOQLParser.THIS_FISCAL_QUARTER:
|
1557 | case SOQLParser.LAST_FISCAL_QUARTER:
|
1558 | case SOQLParser.NEXT_FISCAL_QUARTER:
|
1559 | case SOQLParser.THIS_FISCAL_YEAR:
|
1560 | case SOQLParser.LAST_FISCAL_YEAR:
|
1561 | case SOQLParser.NEXT_FISCAL_YEAR:
|
1562 | this.enterOuterAlt(localctx, 3);
|
1563 | this.state = 199;
|
1564 | this.date_formula_literal();
|
1565 | break;
|
1566 | case SOQLParser.NEXT_N_DAYS:
|
1567 | case SOQLParser.LAST_N_DAYS:
|
1568 | case SOQLParser.N_DAYS_AGO:
|
1569 | case SOQLParser.NEXT_N_WEEKS:
|
1570 | case SOQLParser.LAST_N_WEEKS:
|
1571 | case SOQLParser.N_WEEKS_AGO:
|
1572 | case SOQLParser.NEXT_N_MONTHS:
|
1573 | case SOQLParser.LAST_N_MONTHS:
|
1574 | case SOQLParser.N_MONTHS_AGO:
|
1575 | case SOQLParser.NEXT_N_QUARTERS:
|
1576 | case SOQLParser.LAST_N_QUARTERS:
|
1577 | case SOQLParser.N_QUARTERS_AGO:
|
1578 | case SOQLParser.NEXT_N_YEARS:
|
1579 | case SOQLParser.LAST_N_YEARS:
|
1580 | case SOQLParser.N_YEARS_AGO:
|
1581 | case SOQLParser.NEXT_N_FISCAL_QUARTERS:
|
1582 | case SOQLParser.LAST_N_FISCAL_QUARTERS:
|
1583 | case SOQLParser.N_FISCAL_QUARTERS_AGO:
|
1584 | case SOQLParser.NEXT_N_FISCAL_YEARS:
|
1585 | case SOQLParser.LAST_N_FISCAL_YEARS:
|
1586 | case SOQLParser.N_FISCAL_YEARS_AGO:
|
1587 | this.enterOuterAlt(localctx, 4);
|
1588 | this.state = 200;
|
1589 | this.date_formula_n_literal_name();
|
1590 | break;
|
1591 | case SOQLParser.CALENDAR_MONTH:
|
1592 | case SOQLParser.CALENDAR_QUARTER:
|
1593 | case SOQLParser.CALENDAR_YEAR:
|
1594 | case SOQLParser.DAY_IN_MONTH:
|
1595 | case SOQLParser.DAY_IN_WEEK:
|
1596 | case SOQLParser.DAY_IN_YEAR:
|
1597 | case SOQLParser.DAY_ONLY:
|
1598 | case SOQLParser.FISCAL_MONTH:
|
1599 | case SOQLParser.FISCAL_QUARTER:
|
1600 | case SOQLParser.FISCAL_YEAR:
|
1601 | case SOQLParser.HOUR_IN_DAY:
|
1602 | case SOQLParser.WEEK_IN_MONTH:
|
1603 | case SOQLParser.WEEK_IN_YEAR:
|
1604 | case SOQLParser.AVG:
|
1605 | case SOQLParser.COUNT:
|
1606 | case SOQLParser.COUNT_DISTINCT:
|
1607 | case SOQLParser.MIN:
|
1608 | case SOQLParser.MAX:
|
1609 | case SOQLParser.SUM:
|
1610 | case SOQLParser.DISTANCE:
|
1611 | case SOQLParser.GEOLOCATION:
|
1612 | case SOQLParser.FORMAT:
|
1613 | case SOQLParser.TOLABEL:
|
1614 | case SOQLParser.CONVERT_TIME_ZONE:
|
1615 | case SOQLParser.CONVERT_CURRENCY:
|
1616 | case SOQLParser.GROUPING:
|
1617 | this.enterOuterAlt(localctx, 5);
|
1618 | this.state = 201;
|
1619 | this.function_name();
|
1620 | break;
|
1621 | default:
|
1622 | throw new antlr4.error.NoViableAltException(this);
|
1623 | }
|
1624 | } catch (re) {
|
1625 | if(re instanceof antlr4.error.RecognitionException) {
|
1626 | localctx.exception = re;
|
1627 | this._errHandler.reportError(this, re);
|
1628 | this._errHandler.recover(this, re);
|
1629 | } else {
|
1630 | throw re;
|
1631 | }
|
1632 | } finally {
|
1633 | this.exitRule();
|
1634 | }
|
1635 | return localctx;
|
1636 | };
|
1637 |
|
1638 | function AliasContext(parser, parent, invokingState) {
|
1639 | if(parent===undefined) {
|
1640 | parent = null;
|
1641 | }
|
1642 | if(invokingState===undefined || invokingState===null) {
|
1643 | invokingState = -1;
|
1644 | }
|
1645 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
1646 | this.parser = parser;
|
1647 | this.ruleIndex = SOQLParser.RULE_alias;
|
1648 | return this;
|
1649 | }
|
1650 |
|
1651 | AliasContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
1652 | AliasContext.prototype.constructor = AliasContext;
|
1653 |
|
1654 | AliasContext.prototype.alias_name = function() {
|
1655 | return this.getTypedRuleContext(Alias_nameContext,0);
|
1656 | };
|
1657 |
|
1658 | AliasContext.prototype.AS = function() {
|
1659 | return this.getToken(SOQLParser.AS, 0);
|
1660 | };
|
1661 |
|
1662 | AliasContext.prototype.enterRule = function(listener) {
|
1663 | if(listener instanceof SOQLListener ) {
|
1664 | listener.enterAlias(this);
|
1665 | }
|
1666 | };
|
1667 |
|
1668 | AliasContext.prototype.exitRule = function(listener) {
|
1669 | if(listener instanceof SOQLListener ) {
|
1670 | listener.exitAlias(this);
|
1671 | }
|
1672 | };
|
1673 |
|
1674 |
|
1675 |
|
1676 |
|
1677 | SOQLParser.AliasContext = AliasContext;
|
1678 |
|
1679 | SOQLParser.prototype.alias = function() {
|
1680 |
|
1681 | var localctx = new AliasContext(this, this._ctx, this.state);
|
1682 | this.enterRule(localctx, 18, SOQLParser.RULE_alias);
|
1683 | var _la = 0;
|
1684 | try {
|
1685 | this.enterOuterAlt(localctx, 1);
|
1686 | this.state = 205;
|
1687 | this._errHandler.sync(this);
|
1688 | _la = this._input.LA(1);
|
1689 | if(_la===SOQLParser.AS) {
|
1690 | this.state = 204;
|
1691 | this.match(SOQLParser.AS);
|
1692 | }
|
1693 |
|
1694 | this.state = 207;
|
1695 | this.alias_name();
|
1696 | } catch (re) {
|
1697 | if(re instanceof antlr4.error.RecognitionException) {
|
1698 | localctx.exception = re;
|
1699 | this._errHandler.reportError(this, re);
|
1700 | this._errHandler.recover(this, re);
|
1701 | } else {
|
1702 | throw re;
|
1703 | }
|
1704 | } finally {
|
1705 | this.exitRule();
|
1706 | }
|
1707 | return localctx;
|
1708 | };
|
1709 |
|
1710 | function LiteralContext(parser, parent, invokingState) {
|
1711 | if(parent===undefined) {
|
1712 | parent = null;
|
1713 | }
|
1714 | if(invokingState===undefined || invokingState===null) {
|
1715 | invokingState = -1;
|
1716 | }
|
1717 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
1718 | this.parser = parser;
|
1719 | this.ruleIndex = SOQLParser.RULE_literal;
|
1720 | return this;
|
1721 | }
|
1722 |
|
1723 | LiteralContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
1724 | LiteralContext.prototype.constructor = LiteralContext;
|
1725 |
|
1726 | LiteralContext.prototype.date_formula_literal = function() {
|
1727 | return this.getTypedRuleContext(Date_formula_literalContext,0);
|
1728 | };
|
1729 |
|
1730 | LiteralContext.prototype.date_formula_n_literal = function() {
|
1731 | return this.getTypedRuleContext(Date_formula_n_literalContext,0);
|
1732 | };
|
1733 |
|
1734 | LiteralContext.prototype.datetime_literal = function() {
|
1735 | return this.getTypedRuleContext(Datetime_literalContext,0);
|
1736 | };
|
1737 |
|
1738 | LiteralContext.prototype.date_literal = function() {
|
1739 | return this.getTypedRuleContext(Date_literalContext,0);
|
1740 | };
|
1741 |
|
1742 | LiteralContext.prototype.integer_literal = function() {
|
1743 | return this.getTypedRuleContext(Integer_literalContext,0);
|
1744 | };
|
1745 |
|
1746 | LiteralContext.prototype.real_literal = function() {
|
1747 | return this.getTypedRuleContext(Real_literalContext,0);
|
1748 | };
|
1749 |
|
1750 | LiteralContext.prototype.string_literal = function() {
|
1751 | return this.getTypedRuleContext(String_literalContext,0);
|
1752 | };
|
1753 |
|
1754 | LiteralContext.prototype.boolean_literal = function() {
|
1755 | return this.getTypedRuleContext(Boolean_literalContext,0);
|
1756 | };
|
1757 |
|
1758 | LiteralContext.prototype.null_literal = function() {
|
1759 | return this.getTypedRuleContext(Null_literalContext,0);
|
1760 | };
|
1761 |
|
1762 | LiteralContext.prototype.enterRule = function(listener) {
|
1763 | if(listener instanceof SOQLListener ) {
|
1764 | listener.enterLiteral(this);
|
1765 | }
|
1766 | };
|
1767 |
|
1768 | LiteralContext.prototype.exitRule = function(listener) {
|
1769 | if(listener instanceof SOQLListener ) {
|
1770 | listener.exitLiteral(this);
|
1771 | }
|
1772 | };
|
1773 |
|
1774 |
|
1775 |
|
1776 |
|
1777 | SOQLParser.LiteralContext = LiteralContext;
|
1778 |
|
1779 | SOQLParser.prototype.literal = function() {
|
1780 |
|
1781 | var localctx = new LiteralContext(this, this._ctx, this.state);
|
1782 | this.enterRule(localctx, 20, SOQLParser.RULE_literal);
|
1783 | try {
|
1784 | this.state = 218;
|
1785 | this._errHandler.sync(this);
|
1786 | switch(this._input.LA(1)) {
|
1787 | case SOQLParser.YESTERDAY:
|
1788 | case SOQLParser.TODAY:
|
1789 | case SOQLParser.TOMORROW:
|
1790 | case SOQLParser.LAST_WEEK:
|
1791 | case SOQLParser.THIS_WEEK:
|
1792 | case SOQLParser.NEXT_WEEK:
|
1793 | case SOQLParser.LAST_MONTH:
|
1794 | case SOQLParser.THIS_MONTH:
|
1795 | case SOQLParser.NEXT_MONTH:
|
1796 | case SOQLParser.LAST_90_DAYS:
|
1797 | case SOQLParser.NEXT_90_DAYS:
|
1798 | case SOQLParser.THIS_QUARTER:
|
1799 | case SOQLParser.LAST_QUARTER:
|
1800 | case SOQLParser.NEXT_QUARTER:
|
1801 | case SOQLParser.THIS_YEAR:
|
1802 | case SOQLParser.LAST_YEAR:
|
1803 | case SOQLParser.NEXT_YEAR:
|
1804 | case SOQLParser.THIS_FISCAL_QUARTER:
|
1805 | case SOQLParser.LAST_FISCAL_QUARTER:
|
1806 | case SOQLParser.NEXT_FISCAL_QUARTER:
|
1807 | case SOQLParser.THIS_FISCAL_YEAR:
|
1808 | case SOQLParser.LAST_FISCAL_YEAR:
|
1809 | case SOQLParser.NEXT_FISCAL_YEAR:
|
1810 | this.enterOuterAlt(localctx, 1);
|
1811 | this.state = 209;
|
1812 | this.date_formula_literal();
|
1813 | break;
|
1814 | case SOQLParser.NEXT_N_DAYS:
|
1815 | case SOQLParser.LAST_N_DAYS:
|
1816 | case SOQLParser.N_DAYS_AGO:
|
1817 | case SOQLParser.NEXT_N_WEEKS:
|
1818 | case SOQLParser.LAST_N_WEEKS:
|
1819 | case SOQLParser.N_WEEKS_AGO:
|
1820 | case SOQLParser.NEXT_N_MONTHS:
|
1821 | case SOQLParser.LAST_N_MONTHS:
|
1822 | case SOQLParser.N_MONTHS_AGO:
|
1823 | case SOQLParser.NEXT_N_QUARTERS:
|
1824 | case SOQLParser.LAST_N_QUARTERS:
|
1825 | case SOQLParser.N_QUARTERS_AGO:
|
1826 | case SOQLParser.NEXT_N_YEARS:
|
1827 | case SOQLParser.LAST_N_YEARS:
|
1828 | case SOQLParser.N_YEARS_AGO:
|
1829 | case SOQLParser.NEXT_N_FISCAL_QUARTERS:
|
1830 | case SOQLParser.LAST_N_FISCAL_QUARTERS:
|
1831 | case SOQLParser.N_FISCAL_QUARTERS_AGO:
|
1832 | case SOQLParser.NEXT_N_FISCAL_YEARS:
|
1833 | case SOQLParser.LAST_N_FISCAL_YEARS:
|
1834 | case SOQLParser.N_FISCAL_YEARS_AGO:
|
1835 | this.enterOuterAlt(localctx, 2);
|
1836 | this.state = 210;
|
1837 | this.date_formula_n_literal();
|
1838 | break;
|
1839 | case SOQLParser.DATETIME:
|
1840 | this.enterOuterAlt(localctx, 3);
|
1841 | this.state = 211;
|
1842 | this.datetime_literal();
|
1843 | break;
|
1844 | case SOQLParser.DATE:
|
1845 | this.enterOuterAlt(localctx, 4);
|
1846 | this.state = 212;
|
1847 | this.date_literal();
|
1848 | break;
|
1849 | case SOQLParser.UNSIGNED_INTEGER:
|
1850 | case SOQLParser.SIGNED_INTEGER:
|
1851 | this.enterOuterAlt(localctx, 5);
|
1852 | this.state = 213;
|
1853 | this.integer_literal();
|
1854 | break;
|
1855 | case SOQLParser.REAL_NUMBER:
|
1856 | this.enterOuterAlt(localctx, 6);
|
1857 | this.state = 214;
|
1858 | this.real_literal();
|
1859 | break;
|
1860 | case SOQLParser.STRING_VALUE:
|
1861 | this.enterOuterAlt(localctx, 7);
|
1862 | this.state = 215;
|
1863 | this.string_literal();
|
1864 | break;
|
1865 | case SOQLParser.FALSE:
|
1866 | case SOQLParser.TRUE:
|
1867 | this.enterOuterAlt(localctx, 8);
|
1868 | this.state = 216;
|
1869 | this.boolean_literal();
|
1870 | break;
|
1871 | case SOQLParser.NULL:
|
1872 | this.enterOuterAlt(localctx, 9);
|
1873 | this.state = 217;
|
1874 | this.null_literal();
|
1875 | break;
|
1876 | default:
|
1877 | throw new antlr4.error.NoViableAltException(this);
|
1878 | }
|
1879 | } catch (re) {
|
1880 | if(re instanceof antlr4.error.RecognitionException) {
|
1881 | localctx.exception = re;
|
1882 | this._errHandler.reportError(this, re);
|
1883 | this._errHandler.recover(this, re);
|
1884 | } else {
|
1885 | throw re;
|
1886 | }
|
1887 | } finally {
|
1888 | this.exitRule();
|
1889 | }
|
1890 | return localctx;
|
1891 | };
|
1892 |
|
1893 | function Date_formula_literalContext(parser, parent, invokingState) {
|
1894 | if(parent===undefined) {
|
1895 | parent = null;
|
1896 | }
|
1897 | if(invokingState===undefined || invokingState===null) {
|
1898 | invokingState = -1;
|
1899 | }
|
1900 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
1901 | this.parser = parser;
|
1902 | this.ruleIndex = SOQLParser.RULE_date_formula_literal;
|
1903 | return this;
|
1904 | }
|
1905 |
|
1906 | Date_formula_literalContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
1907 | Date_formula_literalContext.prototype.constructor = Date_formula_literalContext;
|
1908 |
|
1909 | Date_formula_literalContext.prototype.YESTERDAY = function() {
|
1910 | return this.getToken(SOQLParser.YESTERDAY, 0);
|
1911 | };
|
1912 |
|
1913 | Date_formula_literalContext.prototype.TODAY = function() {
|
1914 | return this.getToken(SOQLParser.TODAY, 0);
|
1915 | };
|
1916 |
|
1917 | Date_formula_literalContext.prototype.TOMORROW = function() {
|
1918 | return this.getToken(SOQLParser.TOMORROW, 0);
|
1919 | };
|
1920 |
|
1921 | Date_formula_literalContext.prototype.LAST_WEEK = function() {
|
1922 | return this.getToken(SOQLParser.LAST_WEEK, 0);
|
1923 | };
|
1924 |
|
1925 | Date_formula_literalContext.prototype.THIS_WEEK = function() {
|
1926 | return this.getToken(SOQLParser.THIS_WEEK, 0);
|
1927 | };
|
1928 |
|
1929 | Date_formula_literalContext.prototype.NEXT_WEEK = function() {
|
1930 | return this.getToken(SOQLParser.NEXT_WEEK, 0);
|
1931 | };
|
1932 |
|
1933 | Date_formula_literalContext.prototype.LAST_MONTH = function() {
|
1934 | return this.getToken(SOQLParser.LAST_MONTH, 0);
|
1935 | };
|
1936 |
|
1937 | Date_formula_literalContext.prototype.THIS_MONTH = function() {
|
1938 | return this.getToken(SOQLParser.THIS_MONTH, 0);
|
1939 | };
|
1940 |
|
1941 | Date_formula_literalContext.prototype.NEXT_MONTH = function() {
|
1942 | return this.getToken(SOQLParser.NEXT_MONTH, 0);
|
1943 | };
|
1944 |
|
1945 | Date_formula_literalContext.prototype.LAST_90_DAYS = function() {
|
1946 | return this.getToken(SOQLParser.LAST_90_DAYS, 0);
|
1947 | };
|
1948 |
|
1949 | Date_formula_literalContext.prototype.NEXT_90_DAYS = function() {
|
1950 | return this.getToken(SOQLParser.NEXT_90_DAYS, 0);
|
1951 | };
|
1952 |
|
1953 | Date_formula_literalContext.prototype.THIS_QUARTER = function() {
|
1954 | return this.getToken(SOQLParser.THIS_QUARTER, 0);
|
1955 | };
|
1956 |
|
1957 | Date_formula_literalContext.prototype.LAST_QUARTER = function() {
|
1958 | return this.getToken(SOQLParser.LAST_QUARTER, 0);
|
1959 | };
|
1960 |
|
1961 | Date_formula_literalContext.prototype.NEXT_QUARTER = function() {
|
1962 | return this.getToken(SOQLParser.NEXT_QUARTER, 0);
|
1963 | };
|
1964 |
|
1965 | Date_formula_literalContext.prototype.THIS_YEAR = function() {
|
1966 | return this.getToken(SOQLParser.THIS_YEAR, 0);
|
1967 | };
|
1968 |
|
1969 | Date_formula_literalContext.prototype.LAST_YEAR = function() {
|
1970 | return this.getToken(SOQLParser.LAST_YEAR, 0);
|
1971 | };
|
1972 |
|
1973 | Date_formula_literalContext.prototype.NEXT_YEAR = function() {
|
1974 | return this.getToken(SOQLParser.NEXT_YEAR, 0);
|
1975 | };
|
1976 |
|
1977 | Date_formula_literalContext.prototype.THIS_FISCAL_QUARTER = function() {
|
1978 | return this.getToken(SOQLParser.THIS_FISCAL_QUARTER, 0);
|
1979 | };
|
1980 |
|
1981 | Date_formula_literalContext.prototype.LAST_FISCAL_QUARTER = function() {
|
1982 | return this.getToken(SOQLParser.LAST_FISCAL_QUARTER, 0);
|
1983 | };
|
1984 |
|
1985 | Date_formula_literalContext.prototype.NEXT_FISCAL_QUARTER = function() {
|
1986 | return this.getToken(SOQLParser.NEXT_FISCAL_QUARTER, 0);
|
1987 | };
|
1988 |
|
1989 | Date_formula_literalContext.prototype.THIS_FISCAL_YEAR = function() {
|
1990 | return this.getToken(SOQLParser.THIS_FISCAL_YEAR, 0);
|
1991 | };
|
1992 |
|
1993 | Date_formula_literalContext.prototype.LAST_FISCAL_YEAR = function() {
|
1994 | return this.getToken(SOQLParser.LAST_FISCAL_YEAR, 0);
|
1995 | };
|
1996 |
|
1997 | Date_formula_literalContext.prototype.NEXT_FISCAL_YEAR = function() {
|
1998 | return this.getToken(SOQLParser.NEXT_FISCAL_YEAR, 0);
|
1999 | };
|
2000 |
|
2001 | Date_formula_literalContext.prototype.enterRule = function(listener) {
|
2002 | if(listener instanceof SOQLListener ) {
|
2003 | listener.enterDate_formula_literal(this);
|
2004 | }
|
2005 | };
|
2006 |
|
2007 | Date_formula_literalContext.prototype.exitRule = function(listener) {
|
2008 | if(listener instanceof SOQLListener ) {
|
2009 | listener.exitDate_formula_literal(this);
|
2010 | }
|
2011 | };
|
2012 |
|
2013 |
|
2014 |
|
2015 |
|
2016 | SOQLParser.Date_formula_literalContext = Date_formula_literalContext;
|
2017 |
|
2018 | SOQLParser.prototype.date_formula_literal = function() {
|
2019 |
|
2020 | var localctx = new Date_formula_literalContext(this, this._ctx, this.state);
|
2021 | this.enterRule(localctx, 22, SOQLParser.RULE_date_formula_literal);
|
2022 | var _la = 0;
|
2023 | try {
|
2024 | this.enterOuterAlt(localctx, 1);
|
2025 | this.state = 220;
|
2026 | _la = this._input.LA(1);
|
2027 | if(!(((((_la - 77)) & ~0x1f) == 0 && ((1 << (_la - 77)) & ((1 << (SOQLParser.YESTERDAY - 77)) | (1 << (SOQLParser.TODAY - 77)) | (1 << (SOQLParser.TOMORROW - 77)) | (1 << (SOQLParser.LAST_WEEK - 77)) | (1 << (SOQLParser.THIS_WEEK - 77)) | (1 << (SOQLParser.NEXT_WEEK - 77)) | (1 << (SOQLParser.LAST_MONTH - 77)) | (1 << (SOQLParser.THIS_MONTH - 77)) | (1 << (SOQLParser.NEXT_MONTH - 77)) | (1 << (SOQLParser.LAST_90_DAYS - 77)) | (1 << (SOQLParser.NEXT_90_DAYS - 77)) | (1 << (SOQLParser.THIS_QUARTER - 77)) | (1 << (SOQLParser.LAST_QUARTER - 77)) | (1 << (SOQLParser.NEXT_QUARTER - 77)) | (1 << (SOQLParser.THIS_YEAR - 77)) | (1 << (SOQLParser.LAST_YEAR - 77)) | (1 << (SOQLParser.NEXT_YEAR - 77)) | (1 << (SOQLParser.THIS_FISCAL_QUARTER - 77)) | (1 << (SOQLParser.LAST_FISCAL_QUARTER - 77)) | (1 << (SOQLParser.NEXT_FISCAL_QUARTER - 77)) | (1 << (SOQLParser.THIS_FISCAL_YEAR - 77)) | (1 << (SOQLParser.LAST_FISCAL_YEAR - 77)) | (1 << (SOQLParser.NEXT_FISCAL_YEAR - 77)))) !== 0))) {
|
2028 | this._errHandler.recoverInline(this);
|
2029 | }
|
2030 | else {
|
2031 | this._errHandler.reportMatch(this);
|
2032 | this.consume();
|
2033 | }
|
2034 | } catch (re) {
|
2035 | if(re instanceof antlr4.error.RecognitionException) {
|
2036 | localctx.exception = re;
|
2037 | this._errHandler.reportError(this, re);
|
2038 | this._errHandler.recover(this, re);
|
2039 | } else {
|
2040 | throw re;
|
2041 | }
|
2042 | } finally {
|
2043 | this.exitRule();
|
2044 | }
|
2045 | return localctx;
|
2046 | };
|
2047 |
|
2048 | function Date_formula_n_literal_nameContext(parser, parent, invokingState) {
|
2049 | if(parent===undefined) {
|
2050 | parent = null;
|
2051 | }
|
2052 | if(invokingState===undefined || invokingState===null) {
|
2053 | invokingState = -1;
|
2054 | }
|
2055 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
2056 | this.parser = parser;
|
2057 | this.ruleIndex = SOQLParser.RULE_date_formula_n_literal_name;
|
2058 | return this;
|
2059 | }
|
2060 |
|
2061 | Date_formula_n_literal_nameContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
2062 | Date_formula_n_literal_nameContext.prototype.constructor = Date_formula_n_literal_nameContext;
|
2063 |
|
2064 | Date_formula_n_literal_nameContext.prototype.NEXT_N_DAYS = function() {
|
2065 | return this.getToken(SOQLParser.NEXT_N_DAYS, 0);
|
2066 | };
|
2067 |
|
2068 | Date_formula_n_literal_nameContext.prototype.LAST_N_DAYS = function() {
|
2069 | return this.getToken(SOQLParser.LAST_N_DAYS, 0);
|
2070 | };
|
2071 |
|
2072 | Date_formula_n_literal_nameContext.prototype.N_DAYS_AGO = function() {
|
2073 | return this.getToken(SOQLParser.N_DAYS_AGO, 0);
|
2074 | };
|
2075 |
|
2076 | Date_formula_n_literal_nameContext.prototype.NEXT_N_WEEKS = function() {
|
2077 | return this.getToken(SOQLParser.NEXT_N_WEEKS, 0);
|
2078 | };
|
2079 |
|
2080 | Date_formula_n_literal_nameContext.prototype.LAST_N_WEEKS = function() {
|
2081 | return this.getToken(SOQLParser.LAST_N_WEEKS, 0);
|
2082 | };
|
2083 |
|
2084 | Date_formula_n_literal_nameContext.prototype.N_WEEKS_AGO = function() {
|
2085 | return this.getToken(SOQLParser.N_WEEKS_AGO, 0);
|
2086 | };
|
2087 |
|
2088 | Date_formula_n_literal_nameContext.prototype.NEXT_N_MONTHS = function() {
|
2089 | return this.getToken(SOQLParser.NEXT_N_MONTHS, 0);
|
2090 | };
|
2091 |
|
2092 | Date_formula_n_literal_nameContext.prototype.LAST_N_MONTHS = function() {
|
2093 | return this.getToken(SOQLParser.LAST_N_MONTHS, 0);
|
2094 | };
|
2095 |
|
2096 | Date_formula_n_literal_nameContext.prototype.N_MONTHS_AGO = function() {
|
2097 | return this.getToken(SOQLParser.N_MONTHS_AGO, 0);
|
2098 | };
|
2099 |
|
2100 | Date_formula_n_literal_nameContext.prototype.NEXT_N_QUARTERS = function() {
|
2101 | return this.getToken(SOQLParser.NEXT_N_QUARTERS, 0);
|
2102 | };
|
2103 |
|
2104 | Date_formula_n_literal_nameContext.prototype.LAST_N_QUARTERS = function() {
|
2105 | return this.getToken(SOQLParser.LAST_N_QUARTERS, 0);
|
2106 | };
|
2107 |
|
2108 | Date_formula_n_literal_nameContext.prototype.N_QUARTERS_AGO = function() {
|
2109 | return this.getToken(SOQLParser.N_QUARTERS_AGO, 0);
|
2110 | };
|
2111 |
|
2112 | Date_formula_n_literal_nameContext.prototype.NEXT_N_YEARS = function() {
|
2113 | return this.getToken(SOQLParser.NEXT_N_YEARS, 0);
|
2114 | };
|
2115 |
|
2116 | Date_formula_n_literal_nameContext.prototype.LAST_N_YEARS = function() {
|
2117 | return this.getToken(SOQLParser.LAST_N_YEARS, 0);
|
2118 | };
|
2119 |
|
2120 | Date_formula_n_literal_nameContext.prototype.N_YEARS_AGO = function() {
|
2121 | return this.getToken(SOQLParser.N_YEARS_AGO, 0);
|
2122 | };
|
2123 |
|
2124 | Date_formula_n_literal_nameContext.prototype.NEXT_N_FISCAL_QUARTERS = function() {
|
2125 | return this.getToken(SOQLParser.NEXT_N_FISCAL_QUARTERS, 0);
|
2126 | };
|
2127 |
|
2128 | Date_formula_n_literal_nameContext.prototype.LAST_N_FISCAL_QUARTERS = function() {
|
2129 | return this.getToken(SOQLParser.LAST_N_FISCAL_QUARTERS, 0);
|
2130 | };
|
2131 |
|
2132 | Date_formula_n_literal_nameContext.prototype.N_FISCAL_QUARTERS_AGO = function() {
|
2133 | return this.getToken(SOQLParser.N_FISCAL_QUARTERS_AGO, 0);
|
2134 | };
|
2135 |
|
2136 | Date_formula_n_literal_nameContext.prototype.NEXT_N_FISCAL_YEARS = function() {
|
2137 | return this.getToken(SOQLParser.NEXT_N_FISCAL_YEARS, 0);
|
2138 | };
|
2139 |
|
2140 | Date_formula_n_literal_nameContext.prototype.LAST_N_FISCAL_YEARS = function() {
|
2141 | return this.getToken(SOQLParser.LAST_N_FISCAL_YEARS, 0);
|
2142 | };
|
2143 |
|
2144 | Date_formula_n_literal_nameContext.prototype.N_FISCAL_YEARS_AGO = function() {
|
2145 | return this.getToken(SOQLParser.N_FISCAL_YEARS_AGO, 0);
|
2146 | };
|
2147 |
|
2148 | Date_formula_n_literal_nameContext.prototype.enterRule = function(listener) {
|
2149 | if(listener instanceof SOQLListener ) {
|
2150 | listener.enterDate_formula_n_literal_name(this);
|
2151 | }
|
2152 | };
|
2153 |
|
2154 | Date_formula_n_literal_nameContext.prototype.exitRule = function(listener) {
|
2155 | if(listener instanceof SOQLListener ) {
|
2156 | listener.exitDate_formula_n_literal_name(this);
|
2157 | }
|
2158 | };
|
2159 |
|
2160 |
|
2161 |
|
2162 |
|
2163 | SOQLParser.Date_formula_n_literal_nameContext = Date_formula_n_literal_nameContext;
|
2164 |
|
2165 | SOQLParser.prototype.date_formula_n_literal_name = function() {
|
2166 |
|
2167 | var localctx = new Date_formula_n_literal_nameContext(this, this._ctx, this.state);
|
2168 | this.enterRule(localctx, 24, SOQLParser.RULE_date_formula_n_literal_name);
|
2169 | var _la = 0;
|
2170 | try {
|
2171 | this.enterOuterAlt(localctx, 1);
|
2172 | this.state = 222;
|
2173 | _la = this._input.LA(1);
|
2174 | if(!(((((_la - 100)) & ~0x1f) == 0 && ((1 << (_la - 100)) & ((1 << (SOQLParser.NEXT_N_DAYS - 100)) | (1 << (SOQLParser.LAST_N_DAYS - 100)) | (1 << (SOQLParser.N_DAYS_AGO - 100)) | (1 << (SOQLParser.NEXT_N_WEEKS - 100)) | (1 << (SOQLParser.LAST_N_WEEKS - 100)) | (1 << (SOQLParser.N_WEEKS_AGO - 100)) | (1 << (SOQLParser.NEXT_N_MONTHS - 100)) | (1 << (SOQLParser.LAST_N_MONTHS - 100)) | (1 << (SOQLParser.N_MONTHS_AGO - 100)) | (1 << (SOQLParser.NEXT_N_QUARTERS - 100)) | (1 << (SOQLParser.LAST_N_QUARTERS - 100)) | (1 << (SOQLParser.N_QUARTERS_AGO - 100)) | (1 << (SOQLParser.NEXT_N_YEARS - 100)) | (1 << (SOQLParser.LAST_N_YEARS - 100)) | (1 << (SOQLParser.N_YEARS_AGO - 100)) | (1 << (SOQLParser.NEXT_N_FISCAL_QUARTERS - 100)) | (1 << (SOQLParser.LAST_N_FISCAL_QUARTERS - 100)) | (1 << (SOQLParser.N_FISCAL_QUARTERS_AGO - 100)) | (1 << (SOQLParser.NEXT_N_FISCAL_YEARS - 100)) | (1 << (SOQLParser.LAST_N_FISCAL_YEARS - 100)) | (1 << (SOQLParser.N_FISCAL_YEARS_AGO - 100)))) !== 0))) {
|
2175 | this._errHandler.recoverInline(this);
|
2176 | }
|
2177 | else {
|
2178 | this._errHandler.reportMatch(this);
|
2179 | this.consume();
|
2180 | }
|
2181 | } catch (re) {
|
2182 | if(re instanceof antlr4.error.RecognitionException) {
|
2183 | localctx.exception = re;
|
2184 | this._errHandler.reportError(this, re);
|
2185 | this._errHandler.recover(this, re);
|
2186 | } else {
|
2187 | throw re;
|
2188 | }
|
2189 | } finally {
|
2190 | this.exitRule();
|
2191 | }
|
2192 | return localctx;
|
2193 | };
|
2194 |
|
2195 | function Date_formula_n_literalContext(parser, parent, invokingState) {
|
2196 | if(parent===undefined) {
|
2197 | parent = null;
|
2198 | }
|
2199 | if(invokingState===undefined || invokingState===null) {
|
2200 | invokingState = -1;
|
2201 | }
|
2202 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
2203 | this.parser = parser;
|
2204 | this.ruleIndex = SOQLParser.RULE_date_formula_n_literal;
|
2205 | return this;
|
2206 | }
|
2207 |
|
2208 | Date_formula_n_literalContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
2209 | Date_formula_n_literalContext.prototype.constructor = Date_formula_n_literalContext;
|
2210 |
|
2211 | Date_formula_n_literalContext.prototype.date_formula_n_literal_name = function() {
|
2212 | return this.getTypedRuleContext(Date_formula_n_literal_nameContext,0);
|
2213 | };
|
2214 |
|
2215 | Date_formula_n_literalContext.prototype.COLON = function() {
|
2216 | return this.getToken(SOQLParser.COLON, 0);
|
2217 | };
|
2218 |
|
2219 | Date_formula_n_literalContext.prototype.UNSIGNED_INTEGER = function() {
|
2220 | return this.getToken(SOQLParser.UNSIGNED_INTEGER, 0);
|
2221 | };
|
2222 |
|
2223 | Date_formula_n_literalContext.prototype.enterRule = function(listener) {
|
2224 | if(listener instanceof SOQLListener ) {
|
2225 | listener.enterDate_formula_n_literal(this);
|
2226 | }
|
2227 | };
|
2228 |
|
2229 | Date_formula_n_literalContext.prototype.exitRule = function(listener) {
|
2230 | if(listener instanceof SOQLListener ) {
|
2231 | listener.exitDate_formula_n_literal(this);
|
2232 | }
|
2233 | };
|
2234 |
|
2235 |
|
2236 |
|
2237 |
|
2238 | SOQLParser.Date_formula_n_literalContext = Date_formula_n_literalContext;
|
2239 |
|
2240 | SOQLParser.prototype.date_formula_n_literal = function() {
|
2241 |
|
2242 | var localctx = new Date_formula_n_literalContext(this, this._ctx, this.state);
|
2243 | this.enterRule(localctx, 26, SOQLParser.RULE_date_formula_n_literal);
|
2244 | try {
|
2245 | this.enterOuterAlt(localctx, 1);
|
2246 | this.state = 224;
|
2247 | this.date_formula_n_literal_name();
|
2248 | this.state = 225;
|
2249 | this.match(SOQLParser.COLON);
|
2250 | this.state = 226;
|
2251 | this.match(SOQLParser.UNSIGNED_INTEGER);
|
2252 | } catch (re) {
|
2253 | if(re instanceof antlr4.error.RecognitionException) {
|
2254 | localctx.exception = re;
|
2255 | this._errHandler.reportError(this, re);
|
2256 | this._errHandler.recover(this, re);
|
2257 | } else {
|
2258 | throw re;
|
2259 | }
|
2260 | } finally {
|
2261 | this.exitRule();
|
2262 | }
|
2263 | return localctx;
|
2264 | };
|
2265 |
|
2266 | function Datetime_literalContext(parser, parent, invokingState) {
|
2267 | if(parent===undefined) {
|
2268 | parent = null;
|
2269 | }
|
2270 | if(invokingState===undefined || invokingState===null) {
|
2271 | invokingState = -1;
|
2272 | }
|
2273 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
2274 | this.parser = parser;
|
2275 | this.ruleIndex = SOQLParser.RULE_datetime_literal;
|
2276 | return this;
|
2277 | }
|
2278 |
|
2279 | Datetime_literalContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
2280 | Datetime_literalContext.prototype.constructor = Datetime_literalContext;
|
2281 |
|
2282 | Datetime_literalContext.prototype.DATETIME = function() {
|
2283 | return this.getToken(SOQLParser.DATETIME, 0);
|
2284 | };
|
2285 |
|
2286 | Datetime_literalContext.prototype.enterRule = function(listener) {
|
2287 | if(listener instanceof SOQLListener ) {
|
2288 | listener.enterDatetime_literal(this);
|
2289 | }
|
2290 | };
|
2291 |
|
2292 | Datetime_literalContext.prototype.exitRule = function(listener) {
|
2293 | if(listener instanceof SOQLListener ) {
|
2294 | listener.exitDatetime_literal(this);
|
2295 | }
|
2296 | };
|
2297 |
|
2298 |
|
2299 |
|
2300 |
|
2301 | SOQLParser.Datetime_literalContext = Datetime_literalContext;
|
2302 |
|
2303 | SOQLParser.prototype.datetime_literal = function() {
|
2304 |
|
2305 | var localctx = new Datetime_literalContext(this, this._ctx, this.state);
|
2306 | this.enterRule(localctx, 28, SOQLParser.RULE_datetime_literal);
|
2307 | try {
|
2308 | this.enterOuterAlt(localctx, 1);
|
2309 | this.state = 228;
|
2310 | this.match(SOQLParser.DATETIME);
|
2311 | } catch (re) {
|
2312 | if(re instanceof antlr4.error.RecognitionException) {
|
2313 | localctx.exception = re;
|
2314 | this._errHandler.reportError(this, re);
|
2315 | this._errHandler.recover(this, re);
|
2316 | } else {
|
2317 | throw re;
|
2318 | }
|
2319 | } finally {
|
2320 | this.exitRule();
|
2321 | }
|
2322 | return localctx;
|
2323 | };
|
2324 |
|
2325 | function Date_literalContext(parser, parent, invokingState) {
|
2326 | if(parent===undefined) {
|
2327 | parent = null;
|
2328 | }
|
2329 | if(invokingState===undefined || invokingState===null) {
|
2330 | invokingState = -1;
|
2331 | }
|
2332 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
2333 | this.parser = parser;
|
2334 | this.ruleIndex = SOQLParser.RULE_date_literal;
|
2335 | return this;
|
2336 | }
|
2337 |
|
2338 | Date_literalContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
2339 | Date_literalContext.prototype.constructor = Date_literalContext;
|
2340 |
|
2341 | Date_literalContext.prototype.DATE = function() {
|
2342 | return this.getToken(SOQLParser.DATE, 0);
|
2343 | };
|
2344 |
|
2345 | Date_literalContext.prototype.enterRule = function(listener) {
|
2346 | if(listener instanceof SOQLListener ) {
|
2347 | listener.enterDate_literal(this);
|
2348 | }
|
2349 | };
|
2350 |
|
2351 | Date_literalContext.prototype.exitRule = function(listener) {
|
2352 | if(listener instanceof SOQLListener ) {
|
2353 | listener.exitDate_literal(this);
|
2354 | }
|
2355 | };
|
2356 |
|
2357 |
|
2358 |
|
2359 |
|
2360 | SOQLParser.Date_literalContext = Date_literalContext;
|
2361 |
|
2362 | SOQLParser.prototype.date_literal = function() {
|
2363 |
|
2364 | var localctx = new Date_literalContext(this, this._ctx, this.state);
|
2365 | this.enterRule(localctx, 30, SOQLParser.RULE_date_literal);
|
2366 | try {
|
2367 | this.enterOuterAlt(localctx, 1);
|
2368 | this.state = 230;
|
2369 | this.match(SOQLParser.DATE);
|
2370 | } catch (re) {
|
2371 | if(re instanceof antlr4.error.RecognitionException) {
|
2372 | localctx.exception = re;
|
2373 | this._errHandler.reportError(this, re);
|
2374 | this._errHandler.recover(this, re);
|
2375 | } else {
|
2376 | throw re;
|
2377 | }
|
2378 | } finally {
|
2379 | this.exitRule();
|
2380 | }
|
2381 | return localctx;
|
2382 | };
|
2383 |
|
2384 | function Integer_literalContext(parser, parent, invokingState) {
|
2385 | if(parent===undefined) {
|
2386 | parent = null;
|
2387 | }
|
2388 | if(invokingState===undefined || invokingState===null) {
|
2389 | invokingState = -1;
|
2390 | }
|
2391 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
2392 | this.parser = parser;
|
2393 | this.ruleIndex = SOQLParser.RULE_integer_literal;
|
2394 | return this;
|
2395 | }
|
2396 |
|
2397 | Integer_literalContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
2398 | Integer_literalContext.prototype.constructor = Integer_literalContext;
|
2399 |
|
2400 | Integer_literalContext.prototype.SIGNED_INTEGER = function() {
|
2401 | return this.getToken(SOQLParser.SIGNED_INTEGER, 0);
|
2402 | };
|
2403 |
|
2404 | Integer_literalContext.prototype.UNSIGNED_INTEGER = function() {
|
2405 | return this.getToken(SOQLParser.UNSIGNED_INTEGER, 0);
|
2406 | };
|
2407 |
|
2408 | Integer_literalContext.prototype.enterRule = function(listener) {
|
2409 | if(listener instanceof SOQLListener ) {
|
2410 | listener.enterInteger_literal(this);
|
2411 | }
|
2412 | };
|
2413 |
|
2414 | Integer_literalContext.prototype.exitRule = function(listener) {
|
2415 | if(listener instanceof SOQLListener ) {
|
2416 | listener.exitInteger_literal(this);
|
2417 | }
|
2418 | };
|
2419 |
|
2420 |
|
2421 |
|
2422 |
|
2423 | SOQLParser.Integer_literalContext = Integer_literalContext;
|
2424 |
|
2425 | SOQLParser.prototype.integer_literal = function() {
|
2426 |
|
2427 | var localctx = new Integer_literalContext(this, this._ctx, this.state);
|
2428 | this.enterRule(localctx, 32, SOQLParser.RULE_integer_literal);
|
2429 | var _la = 0;
|
2430 | try {
|
2431 | this.enterOuterAlt(localctx, 1);
|
2432 | this.state = 232;
|
2433 | _la = this._input.LA(1);
|
2434 | if(!(_la===SOQLParser.UNSIGNED_INTEGER || _la===SOQLParser.SIGNED_INTEGER)) {
|
2435 | this._errHandler.recoverInline(this);
|
2436 | }
|
2437 | else {
|
2438 | this._errHandler.reportMatch(this);
|
2439 | this.consume();
|
2440 | }
|
2441 | } catch (re) {
|
2442 | if(re instanceof antlr4.error.RecognitionException) {
|
2443 | localctx.exception = re;
|
2444 | this._errHandler.reportError(this, re);
|
2445 | this._errHandler.recover(this, re);
|
2446 | } else {
|
2447 | throw re;
|
2448 | }
|
2449 | } finally {
|
2450 | this.exitRule();
|
2451 | }
|
2452 | return localctx;
|
2453 | };
|
2454 |
|
2455 | function Real_literalContext(parser, parent, invokingState) {
|
2456 | if(parent===undefined) {
|
2457 | parent = null;
|
2458 | }
|
2459 | if(invokingState===undefined || invokingState===null) {
|
2460 | invokingState = -1;
|
2461 | }
|
2462 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
2463 | this.parser = parser;
|
2464 | this.ruleIndex = SOQLParser.RULE_real_literal;
|
2465 | return this;
|
2466 | }
|
2467 |
|
2468 | Real_literalContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
2469 | Real_literalContext.prototype.constructor = Real_literalContext;
|
2470 |
|
2471 | Real_literalContext.prototype.REAL_NUMBER = function() {
|
2472 | return this.getToken(SOQLParser.REAL_NUMBER, 0);
|
2473 | };
|
2474 |
|
2475 | Real_literalContext.prototype.enterRule = function(listener) {
|
2476 | if(listener instanceof SOQLListener ) {
|
2477 | listener.enterReal_literal(this);
|
2478 | }
|
2479 | };
|
2480 |
|
2481 | Real_literalContext.prototype.exitRule = function(listener) {
|
2482 | if(listener instanceof SOQLListener ) {
|
2483 | listener.exitReal_literal(this);
|
2484 | }
|
2485 | };
|
2486 |
|
2487 |
|
2488 |
|
2489 |
|
2490 | SOQLParser.Real_literalContext = Real_literalContext;
|
2491 |
|
2492 | SOQLParser.prototype.real_literal = function() {
|
2493 |
|
2494 | var localctx = new Real_literalContext(this, this._ctx, this.state);
|
2495 | this.enterRule(localctx, 34, SOQLParser.RULE_real_literal);
|
2496 | try {
|
2497 | this.enterOuterAlt(localctx, 1);
|
2498 | this.state = 234;
|
2499 | this.match(SOQLParser.REAL_NUMBER);
|
2500 | } catch (re) {
|
2501 | if(re instanceof antlr4.error.RecognitionException) {
|
2502 | localctx.exception = re;
|
2503 | this._errHandler.reportError(this, re);
|
2504 | this._errHandler.recover(this, re);
|
2505 | } else {
|
2506 | throw re;
|
2507 | }
|
2508 | } finally {
|
2509 | this.exitRule();
|
2510 | }
|
2511 | return localctx;
|
2512 | };
|
2513 |
|
2514 | function String_literalContext(parser, parent, invokingState) {
|
2515 | if(parent===undefined) {
|
2516 | parent = null;
|
2517 | }
|
2518 | if(invokingState===undefined || invokingState===null) {
|
2519 | invokingState = -1;
|
2520 | }
|
2521 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
2522 | this.parser = parser;
|
2523 | this.ruleIndex = SOQLParser.RULE_string_literal;
|
2524 | return this;
|
2525 | }
|
2526 |
|
2527 | String_literalContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
2528 | String_literalContext.prototype.constructor = String_literalContext;
|
2529 |
|
2530 | String_literalContext.prototype.STRING_VALUE = function() {
|
2531 | return this.getToken(SOQLParser.STRING_VALUE, 0);
|
2532 | };
|
2533 |
|
2534 | String_literalContext.prototype.enterRule = function(listener) {
|
2535 | if(listener instanceof SOQLListener ) {
|
2536 | listener.enterString_literal(this);
|
2537 | }
|
2538 | };
|
2539 |
|
2540 | String_literalContext.prototype.exitRule = function(listener) {
|
2541 | if(listener instanceof SOQLListener ) {
|
2542 | listener.exitString_literal(this);
|
2543 | }
|
2544 | };
|
2545 |
|
2546 |
|
2547 |
|
2548 |
|
2549 | SOQLParser.String_literalContext = String_literalContext;
|
2550 |
|
2551 | SOQLParser.prototype.string_literal = function() {
|
2552 |
|
2553 | var localctx = new String_literalContext(this, this._ctx, this.state);
|
2554 | this.enterRule(localctx, 36, SOQLParser.RULE_string_literal);
|
2555 | try {
|
2556 | this.enterOuterAlt(localctx, 1);
|
2557 | this.state = 236;
|
2558 | this.match(SOQLParser.STRING_VALUE);
|
2559 | } catch (re) {
|
2560 | if(re instanceof antlr4.error.RecognitionException) {
|
2561 | localctx.exception = re;
|
2562 | this._errHandler.reportError(this, re);
|
2563 | this._errHandler.recover(this, re);
|
2564 | } else {
|
2565 | throw re;
|
2566 | }
|
2567 | } finally {
|
2568 | this.exitRule();
|
2569 | }
|
2570 | return localctx;
|
2571 | };
|
2572 |
|
2573 | function Boolean_literalContext(parser, parent, invokingState) {
|
2574 | if(parent===undefined) {
|
2575 | parent = null;
|
2576 | }
|
2577 | if(invokingState===undefined || invokingState===null) {
|
2578 | invokingState = -1;
|
2579 | }
|
2580 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
2581 | this.parser = parser;
|
2582 | this.ruleIndex = SOQLParser.RULE_boolean_literal;
|
2583 | return this;
|
2584 | }
|
2585 |
|
2586 | Boolean_literalContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
2587 | Boolean_literalContext.prototype.constructor = Boolean_literalContext;
|
2588 |
|
2589 | Boolean_literalContext.prototype.TRUE = function() {
|
2590 | return this.getToken(SOQLParser.TRUE, 0);
|
2591 | };
|
2592 |
|
2593 | Boolean_literalContext.prototype.FALSE = function() {
|
2594 | return this.getToken(SOQLParser.FALSE, 0);
|
2595 | };
|
2596 |
|
2597 | Boolean_literalContext.prototype.enterRule = function(listener) {
|
2598 | if(listener instanceof SOQLListener ) {
|
2599 | listener.enterBoolean_literal(this);
|
2600 | }
|
2601 | };
|
2602 |
|
2603 | Boolean_literalContext.prototype.exitRule = function(listener) {
|
2604 | if(listener instanceof SOQLListener ) {
|
2605 | listener.exitBoolean_literal(this);
|
2606 | }
|
2607 | };
|
2608 |
|
2609 |
|
2610 |
|
2611 |
|
2612 | SOQLParser.Boolean_literalContext = Boolean_literalContext;
|
2613 |
|
2614 | SOQLParser.prototype.boolean_literal = function() {
|
2615 |
|
2616 | var localctx = new Boolean_literalContext(this, this._ctx, this.state);
|
2617 | this.enterRule(localctx, 38, SOQLParser.RULE_boolean_literal);
|
2618 | var _la = 0;
|
2619 | try {
|
2620 | this.enterOuterAlt(localctx, 1);
|
2621 | this.state = 238;
|
2622 | _la = this._input.LA(1);
|
2623 | if(!(_la===SOQLParser.FALSE || _la===SOQLParser.TRUE)) {
|
2624 | this._errHandler.recoverInline(this);
|
2625 | }
|
2626 | else {
|
2627 | this._errHandler.reportMatch(this);
|
2628 | this.consume();
|
2629 | }
|
2630 | } catch (re) {
|
2631 | if(re instanceof antlr4.error.RecognitionException) {
|
2632 | localctx.exception = re;
|
2633 | this._errHandler.reportError(this, re);
|
2634 | this._errHandler.recover(this, re);
|
2635 | } else {
|
2636 | throw re;
|
2637 | }
|
2638 | } finally {
|
2639 | this.exitRule();
|
2640 | }
|
2641 | return localctx;
|
2642 | };
|
2643 |
|
2644 | function Null_literalContext(parser, parent, invokingState) {
|
2645 | if(parent===undefined) {
|
2646 | parent = null;
|
2647 | }
|
2648 | if(invokingState===undefined || invokingState===null) {
|
2649 | invokingState = -1;
|
2650 | }
|
2651 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
2652 | this.parser = parser;
|
2653 | this.ruleIndex = SOQLParser.RULE_null_literal;
|
2654 | return this;
|
2655 | }
|
2656 |
|
2657 | Null_literalContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
2658 | Null_literalContext.prototype.constructor = Null_literalContext;
|
2659 |
|
2660 | Null_literalContext.prototype.NULL = function() {
|
2661 | return this.getToken(SOQLParser.NULL, 0);
|
2662 | };
|
2663 |
|
2664 | Null_literalContext.prototype.enterRule = function(listener) {
|
2665 | if(listener instanceof SOQLListener ) {
|
2666 | listener.enterNull_literal(this);
|
2667 | }
|
2668 | };
|
2669 |
|
2670 | Null_literalContext.prototype.exitRule = function(listener) {
|
2671 | if(listener instanceof SOQLListener ) {
|
2672 | listener.exitNull_literal(this);
|
2673 | }
|
2674 | };
|
2675 |
|
2676 |
|
2677 |
|
2678 |
|
2679 | SOQLParser.Null_literalContext = Null_literalContext;
|
2680 |
|
2681 | SOQLParser.prototype.null_literal = function() {
|
2682 |
|
2683 | var localctx = new Null_literalContext(this, this._ctx, this.state);
|
2684 | this.enterRule(localctx, 40, SOQLParser.RULE_null_literal);
|
2685 | try {
|
2686 | this.enterOuterAlt(localctx, 1);
|
2687 | this.state = 240;
|
2688 | this.match(SOQLParser.NULL);
|
2689 | } catch (re) {
|
2690 | if(re instanceof antlr4.error.RecognitionException) {
|
2691 | localctx.exception = re;
|
2692 | this._errHandler.reportError(this, re);
|
2693 | this._errHandler.recover(this, re);
|
2694 | } else {
|
2695 | throw re;
|
2696 | }
|
2697 | } finally {
|
2698 | this.exitRule();
|
2699 | }
|
2700 | return localctx;
|
2701 | };
|
2702 |
|
2703 | function Function_nameContext(parser, parent, invokingState) {
|
2704 | if(parent===undefined) {
|
2705 | parent = null;
|
2706 | }
|
2707 | if(invokingState===undefined || invokingState===null) {
|
2708 | invokingState = -1;
|
2709 | }
|
2710 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
2711 | this.parser = parser;
|
2712 | this.ruleIndex = SOQLParser.RULE_function_name;
|
2713 | return this;
|
2714 | }
|
2715 |
|
2716 | Function_nameContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
2717 | Function_nameContext.prototype.constructor = Function_nameContext;
|
2718 |
|
2719 | Function_nameContext.prototype.function_date = function() {
|
2720 | return this.getTypedRuleContext(Function_dateContext,0);
|
2721 | };
|
2722 |
|
2723 | Function_nameContext.prototype.function_aggregate = function() {
|
2724 | return this.getTypedRuleContext(Function_aggregateContext,0);
|
2725 | };
|
2726 |
|
2727 | Function_nameContext.prototype.function_location = function() {
|
2728 | return this.getTypedRuleContext(Function_locationContext,0);
|
2729 | };
|
2730 |
|
2731 | Function_nameContext.prototype.function_other = function() {
|
2732 | return this.getTypedRuleContext(Function_otherContext,0);
|
2733 | };
|
2734 |
|
2735 | Function_nameContext.prototype.enterRule = function(listener) {
|
2736 | if(listener instanceof SOQLListener ) {
|
2737 | listener.enterFunction_name(this);
|
2738 | }
|
2739 | };
|
2740 |
|
2741 | Function_nameContext.prototype.exitRule = function(listener) {
|
2742 | if(listener instanceof SOQLListener ) {
|
2743 | listener.exitFunction_name(this);
|
2744 | }
|
2745 | };
|
2746 |
|
2747 |
|
2748 |
|
2749 |
|
2750 | SOQLParser.Function_nameContext = Function_nameContext;
|
2751 |
|
2752 | SOQLParser.prototype.function_name = function() {
|
2753 |
|
2754 | var localctx = new Function_nameContext(this, this._ctx, this.state);
|
2755 | this.enterRule(localctx, 42, SOQLParser.RULE_function_name);
|
2756 | try {
|
2757 | this.state = 246;
|
2758 | this._errHandler.sync(this);
|
2759 | switch(this._input.LA(1)) {
|
2760 | case SOQLParser.CALENDAR_MONTH:
|
2761 | case SOQLParser.CALENDAR_QUARTER:
|
2762 | case SOQLParser.CALENDAR_YEAR:
|
2763 | case SOQLParser.DAY_IN_MONTH:
|
2764 | case SOQLParser.DAY_IN_WEEK:
|
2765 | case SOQLParser.DAY_IN_YEAR:
|
2766 | case SOQLParser.DAY_ONLY:
|
2767 | case SOQLParser.FISCAL_MONTH:
|
2768 | case SOQLParser.FISCAL_QUARTER:
|
2769 | case SOQLParser.FISCAL_YEAR:
|
2770 | case SOQLParser.HOUR_IN_DAY:
|
2771 | case SOQLParser.WEEK_IN_MONTH:
|
2772 | case SOQLParser.WEEK_IN_YEAR:
|
2773 | this.enterOuterAlt(localctx, 1);
|
2774 | this.state = 242;
|
2775 | this.function_date();
|
2776 | break;
|
2777 | case SOQLParser.AVG:
|
2778 | case SOQLParser.COUNT:
|
2779 | case SOQLParser.COUNT_DISTINCT:
|
2780 | case SOQLParser.MIN:
|
2781 | case SOQLParser.MAX:
|
2782 | case SOQLParser.SUM:
|
2783 | this.enterOuterAlt(localctx, 2);
|
2784 | this.state = 243;
|
2785 | this.function_aggregate();
|
2786 | break;
|
2787 | case SOQLParser.DISTANCE:
|
2788 | case SOQLParser.GEOLOCATION:
|
2789 | this.enterOuterAlt(localctx, 3);
|
2790 | this.state = 244;
|
2791 | this.function_location();
|
2792 | break;
|
2793 | case SOQLParser.FORMAT:
|
2794 | case SOQLParser.TOLABEL:
|
2795 | case SOQLParser.CONVERT_TIME_ZONE:
|
2796 | case SOQLParser.CONVERT_CURRENCY:
|
2797 | case SOQLParser.GROUPING:
|
2798 | this.enterOuterAlt(localctx, 4);
|
2799 | this.state = 245;
|
2800 | this.function_other();
|
2801 | break;
|
2802 | default:
|
2803 | throw new antlr4.error.NoViableAltException(this);
|
2804 | }
|
2805 | } catch (re) {
|
2806 | if(re instanceof antlr4.error.RecognitionException) {
|
2807 | localctx.exception = re;
|
2808 | this._errHandler.reportError(this, re);
|
2809 | this._errHandler.recover(this, re);
|
2810 | } else {
|
2811 | throw re;
|
2812 | }
|
2813 | } finally {
|
2814 | this.exitRule();
|
2815 | }
|
2816 | return localctx;
|
2817 | };
|
2818 |
|
2819 | function Function_dateContext(parser, parent, invokingState) {
|
2820 | if(parent===undefined) {
|
2821 | parent = null;
|
2822 | }
|
2823 | if(invokingState===undefined || invokingState===null) {
|
2824 | invokingState = -1;
|
2825 | }
|
2826 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
2827 | this.parser = parser;
|
2828 | this.ruleIndex = SOQLParser.RULE_function_date;
|
2829 | return this;
|
2830 | }
|
2831 |
|
2832 | Function_dateContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
2833 | Function_dateContext.prototype.constructor = Function_dateContext;
|
2834 |
|
2835 | Function_dateContext.prototype.CALENDAR_MONTH = function() {
|
2836 | return this.getToken(SOQLParser.CALENDAR_MONTH, 0);
|
2837 | };
|
2838 |
|
2839 | Function_dateContext.prototype.CALENDAR_QUARTER = function() {
|
2840 | return this.getToken(SOQLParser.CALENDAR_QUARTER, 0);
|
2841 | };
|
2842 |
|
2843 | Function_dateContext.prototype.CALENDAR_YEAR = function() {
|
2844 | return this.getToken(SOQLParser.CALENDAR_YEAR, 0);
|
2845 | };
|
2846 |
|
2847 | Function_dateContext.prototype.DAY_IN_MONTH = function() {
|
2848 | return this.getToken(SOQLParser.DAY_IN_MONTH, 0);
|
2849 | };
|
2850 |
|
2851 | Function_dateContext.prototype.DAY_IN_WEEK = function() {
|
2852 | return this.getToken(SOQLParser.DAY_IN_WEEK, 0);
|
2853 | };
|
2854 |
|
2855 | Function_dateContext.prototype.DAY_IN_YEAR = function() {
|
2856 | return this.getToken(SOQLParser.DAY_IN_YEAR, 0);
|
2857 | };
|
2858 |
|
2859 | Function_dateContext.prototype.DAY_ONLY = function() {
|
2860 | return this.getToken(SOQLParser.DAY_ONLY, 0);
|
2861 | };
|
2862 |
|
2863 | Function_dateContext.prototype.FISCAL_MONTH = function() {
|
2864 | return this.getToken(SOQLParser.FISCAL_MONTH, 0);
|
2865 | };
|
2866 |
|
2867 | Function_dateContext.prototype.FISCAL_QUARTER = function() {
|
2868 | return this.getToken(SOQLParser.FISCAL_QUARTER, 0);
|
2869 | };
|
2870 |
|
2871 | Function_dateContext.prototype.FISCAL_YEAR = function() {
|
2872 | return this.getToken(SOQLParser.FISCAL_YEAR, 0);
|
2873 | };
|
2874 |
|
2875 | Function_dateContext.prototype.HOUR_IN_DAY = function() {
|
2876 | return this.getToken(SOQLParser.HOUR_IN_DAY, 0);
|
2877 | };
|
2878 |
|
2879 | Function_dateContext.prototype.WEEK_IN_MONTH = function() {
|
2880 | return this.getToken(SOQLParser.WEEK_IN_MONTH, 0);
|
2881 | };
|
2882 |
|
2883 | Function_dateContext.prototype.WEEK_IN_YEAR = function() {
|
2884 | return this.getToken(SOQLParser.WEEK_IN_YEAR, 0);
|
2885 | };
|
2886 |
|
2887 | Function_dateContext.prototype.enterRule = function(listener) {
|
2888 | if(listener instanceof SOQLListener ) {
|
2889 | listener.enterFunction_date(this);
|
2890 | }
|
2891 | };
|
2892 |
|
2893 | Function_dateContext.prototype.exitRule = function(listener) {
|
2894 | if(listener instanceof SOQLListener ) {
|
2895 | listener.exitFunction_date(this);
|
2896 | }
|
2897 | };
|
2898 |
|
2899 |
|
2900 |
|
2901 |
|
2902 | SOQLParser.Function_dateContext = Function_dateContext;
|
2903 |
|
2904 | SOQLParser.prototype.function_date = function() {
|
2905 |
|
2906 | var localctx = new Function_dateContext(this, this._ctx, this.state);
|
2907 | this.enterRule(localctx, 44, SOQLParser.RULE_function_date);
|
2908 | var _la = 0;
|
2909 | try {
|
2910 | this.enterOuterAlt(localctx, 1);
|
2911 | this.state = 248;
|
2912 | _la = this._input.LA(1);
|
2913 | if(!(((((_la - 51)) & ~0x1f) == 0 && ((1 << (_la - 51)) & ((1 << (SOQLParser.CALENDAR_MONTH - 51)) | (1 << (SOQLParser.CALENDAR_QUARTER - 51)) | (1 << (SOQLParser.CALENDAR_YEAR - 51)) | (1 << (SOQLParser.DAY_IN_MONTH - 51)) | (1 << (SOQLParser.DAY_IN_WEEK - 51)) | (1 << (SOQLParser.DAY_IN_YEAR - 51)) | (1 << (SOQLParser.DAY_ONLY - 51)) | (1 << (SOQLParser.FISCAL_MONTH - 51)) | (1 << (SOQLParser.FISCAL_QUARTER - 51)) | (1 << (SOQLParser.FISCAL_YEAR - 51)) | (1 << (SOQLParser.HOUR_IN_DAY - 51)) | (1 << (SOQLParser.WEEK_IN_MONTH - 51)) | (1 << (SOQLParser.WEEK_IN_YEAR - 51)))) !== 0))) {
|
2914 | this._errHandler.recoverInline(this);
|
2915 | }
|
2916 | else {
|
2917 | this._errHandler.reportMatch(this);
|
2918 | this.consume();
|
2919 | }
|
2920 | } catch (re) {
|
2921 | if(re instanceof antlr4.error.RecognitionException) {
|
2922 | localctx.exception = re;
|
2923 | this._errHandler.reportError(this, re);
|
2924 | this._errHandler.recover(this, re);
|
2925 | } else {
|
2926 | throw re;
|
2927 | }
|
2928 | } finally {
|
2929 | this.exitRule();
|
2930 | }
|
2931 | return localctx;
|
2932 | };
|
2933 |
|
2934 | function Function_aggregateContext(parser, parent, invokingState) {
|
2935 | if(parent===undefined) {
|
2936 | parent = null;
|
2937 | }
|
2938 | if(invokingState===undefined || invokingState===null) {
|
2939 | invokingState = -1;
|
2940 | }
|
2941 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
2942 | this.parser = parser;
|
2943 | this.ruleIndex = SOQLParser.RULE_function_aggregate;
|
2944 | return this;
|
2945 | }
|
2946 |
|
2947 | Function_aggregateContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
2948 | Function_aggregateContext.prototype.constructor = Function_aggregateContext;
|
2949 |
|
2950 | Function_aggregateContext.prototype.AVG = function() {
|
2951 | return this.getToken(SOQLParser.AVG, 0);
|
2952 | };
|
2953 |
|
2954 | Function_aggregateContext.prototype.COUNT = function() {
|
2955 | return this.getToken(SOQLParser.COUNT, 0);
|
2956 | };
|
2957 |
|
2958 | Function_aggregateContext.prototype.COUNT_DISTINCT = function() {
|
2959 | return this.getToken(SOQLParser.COUNT_DISTINCT, 0);
|
2960 | };
|
2961 |
|
2962 | Function_aggregateContext.prototype.MIN = function() {
|
2963 | return this.getToken(SOQLParser.MIN, 0);
|
2964 | };
|
2965 |
|
2966 | Function_aggregateContext.prototype.MAX = function() {
|
2967 | return this.getToken(SOQLParser.MAX, 0);
|
2968 | };
|
2969 |
|
2970 | Function_aggregateContext.prototype.SUM = function() {
|
2971 | return this.getToken(SOQLParser.SUM, 0);
|
2972 | };
|
2973 |
|
2974 | Function_aggregateContext.prototype.enterRule = function(listener) {
|
2975 | if(listener instanceof SOQLListener ) {
|
2976 | listener.enterFunction_aggregate(this);
|
2977 | }
|
2978 | };
|
2979 |
|
2980 | Function_aggregateContext.prototype.exitRule = function(listener) {
|
2981 | if(listener instanceof SOQLListener ) {
|
2982 | listener.exitFunction_aggregate(this);
|
2983 | }
|
2984 | };
|
2985 |
|
2986 |
|
2987 |
|
2988 |
|
2989 | SOQLParser.Function_aggregateContext = Function_aggregateContext;
|
2990 |
|
2991 | SOQLParser.prototype.function_aggregate = function() {
|
2992 |
|
2993 | var localctx = new Function_aggregateContext(this, this._ctx, this.state);
|
2994 | this.enterRule(localctx, 46, SOQLParser.RULE_function_aggregate);
|
2995 | var _la = 0;
|
2996 | try {
|
2997 | this.enterOuterAlt(localctx, 1);
|
2998 | this.state = 250;
|
2999 | _la = this._input.LA(1);
|
3000 | if(!(((((_la - 64)) & ~0x1f) == 0 && ((1 << (_la - 64)) & ((1 << (SOQLParser.AVG - 64)) | (1 << (SOQLParser.COUNT - 64)) | (1 << (SOQLParser.COUNT_DISTINCT - 64)) | (1 << (SOQLParser.MIN - 64)) | (1 << (SOQLParser.MAX - 64)) | (1 << (SOQLParser.SUM - 64)))) !== 0))) {
|
3001 | this._errHandler.recoverInline(this);
|
3002 | }
|
3003 | else {
|
3004 | this._errHandler.reportMatch(this);
|
3005 | this.consume();
|
3006 | }
|
3007 | } catch (re) {
|
3008 | if(re instanceof antlr4.error.RecognitionException) {
|
3009 | localctx.exception = re;
|
3010 | this._errHandler.reportError(this, re);
|
3011 | this._errHandler.recover(this, re);
|
3012 | } else {
|
3013 | throw re;
|
3014 | }
|
3015 | } finally {
|
3016 | this.exitRule();
|
3017 | }
|
3018 | return localctx;
|
3019 | };
|
3020 |
|
3021 | function Function_locationContext(parser, parent, invokingState) {
|
3022 | if(parent===undefined) {
|
3023 | parent = null;
|
3024 | }
|
3025 | if(invokingState===undefined || invokingState===null) {
|
3026 | invokingState = -1;
|
3027 | }
|
3028 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
3029 | this.parser = parser;
|
3030 | this.ruleIndex = SOQLParser.RULE_function_location;
|
3031 | return this;
|
3032 | }
|
3033 |
|
3034 | Function_locationContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
3035 | Function_locationContext.prototype.constructor = Function_locationContext;
|
3036 |
|
3037 | Function_locationContext.prototype.DISTANCE = function() {
|
3038 | return this.getToken(SOQLParser.DISTANCE, 0);
|
3039 | };
|
3040 |
|
3041 | Function_locationContext.prototype.GEOLOCATION = function() {
|
3042 | return this.getToken(SOQLParser.GEOLOCATION, 0);
|
3043 | };
|
3044 |
|
3045 | Function_locationContext.prototype.enterRule = function(listener) {
|
3046 | if(listener instanceof SOQLListener ) {
|
3047 | listener.enterFunction_location(this);
|
3048 | }
|
3049 | };
|
3050 |
|
3051 | Function_locationContext.prototype.exitRule = function(listener) {
|
3052 | if(listener instanceof SOQLListener ) {
|
3053 | listener.exitFunction_location(this);
|
3054 | }
|
3055 | };
|
3056 |
|
3057 |
|
3058 |
|
3059 |
|
3060 | SOQLParser.Function_locationContext = Function_locationContext;
|
3061 |
|
3062 | SOQLParser.prototype.function_location = function() {
|
3063 |
|
3064 | var localctx = new Function_locationContext(this, this._ctx, this.state);
|
3065 | this.enterRule(localctx, 48, SOQLParser.RULE_function_location);
|
3066 | var _la = 0;
|
3067 | try {
|
3068 | this.enterOuterAlt(localctx, 1);
|
3069 | this.state = 252;
|
3070 | _la = this._input.LA(1);
|
3071 | if(!(_la===SOQLParser.DISTANCE || _la===SOQLParser.GEOLOCATION)) {
|
3072 | this._errHandler.recoverInline(this);
|
3073 | }
|
3074 | else {
|
3075 | this._errHandler.reportMatch(this);
|
3076 | this.consume();
|
3077 | }
|
3078 | } catch (re) {
|
3079 | if(re instanceof antlr4.error.RecognitionException) {
|
3080 | localctx.exception = re;
|
3081 | this._errHandler.reportError(this, re);
|
3082 | this._errHandler.recover(this, re);
|
3083 | } else {
|
3084 | throw re;
|
3085 | }
|
3086 | } finally {
|
3087 | this.exitRule();
|
3088 | }
|
3089 | return localctx;
|
3090 | };
|
3091 |
|
3092 | function Function_otherContext(parser, parent, invokingState) {
|
3093 | if(parent===undefined) {
|
3094 | parent = null;
|
3095 | }
|
3096 | if(invokingState===undefined || invokingState===null) {
|
3097 | invokingState = -1;
|
3098 | }
|
3099 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
3100 | this.parser = parser;
|
3101 | this.ruleIndex = SOQLParser.RULE_function_other;
|
3102 | return this;
|
3103 | }
|
3104 |
|
3105 | Function_otherContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
3106 | Function_otherContext.prototype.constructor = Function_otherContext;
|
3107 |
|
3108 | Function_otherContext.prototype.FORMAT = function() {
|
3109 | return this.getToken(SOQLParser.FORMAT, 0);
|
3110 | };
|
3111 |
|
3112 | Function_otherContext.prototype.TOLABEL = function() {
|
3113 | return this.getToken(SOQLParser.TOLABEL, 0);
|
3114 | };
|
3115 |
|
3116 | Function_otherContext.prototype.CONVERT_TIME_ZONE = function() {
|
3117 | return this.getToken(SOQLParser.CONVERT_TIME_ZONE, 0);
|
3118 | };
|
3119 |
|
3120 | Function_otherContext.prototype.CONVERT_CURRENCY = function() {
|
3121 | return this.getToken(SOQLParser.CONVERT_CURRENCY, 0);
|
3122 | };
|
3123 |
|
3124 | Function_otherContext.prototype.GROUPING = function() {
|
3125 | return this.getToken(SOQLParser.GROUPING, 0);
|
3126 | };
|
3127 |
|
3128 | Function_otherContext.prototype.enterRule = function(listener) {
|
3129 | if(listener instanceof SOQLListener ) {
|
3130 | listener.enterFunction_other(this);
|
3131 | }
|
3132 | };
|
3133 |
|
3134 | Function_otherContext.prototype.exitRule = function(listener) {
|
3135 | if(listener instanceof SOQLListener ) {
|
3136 | listener.exitFunction_other(this);
|
3137 | }
|
3138 | };
|
3139 |
|
3140 |
|
3141 |
|
3142 |
|
3143 | SOQLParser.Function_otherContext = Function_otherContext;
|
3144 |
|
3145 | SOQLParser.prototype.function_other = function() {
|
3146 |
|
3147 | var localctx = new Function_otherContext(this, this._ctx, this.state);
|
3148 | this.enterRule(localctx, 50, SOQLParser.RULE_function_other);
|
3149 | var _la = 0;
|
3150 | try {
|
3151 | this.enterOuterAlt(localctx, 1);
|
3152 | this.state = 254;
|
3153 | _la = this._input.LA(1);
|
3154 | if(!(((((_la - 72)) & ~0x1f) == 0 && ((1 << (_la - 72)) & ((1 << (SOQLParser.FORMAT - 72)) | (1 << (SOQLParser.TOLABEL - 72)) | (1 << (SOQLParser.CONVERT_TIME_ZONE - 72)) | (1 << (SOQLParser.CONVERT_CURRENCY - 72)) | (1 << (SOQLParser.GROUPING - 72)))) !== 0))) {
|
3155 | this._errHandler.recoverInline(this);
|
3156 | }
|
3157 | else {
|
3158 | this._errHandler.reportMatch(this);
|
3159 | this.consume();
|
3160 | }
|
3161 | } catch (re) {
|
3162 | if(re instanceof antlr4.error.RecognitionException) {
|
3163 | localctx.exception = re;
|
3164 | this._errHandler.reportError(this, re);
|
3165 | this._errHandler.recover(this, re);
|
3166 | } else {
|
3167 | throw re;
|
3168 | }
|
3169 | } finally {
|
3170 | this.exitRule();
|
3171 | }
|
3172 | return localctx;
|
3173 | };
|
3174 |
|
3175 | function Soql_queryContext(parser, parent, invokingState) {
|
3176 | if(parent===undefined) {
|
3177 | parent = null;
|
3178 | }
|
3179 | if(invokingState===undefined || invokingState===null) {
|
3180 | invokingState = -1;
|
3181 | }
|
3182 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
3183 | this.parser = parser;
|
3184 | this.ruleIndex = SOQLParser.RULE_soql_query;
|
3185 | return this;
|
3186 | }
|
3187 |
|
3188 | Soql_queryContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
3189 | Soql_queryContext.prototype.constructor = Soql_queryContext;
|
3190 |
|
3191 | Soql_queryContext.prototype.select_clause = function() {
|
3192 | return this.getTypedRuleContext(Select_clauseContext,0);
|
3193 | };
|
3194 |
|
3195 | Soql_queryContext.prototype.from_clause = function() {
|
3196 | return this.getTypedRuleContext(From_clauseContext,0);
|
3197 | };
|
3198 |
|
3199 | Soql_queryContext.prototype.EOF = function() {
|
3200 | return this.getToken(SOQLParser.EOF, 0);
|
3201 | };
|
3202 |
|
3203 | Soql_queryContext.prototype.using_clause = function() {
|
3204 | return this.getTypedRuleContext(Using_clauseContext,0);
|
3205 | };
|
3206 |
|
3207 | Soql_queryContext.prototype.where_clause = function() {
|
3208 | return this.getTypedRuleContext(Where_clauseContext,0);
|
3209 | };
|
3210 |
|
3211 | Soql_queryContext.prototype.with_clause = function() {
|
3212 | return this.getTypedRuleContext(With_clauseContext,0);
|
3213 | };
|
3214 |
|
3215 | Soql_queryContext.prototype.groupby_clause = function() {
|
3216 | return this.getTypedRuleContext(Groupby_clauseContext,0);
|
3217 | };
|
3218 |
|
3219 | Soql_queryContext.prototype.orderby_clause = function() {
|
3220 | return this.getTypedRuleContext(Orderby_clauseContext,0);
|
3221 | };
|
3222 |
|
3223 | Soql_queryContext.prototype.limit_clause = function() {
|
3224 | return this.getTypedRuleContext(Limit_clauseContext,0);
|
3225 | };
|
3226 |
|
3227 | Soql_queryContext.prototype.offset_clause = function() {
|
3228 | return this.getTypedRuleContext(Offset_clauseContext,0);
|
3229 | };
|
3230 |
|
3231 | Soql_queryContext.prototype.for_clause = function() {
|
3232 | return this.getTypedRuleContext(For_clauseContext,0);
|
3233 | };
|
3234 |
|
3235 | Soql_queryContext.prototype.update_clause = function() {
|
3236 | return this.getTypedRuleContext(Update_clauseContext,0);
|
3237 | };
|
3238 |
|
3239 | Soql_queryContext.prototype.having_clause = function() {
|
3240 | return this.getTypedRuleContext(Having_clauseContext,0);
|
3241 | };
|
3242 |
|
3243 | Soql_queryContext.prototype.enterRule = function(listener) {
|
3244 | if(listener instanceof SOQLListener ) {
|
3245 | listener.enterSoql_query(this);
|
3246 | }
|
3247 | };
|
3248 |
|
3249 | Soql_queryContext.prototype.exitRule = function(listener) {
|
3250 | if(listener instanceof SOQLListener ) {
|
3251 | listener.exitSoql_query(this);
|
3252 | }
|
3253 | };
|
3254 |
|
3255 |
|
3256 |
|
3257 |
|
3258 | SOQLParser.Soql_queryContext = Soql_queryContext;
|
3259 |
|
3260 | SOQLParser.prototype.soql_query = function() {
|
3261 |
|
3262 | var localctx = new Soql_queryContext(this, this._ctx, this.state);
|
3263 | this.enterRule(localctx, 52, SOQLParser.RULE_soql_query);
|
3264 | var _la = 0;
|
3265 | try {
|
3266 | this.enterOuterAlt(localctx, 1);
|
3267 | this.state = 256;
|
3268 | this.select_clause();
|
3269 | this.state = 257;
|
3270 | this.from_clause();
|
3271 | this.state = 259;
|
3272 | this._errHandler.sync(this);
|
3273 | _la = this._input.LA(1);
|
3274 | if(_la===SOQLParser.USING) {
|
3275 | this.state = 258;
|
3276 | this.using_clause();
|
3277 | }
|
3278 |
|
3279 | this.state = 262;
|
3280 | this._errHandler.sync(this);
|
3281 | _la = this._input.LA(1);
|
3282 | if(_la===SOQLParser.WHERE) {
|
3283 | this.state = 261;
|
3284 | this.where_clause();
|
3285 | }
|
3286 |
|
3287 | this.state = 265;
|
3288 | this._errHandler.sync(this);
|
3289 | _la = this._input.LA(1);
|
3290 | if(_la===SOQLParser.WITH) {
|
3291 | this.state = 264;
|
3292 | this.with_clause();
|
3293 | }
|
3294 |
|
3295 | this.state = 271;
|
3296 | this._errHandler.sync(this);
|
3297 | _la = this._input.LA(1);
|
3298 | if(_la===SOQLParser.GROUP) {
|
3299 | this.state = 267;
|
3300 | this.groupby_clause();
|
3301 | this.state = 269;
|
3302 | this._errHandler.sync(this);
|
3303 | _la = this._input.LA(1);
|
3304 | if(_la===SOQLParser.HAVING) {
|
3305 | this.state = 268;
|
3306 | this.having_clause();
|
3307 | }
|
3308 |
|
3309 | }
|
3310 |
|
3311 | this.state = 274;
|
3312 | this._errHandler.sync(this);
|
3313 | _la = this._input.LA(1);
|
3314 | if(_la===SOQLParser.ORDER) {
|
3315 | this.state = 273;
|
3316 | this.orderby_clause();
|
3317 | }
|
3318 |
|
3319 | this.state = 277;
|
3320 | this._errHandler.sync(this);
|
3321 | _la = this._input.LA(1);
|
3322 | if(_la===SOQLParser.LIMIT) {
|
3323 | this.state = 276;
|
3324 | this.limit_clause();
|
3325 | }
|
3326 |
|
3327 | this.state = 280;
|
3328 | this._errHandler.sync(this);
|
3329 | _la = this._input.LA(1);
|
3330 | if(_la===SOQLParser.OFFSET) {
|
3331 | this.state = 279;
|
3332 | this.offset_clause();
|
3333 | }
|
3334 |
|
3335 | this.state = 283;
|
3336 | this._errHandler.sync(this);
|
3337 | _la = this._input.LA(1);
|
3338 | if(_la===SOQLParser.FOR) {
|
3339 | this.state = 282;
|
3340 | this.for_clause();
|
3341 | }
|
3342 |
|
3343 | this.state = 286;
|
3344 | this._errHandler.sync(this);
|
3345 | _la = this._input.LA(1);
|
3346 | if(_la===SOQLParser.UPDATE) {
|
3347 | this.state = 285;
|
3348 | this.update_clause();
|
3349 | }
|
3350 |
|
3351 | this.state = 288;
|
3352 | this.match(SOQLParser.EOF);
|
3353 | } catch (re) {
|
3354 | if(re instanceof antlr4.error.RecognitionException) {
|
3355 | localctx.exception = re;
|
3356 | this._errHandler.reportError(this, re);
|
3357 | this._errHandler.recover(this, re);
|
3358 | } else {
|
3359 | throw re;
|
3360 | }
|
3361 | } finally {
|
3362 | this.exitRule();
|
3363 | }
|
3364 | return localctx;
|
3365 | };
|
3366 |
|
3367 | function Select_clauseContext(parser, parent, invokingState) {
|
3368 | if(parent===undefined) {
|
3369 | parent = null;
|
3370 | }
|
3371 | if(invokingState===undefined || invokingState===null) {
|
3372 | invokingState = -1;
|
3373 | }
|
3374 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
3375 | this.parser = parser;
|
3376 | this.ruleIndex = SOQLParser.RULE_select_clause;
|
3377 | return this;
|
3378 | }
|
3379 |
|
3380 | Select_clauseContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
3381 | Select_clauseContext.prototype.constructor = Select_clauseContext;
|
3382 |
|
3383 | Select_clauseContext.prototype.SELECT = function() {
|
3384 | return this.getToken(SOQLParser.SELECT, 0);
|
3385 | };
|
3386 |
|
3387 | Select_clauseContext.prototype.select_spec = function(i) {
|
3388 | if(i===undefined) {
|
3389 | i = null;
|
3390 | }
|
3391 | if(i===null) {
|
3392 | return this.getTypedRuleContexts(Select_specContext);
|
3393 | } else {
|
3394 | return this.getTypedRuleContext(Select_specContext,i);
|
3395 | }
|
3396 | };
|
3397 |
|
3398 | Select_clauseContext.prototype.COMMA = function(i) {
|
3399 | if(i===undefined) {
|
3400 | i = null;
|
3401 | }
|
3402 | if(i===null) {
|
3403 | return this.getTokens(SOQLParser.COMMA);
|
3404 | } else {
|
3405 | return this.getToken(SOQLParser.COMMA, i);
|
3406 | }
|
3407 | };
|
3408 |
|
3409 |
|
3410 | Select_clauseContext.prototype.enterRule = function(listener) {
|
3411 | if(listener instanceof SOQLListener ) {
|
3412 | listener.enterSelect_clause(this);
|
3413 | }
|
3414 | };
|
3415 |
|
3416 | Select_clauseContext.prototype.exitRule = function(listener) {
|
3417 | if(listener instanceof SOQLListener ) {
|
3418 | listener.exitSelect_clause(this);
|
3419 | }
|
3420 | };
|
3421 |
|
3422 |
|
3423 |
|
3424 |
|
3425 | SOQLParser.Select_clauseContext = Select_clauseContext;
|
3426 |
|
3427 | SOQLParser.prototype.select_clause = function() {
|
3428 |
|
3429 | var localctx = new Select_clauseContext(this, this._ctx, this.state);
|
3430 | this.enterRule(localctx, 54, SOQLParser.RULE_select_clause);
|
3431 | var _la = 0;
|
3432 | try {
|
3433 | this.enterOuterAlt(localctx, 1);
|
3434 | this.state = 290;
|
3435 | this.match(SOQLParser.SELECT);
|
3436 | this.state = 291;
|
3437 | this.select_spec();
|
3438 | this.state = 296;
|
3439 | this._errHandler.sync(this);
|
3440 | _la = this._input.LA(1);
|
3441 | while(_la===SOQLParser.COMMA) {
|
3442 | this.state = 292;
|
3443 | this.match(SOQLParser.COMMA);
|
3444 | this.state = 293;
|
3445 | this.select_spec();
|
3446 | this.state = 298;
|
3447 | this._errHandler.sync(this);
|
3448 | _la = this._input.LA(1);
|
3449 | }
|
3450 | } catch (re) {
|
3451 | if(re instanceof antlr4.error.RecognitionException) {
|
3452 | localctx.exception = re;
|
3453 | this._errHandler.reportError(this, re);
|
3454 | this._errHandler.recover(this, re);
|
3455 | } else {
|
3456 | throw re;
|
3457 | }
|
3458 | } finally {
|
3459 | this.exitRule();
|
3460 | }
|
3461 | return localctx;
|
3462 | };
|
3463 |
|
3464 | function From_clauseContext(parser, parent, invokingState) {
|
3465 | if(parent===undefined) {
|
3466 | parent = null;
|
3467 | }
|
3468 | if(invokingState===undefined || invokingState===null) {
|
3469 | invokingState = -1;
|
3470 | }
|
3471 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
3472 | this.parser = parser;
|
3473 | this.ruleIndex = SOQLParser.RULE_from_clause;
|
3474 | return this;
|
3475 | }
|
3476 |
|
3477 | From_clauseContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
3478 | From_clauseContext.prototype.constructor = From_clauseContext;
|
3479 |
|
3480 | From_clauseContext.prototype.FROM = function() {
|
3481 | return this.getToken(SOQLParser.FROM, 0);
|
3482 | };
|
3483 |
|
3484 | From_clauseContext.prototype.object_spec = function(i) {
|
3485 | if(i===undefined) {
|
3486 | i = null;
|
3487 | }
|
3488 | if(i===null) {
|
3489 | return this.getTypedRuleContexts(Object_specContext);
|
3490 | } else {
|
3491 | return this.getTypedRuleContext(Object_specContext,i);
|
3492 | }
|
3493 | };
|
3494 |
|
3495 | From_clauseContext.prototype.COMMA = function(i) {
|
3496 | if(i===undefined) {
|
3497 | i = null;
|
3498 | }
|
3499 | if(i===null) {
|
3500 | return this.getTokens(SOQLParser.COMMA);
|
3501 | } else {
|
3502 | return this.getToken(SOQLParser.COMMA, i);
|
3503 | }
|
3504 | };
|
3505 |
|
3506 |
|
3507 | From_clauseContext.prototype.enterRule = function(listener) {
|
3508 | if(listener instanceof SOQLListener ) {
|
3509 | listener.enterFrom_clause(this);
|
3510 | }
|
3511 | };
|
3512 |
|
3513 | From_clauseContext.prototype.exitRule = function(listener) {
|
3514 | if(listener instanceof SOQLListener ) {
|
3515 | listener.exitFrom_clause(this);
|
3516 | }
|
3517 | };
|
3518 |
|
3519 |
|
3520 |
|
3521 |
|
3522 | SOQLParser.From_clauseContext = From_clauseContext;
|
3523 |
|
3524 | SOQLParser.prototype.from_clause = function() {
|
3525 |
|
3526 | var localctx = new From_clauseContext(this, this._ctx, this.state);
|
3527 | this.enterRule(localctx, 56, SOQLParser.RULE_from_clause);
|
3528 | var _la = 0;
|
3529 | try {
|
3530 | this.enterOuterAlt(localctx, 1);
|
3531 | this.state = 299;
|
3532 | this.match(SOQLParser.FROM);
|
3533 | this.state = 300;
|
3534 | this.object_spec();
|
3535 | this.state = 305;
|
3536 | this._errHandler.sync(this);
|
3537 | _la = this._input.LA(1);
|
3538 | while(_la===SOQLParser.COMMA) {
|
3539 | this.state = 301;
|
3540 | this.match(SOQLParser.COMMA);
|
3541 | this.state = 302;
|
3542 | this.object_spec();
|
3543 | this.state = 307;
|
3544 | this._errHandler.sync(this);
|
3545 | _la = this._input.LA(1);
|
3546 | }
|
3547 | } catch (re) {
|
3548 | if(re instanceof antlr4.error.RecognitionException) {
|
3549 | localctx.exception = re;
|
3550 | this._errHandler.reportError(this, re);
|
3551 | this._errHandler.recover(this, re);
|
3552 | } else {
|
3553 | throw re;
|
3554 | }
|
3555 | } finally {
|
3556 | this.exitRule();
|
3557 | }
|
3558 | return localctx;
|
3559 | };
|
3560 |
|
3561 | function Using_clauseContext(parser, parent, invokingState) {
|
3562 | if(parent===undefined) {
|
3563 | parent = null;
|
3564 | }
|
3565 | if(invokingState===undefined || invokingState===null) {
|
3566 | invokingState = -1;
|
3567 | }
|
3568 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
3569 | this.parser = parser;
|
3570 | this.ruleIndex = SOQLParser.RULE_using_clause;
|
3571 | return this;
|
3572 | }
|
3573 |
|
3574 | Using_clauseContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
3575 | Using_clauseContext.prototype.constructor = Using_clauseContext;
|
3576 |
|
3577 | Using_clauseContext.prototype.USING = function() {
|
3578 | return this.getToken(SOQLParser.USING, 0);
|
3579 | };
|
3580 |
|
3581 | Using_clauseContext.prototype.SCOPE = function() {
|
3582 | return this.getToken(SOQLParser.SCOPE, 0);
|
3583 | };
|
3584 |
|
3585 | Using_clauseContext.prototype.filter_scope_name = function() {
|
3586 | return this.getTypedRuleContext(Filter_scope_nameContext,0);
|
3587 | };
|
3588 |
|
3589 | Using_clauseContext.prototype.enterRule = function(listener) {
|
3590 | if(listener instanceof SOQLListener ) {
|
3591 | listener.enterUsing_clause(this);
|
3592 | }
|
3593 | };
|
3594 |
|
3595 | Using_clauseContext.prototype.exitRule = function(listener) {
|
3596 | if(listener instanceof SOQLListener ) {
|
3597 | listener.exitUsing_clause(this);
|
3598 | }
|
3599 | };
|
3600 |
|
3601 |
|
3602 |
|
3603 |
|
3604 | SOQLParser.Using_clauseContext = Using_clauseContext;
|
3605 |
|
3606 | SOQLParser.prototype.using_clause = function() {
|
3607 |
|
3608 | var localctx = new Using_clauseContext(this, this._ctx, this.state);
|
3609 | this.enterRule(localctx, 58, SOQLParser.RULE_using_clause);
|
3610 | try {
|
3611 | this.enterOuterAlt(localctx, 1);
|
3612 | this.state = 308;
|
3613 | this.match(SOQLParser.USING);
|
3614 | this.state = 309;
|
3615 | this.match(SOQLParser.SCOPE);
|
3616 | this.state = 310;
|
3617 | this.filter_scope_name();
|
3618 | } catch (re) {
|
3619 | if(re instanceof antlr4.error.RecognitionException) {
|
3620 | localctx.exception = re;
|
3621 | this._errHandler.reportError(this, re);
|
3622 | this._errHandler.recover(this, re);
|
3623 | } else {
|
3624 | throw re;
|
3625 | }
|
3626 | } finally {
|
3627 | this.exitRule();
|
3628 | }
|
3629 | return localctx;
|
3630 | };
|
3631 |
|
3632 | function Where_clauseContext(parser, parent, invokingState) {
|
3633 | if(parent===undefined) {
|
3634 | parent = null;
|
3635 | }
|
3636 | if(invokingState===undefined || invokingState===null) {
|
3637 | invokingState = -1;
|
3638 | }
|
3639 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
3640 | this.parser = parser;
|
3641 | this.ruleIndex = SOQLParser.RULE_where_clause;
|
3642 | return this;
|
3643 | }
|
3644 |
|
3645 | Where_clauseContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
3646 | Where_clauseContext.prototype.constructor = Where_clauseContext;
|
3647 |
|
3648 | Where_clauseContext.prototype.WHERE = function() {
|
3649 | return this.getToken(SOQLParser.WHERE, 0);
|
3650 | };
|
3651 |
|
3652 | Where_clauseContext.prototype.condition = function() {
|
3653 | return this.getTypedRuleContext(ConditionContext,0);
|
3654 | };
|
3655 |
|
3656 | Where_clauseContext.prototype.enterRule = function(listener) {
|
3657 | if(listener instanceof SOQLListener ) {
|
3658 | listener.enterWhere_clause(this);
|
3659 | }
|
3660 | };
|
3661 |
|
3662 | Where_clauseContext.prototype.exitRule = function(listener) {
|
3663 | if(listener instanceof SOQLListener ) {
|
3664 | listener.exitWhere_clause(this);
|
3665 | }
|
3666 | };
|
3667 |
|
3668 |
|
3669 |
|
3670 |
|
3671 | SOQLParser.Where_clauseContext = Where_clauseContext;
|
3672 |
|
3673 | SOQLParser.prototype.where_clause = function() {
|
3674 |
|
3675 | var localctx = new Where_clauseContext(this, this._ctx, this.state);
|
3676 | this.enterRule(localctx, 60, SOQLParser.RULE_where_clause);
|
3677 | try {
|
3678 | this.enterOuterAlt(localctx, 1);
|
3679 | this.state = 312;
|
3680 | this.match(SOQLParser.WHERE);
|
3681 | this.state = 313;
|
3682 | this.condition();
|
3683 | } catch (re) {
|
3684 | if(re instanceof antlr4.error.RecognitionException) {
|
3685 | localctx.exception = re;
|
3686 | this._errHandler.reportError(this, re);
|
3687 | this._errHandler.recover(this, re);
|
3688 | } else {
|
3689 | throw re;
|
3690 | }
|
3691 | } finally {
|
3692 | this.exitRule();
|
3693 | }
|
3694 | return localctx;
|
3695 | };
|
3696 |
|
3697 | function Groupby_clauseContext(parser, parent, invokingState) {
|
3698 | if(parent===undefined) {
|
3699 | parent = null;
|
3700 | }
|
3701 | if(invokingState===undefined || invokingState===null) {
|
3702 | invokingState = -1;
|
3703 | }
|
3704 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
3705 | this.parser = parser;
|
3706 | this.ruleIndex = SOQLParser.RULE_groupby_clause;
|
3707 | return this;
|
3708 | }
|
3709 |
|
3710 | Groupby_clauseContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
3711 | Groupby_clauseContext.prototype.constructor = Groupby_clauseContext;
|
3712 |
|
3713 | Groupby_clauseContext.prototype.GROUP = function() {
|
3714 | return this.getToken(SOQLParser.GROUP, 0);
|
3715 | };
|
3716 |
|
3717 | Groupby_clauseContext.prototype.BY = function() {
|
3718 | return this.getToken(SOQLParser.BY, 0);
|
3719 | };
|
3720 |
|
3721 | Groupby_clauseContext.prototype.group_by_rollup_clause = function() {
|
3722 | return this.getTypedRuleContext(Group_by_rollup_clauseContext,0);
|
3723 | };
|
3724 |
|
3725 | Groupby_clauseContext.prototype.group_by_cube_clause = function() {
|
3726 | return this.getTypedRuleContext(Group_by_cube_clauseContext,0);
|
3727 | };
|
3728 |
|
3729 | Groupby_clauseContext.prototype.group_by_plain_clause = function() {
|
3730 | return this.getTypedRuleContext(Group_by_plain_clauseContext,0);
|
3731 | };
|
3732 |
|
3733 | Groupby_clauseContext.prototype.enterRule = function(listener) {
|
3734 | if(listener instanceof SOQLListener ) {
|
3735 | listener.enterGroupby_clause(this);
|
3736 | }
|
3737 | };
|
3738 |
|
3739 | Groupby_clauseContext.prototype.exitRule = function(listener) {
|
3740 | if(listener instanceof SOQLListener ) {
|
3741 | listener.exitGroupby_clause(this);
|
3742 | }
|
3743 | };
|
3744 |
|
3745 |
|
3746 |
|
3747 |
|
3748 | SOQLParser.Groupby_clauseContext = Groupby_clauseContext;
|
3749 |
|
3750 | SOQLParser.prototype.groupby_clause = function() {
|
3751 |
|
3752 | var localctx = new Groupby_clauseContext(this, this._ctx, this.state);
|
3753 | this.enterRule(localctx, 62, SOQLParser.RULE_groupby_clause);
|
3754 | try {
|
3755 | this.enterOuterAlt(localctx, 1);
|
3756 | this.state = 315;
|
3757 | this.match(SOQLParser.GROUP);
|
3758 | this.state = 316;
|
3759 | this.match(SOQLParser.BY);
|
3760 | this.state = 320;
|
3761 | this._errHandler.sync(this);
|
3762 | switch(this._input.LA(1)) {
|
3763 | case SOQLParser.ROLLUP:
|
3764 | this.state = 317;
|
3765 | this.group_by_rollup_clause();
|
3766 | break;
|
3767 | case SOQLParser.CUBE:
|
3768 | this.state = 318;
|
3769 | this.group_by_cube_clause();
|
3770 | break;
|
3771 | case SOQLParser.GROUP:
|
3772 | case SOQLParser.ABOVE:
|
3773 | case SOQLParser.ABOVE_OR_BELOW:
|
3774 | case SOQLParser.AT:
|
3775 | case SOQLParser.BELOW:
|
3776 | case SOQLParser.CATEGORY:
|
3777 | case SOQLParser.DATA:
|
3778 | case SOQLParser.END:
|
3779 | case SOQLParser.OFFSET:
|
3780 | case SOQLParser.ORDER:
|
3781 | case SOQLParser.REFERENCE:
|
3782 | case SOQLParser.SCOPE:
|
3783 | case SOQLParser.TRACKING:
|
3784 | case SOQLParser.THEN:
|
3785 | case SOQLParser.TYPEOF:
|
3786 | case SOQLParser.VIEW:
|
3787 | case SOQLParser.VIEWSTAT:
|
3788 | case SOQLParser.WHEN:
|
3789 | case SOQLParser.CALENDAR_MONTH:
|
3790 | case SOQLParser.CALENDAR_QUARTER:
|
3791 | case SOQLParser.CALENDAR_YEAR:
|
3792 | case SOQLParser.DAY_IN_MONTH:
|
3793 | case SOQLParser.DAY_IN_WEEK:
|
3794 | case SOQLParser.DAY_IN_YEAR:
|
3795 | case SOQLParser.DAY_ONLY:
|
3796 | case SOQLParser.FISCAL_MONTH:
|
3797 | case SOQLParser.FISCAL_QUARTER:
|
3798 | case SOQLParser.FISCAL_YEAR:
|
3799 | case SOQLParser.HOUR_IN_DAY:
|
3800 | case SOQLParser.WEEK_IN_MONTH:
|
3801 | case SOQLParser.WEEK_IN_YEAR:
|
3802 | case SOQLParser.AVG:
|
3803 | case SOQLParser.COUNT:
|
3804 | case SOQLParser.COUNT_DISTINCT:
|
3805 | case SOQLParser.MIN:
|
3806 | case SOQLParser.MAX:
|
3807 | case SOQLParser.SUM:
|
3808 | case SOQLParser.DISTANCE:
|
3809 | case SOQLParser.GEOLOCATION:
|
3810 | case SOQLParser.FORMAT:
|
3811 | case SOQLParser.TOLABEL:
|
3812 | case SOQLParser.CONVERT_TIME_ZONE:
|
3813 | case SOQLParser.CONVERT_CURRENCY:
|
3814 | case SOQLParser.GROUPING:
|
3815 | case SOQLParser.YESTERDAY:
|
3816 | case SOQLParser.TODAY:
|
3817 | case SOQLParser.TOMORROW:
|
3818 | case SOQLParser.LAST_WEEK:
|
3819 | case SOQLParser.THIS_WEEK:
|
3820 | case SOQLParser.NEXT_WEEK:
|
3821 | case SOQLParser.LAST_MONTH:
|
3822 | case SOQLParser.THIS_MONTH:
|
3823 | case SOQLParser.NEXT_MONTH:
|
3824 | case SOQLParser.LAST_90_DAYS:
|
3825 | case SOQLParser.NEXT_90_DAYS:
|
3826 | case SOQLParser.THIS_QUARTER:
|
3827 | case SOQLParser.LAST_QUARTER:
|
3828 | case SOQLParser.NEXT_QUARTER:
|
3829 | case SOQLParser.THIS_YEAR:
|
3830 | case SOQLParser.LAST_YEAR:
|
3831 | case SOQLParser.NEXT_YEAR:
|
3832 | case SOQLParser.THIS_FISCAL_QUARTER:
|
3833 | case SOQLParser.LAST_FISCAL_QUARTER:
|
3834 | case SOQLParser.NEXT_FISCAL_QUARTER:
|
3835 | case SOQLParser.THIS_FISCAL_YEAR:
|
3836 | case SOQLParser.LAST_FISCAL_YEAR:
|
3837 | case SOQLParser.NEXT_FISCAL_YEAR:
|
3838 | case SOQLParser.NEXT_N_DAYS:
|
3839 | case SOQLParser.LAST_N_DAYS:
|
3840 | case SOQLParser.N_DAYS_AGO:
|
3841 | case SOQLParser.NEXT_N_WEEKS:
|
3842 | case SOQLParser.LAST_N_WEEKS:
|
3843 | case SOQLParser.N_WEEKS_AGO:
|
3844 | case SOQLParser.NEXT_N_MONTHS:
|
3845 | case SOQLParser.LAST_N_MONTHS:
|
3846 | case SOQLParser.N_MONTHS_AGO:
|
3847 | case SOQLParser.NEXT_N_QUARTERS:
|
3848 | case SOQLParser.LAST_N_QUARTERS:
|
3849 | case SOQLParser.N_QUARTERS_AGO:
|
3850 | case SOQLParser.NEXT_N_YEARS:
|
3851 | case SOQLParser.LAST_N_YEARS:
|
3852 | case SOQLParser.N_YEARS_AGO:
|
3853 | case SOQLParser.NEXT_N_FISCAL_QUARTERS:
|
3854 | case SOQLParser.LAST_N_FISCAL_QUARTERS:
|
3855 | case SOQLParser.N_FISCAL_QUARTERS_AGO:
|
3856 | case SOQLParser.NEXT_N_FISCAL_YEARS:
|
3857 | case SOQLParser.LAST_N_FISCAL_YEARS:
|
3858 | case SOQLParser.N_FISCAL_YEARS_AGO:
|
3859 | case SOQLParser.ID:
|
3860 | this.state = 319;
|
3861 | this.group_by_plain_clause();
|
3862 | break;
|
3863 | default:
|
3864 | throw new antlr4.error.NoViableAltException(this);
|
3865 | }
|
3866 | } catch (re) {
|
3867 | if(re instanceof antlr4.error.RecognitionException) {
|
3868 | localctx.exception = re;
|
3869 | this._errHandler.reportError(this, re);
|
3870 | this._errHandler.recover(this, re);
|
3871 | } else {
|
3872 | throw re;
|
3873 | }
|
3874 | } finally {
|
3875 | this.exitRule();
|
3876 | }
|
3877 | return localctx;
|
3878 | };
|
3879 |
|
3880 | function Having_clauseContext(parser, parent, invokingState) {
|
3881 | if(parent===undefined) {
|
3882 | parent = null;
|
3883 | }
|
3884 | if(invokingState===undefined || invokingState===null) {
|
3885 | invokingState = -1;
|
3886 | }
|
3887 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
3888 | this.parser = parser;
|
3889 | this.ruleIndex = SOQLParser.RULE_having_clause;
|
3890 | return this;
|
3891 | }
|
3892 |
|
3893 | Having_clauseContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
3894 | Having_clauseContext.prototype.constructor = Having_clauseContext;
|
3895 |
|
3896 | Having_clauseContext.prototype.HAVING = function() {
|
3897 | return this.getToken(SOQLParser.HAVING, 0);
|
3898 | };
|
3899 |
|
3900 | Having_clauseContext.prototype.condition = function() {
|
3901 | return this.getTypedRuleContext(ConditionContext,0);
|
3902 | };
|
3903 |
|
3904 | Having_clauseContext.prototype.enterRule = function(listener) {
|
3905 | if(listener instanceof SOQLListener ) {
|
3906 | listener.enterHaving_clause(this);
|
3907 | }
|
3908 | };
|
3909 |
|
3910 | Having_clauseContext.prototype.exitRule = function(listener) {
|
3911 | if(listener instanceof SOQLListener ) {
|
3912 | listener.exitHaving_clause(this);
|
3913 | }
|
3914 | };
|
3915 |
|
3916 |
|
3917 |
|
3918 |
|
3919 | SOQLParser.Having_clauseContext = Having_clauseContext;
|
3920 |
|
3921 | SOQLParser.prototype.having_clause = function() {
|
3922 |
|
3923 | var localctx = new Having_clauseContext(this, this._ctx, this.state);
|
3924 | this.enterRule(localctx, 64, SOQLParser.RULE_having_clause);
|
3925 | try {
|
3926 | this.enterOuterAlt(localctx, 1);
|
3927 | this.state = 322;
|
3928 | this.match(SOQLParser.HAVING);
|
3929 | this.state = 323;
|
3930 | this.condition();
|
3931 | } catch (re) {
|
3932 | if(re instanceof antlr4.error.RecognitionException) {
|
3933 | localctx.exception = re;
|
3934 | this._errHandler.reportError(this, re);
|
3935 | this._errHandler.recover(this, re);
|
3936 | } else {
|
3937 | throw re;
|
3938 | }
|
3939 | } finally {
|
3940 | this.exitRule();
|
3941 | }
|
3942 | return localctx;
|
3943 | };
|
3944 |
|
3945 | function Orderby_clauseContext(parser, parent, invokingState) {
|
3946 | if(parent===undefined) {
|
3947 | parent = null;
|
3948 | }
|
3949 | if(invokingState===undefined || invokingState===null) {
|
3950 | invokingState = -1;
|
3951 | }
|
3952 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
3953 | this.parser = parser;
|
3954 | this.ruleIndex = SOQLParser.RULE_orderby_clause;
|
3955 | return this;
|
3956 | }
|
3957 |
|
3958 | Orderby_clauseContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
3959 | Orderby_clauseContext.prototype.constructor = Orderby_clauseContext;
|
3960 |
|
3961 | Orderby_clauseContext.prototype.ORDER = function() {
|
3962 | return this.getToken(SOQLParser.ORDER, 0);
|
3963 | };
|
3964 |
|
3965 | Orderby_clauseContext.prototype.BY = function() {
|
3966 | return this.getToken(SOQLParser.BY, 0);
|
3967 | };
|
3968 |
|
3969 | Orderby_clauseContext.prototype.order_by_list = function() {
|
3970 | return this.getTypedRuleContext(Order_by_listContext,0);
|
3971 | };
|
3972 |
|
3973 | Orderby_clauseContext.prototype.enterRule = function(listener) {
|
3974 | if(listener instanceof SOQLListener ) {
|
3975 | listener.enterOrderby_clause(this);
|
3976 | }
|
3977 | };
|
3978 |
|
3979 | Orderby_clauseContext.prototype.exitRule = function(listener) {
|
3980 | if(listener instanceof SOQLListener ) {
|
3981 | listener.exitOrderby_clause(this);
|
3982 | }
|
3983 | };
|
3984 |
|
3985 |
|
3986 |
|
3987 |
|
3988 | SOQLParser.Orderby_clauseContext = Orderby_clauseContext;
|
3989 |
|
3990 | SOQLParser.prototype.orderby_clause = function() {
|
3991 |
|
3992 | var localctx = new Orderby_clauseContext(this, this._ctx, this.state);
|
3993 | this.enterRule(localctx, 66, SOQLParser.RULE_orderby_clause);
|
3994 | try {
|
3995 | this.enterOuterAlt(localctx, 1);
|
3996 | this.state = 325;
|
3997 | this.match(SOQLParser.ORDER);
|
3998 | this.state = 326;
|
3999 | this.match(SOQLParser.BY);
|
4000 | this.state = 327;
|
4001 | this.order_by_list();
|
4002 | } catch (re) {
|
4003 | if(re instanceof antlr4.error.RecognitionException) {
|
4004 | localctx.exception = re;
|
4005 | this._errHandler.reportError(this, re);
|
4006 | this._errHandler.recover(this, re);
|
4007 | } else {
|
4008 | throw re;
|
4009 | }
|
4010 | } finally {
|
4011 | this.exitRule();
|
4012 | }
|
4013 | return localctx;
|
4014 | };
|
4015 |
|
4016 | function Limit_clauseContext(parser, parent, invokingState) {
|
4017 | if(parent===undefined) {
|
4018 | parent = null;
|
4019 | }
|
4020 | if(invokingState===undefined || invokingState===null) {
|
4021 | invokingState = -1;
|
4022 | }
|
4023 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
4024 | this.parser = parser;
|
4025 | this.ruleIndex = SOQLParser.RULE_limit_clause;
|
4026 | return this;
|
4027 | }
|
4028 |
|
4029 | Limit_clauseContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
4030 | Limit_clauseContext.prototype.constructor = Limit_clauseContext;
|
4031 |
|
4032 | Limit_clauseContext.prototype.LIMIT = function() {
|
4033 | return this.getToken(SOQLParser.LIMIT, 0);
|
4034 | };
|
4035 |
|
4036 | Limit_clauseContext.prototype.UNSIGNED_INTEGER = function() {
|
4037 | return this.getToken(SOQLParser.UNSIGNED_INTEGER, 0);
|
4038 | };
|
4039 |
|
4040 | Limit_clauseContext.prototype.enterRule = function(listener) {
|
4041 | if(listener instanceof SOQLListener ) {
|
4042 | listener.enterLimit_clause(this);
|
4043 | }
|
4044 | };
|
4045 |
|
4046 | Limit_clauseContext.prototype.exitRule = function(listener) {
|
4047 | if(listener instanceof SOQLListener ) {
|
4048 | listener.exitLimit_clause(this);
|
4049 | }
|
4050 | };
|
4051 |
|
4052 |
|
4053 |
|
4054 |
|
4055 | SOQLParser.Limit_clauseContext = Limit_clauseContext;
|
4056 |
|
4057 | SOQLParser.prototype.limit_clause = function() {
|
4058 |
|
4059 | var localctx = new Limit_clauseContext(this, this._ctx, this.state);
|
4060 | this.enterRule(localctx, 68, SOQLParser.RULE_limit_clause);
|
4061 | try {
|
4062 | this.enterOuterAlt(localctx, 1);
|
4063 | this.state = 329;
|
4064 | this.match(SOQLParser.LIMIT);
|
4065 | this.state = 330;
|
4066 | this.match(SOQLParser.UNSIGNED_INTEGER);
|
4067 | } catch (re) {
|
4068 | if(re instanceof antlr4.error.RecognitionException) {
|
4069 | localctx.exception = re;
|
4070 | this._errHandler.reportError(this, re);
|
4071 | this._errHandler.recover(this, re);
|
4072 | } else {
|
4073 | throw re;
|
4074 | }
|
4075 | } finally {
|
4076 | this.exitRule();
|
4077 | }
|
4078 | return localctx;
|
4079 | };
|
4080 |
|
4081 | function Offset_clauseContext(parser, parent, invokingState) {
|
4082 | if(parent===undefined) {
|
4083 | parent = null;
|
4084 | }
|
4085 | if(invokingState===undefined || invokingState===null) {
|
4086 | invokingState = -1;
|
4087 | }
|
4088 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
4089 | this.parser = parser;
|
4090 | this.ruleIndex = SOQLParser.RULE_offset_clause;
|
4091 | return this;
|
4092 | }
|
4093 |
|
4094 | Offset_clauseContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
4095 | Offset_clauseContext.prototype.constructor = Offset_clauseContext;
|
4096 |
|
4097 | Offset_clauseContext.prototype.OFFSET = function() {
|
4098 | return this.getToken(SOQLParser.OFFSET, 0);
|
4099 | };
|
4100 |
|
4101 | Offset_clauseContext.prototype.UNSIGNED_INTEGER = function() {
|
4102 | return this.getToken(SOQLParser.UNSIGNED_INTEGER, 0);
|
4103 | };
|
4104 |
|
4105 | Offset_clauseContext.prototype.enterRule = function(listener) {
|
4106 | if(listener instanceof SOQLListener ) {
|
4107 | listener.enterOffset_clause(this);
|
4108 | }
|
4109 | };
|
4110 |
|
4111 | Offset_clauseContext.prototype.exitRule = function(listener) {
|
4112 | if(listener instanceof SOQLListener ) {
|
4113 | listener.exitOffset_clause(this);
|
4114 | }
|
4115 | };
|
4116 |
|
4117 |
|
4118 |
|
4119 |
|
4120 | SOQLParser.Offset_clauseContext = Offset_clauseContext;
|
4121 |
|
4122 | SOQLParser.prototype.offset_clause = function() {
|
4123 |
|
4124 | var localctx = new Offset_clauseContext(this, this._ctx, this.state);
|
4125 | this.enterRule(localctx, 70, SOQLParser.RULE_offset_clause);
|
4126 | try {
|
4127 | this.enterOuterAlt(localctx, 1);
|
4128 | this.state = 332;
|
4129 | this.match(SOQLParser.OFFSET);
|
4130 | this.state = 333;
|
4131 | this.match(SOQLParser.UNSIGNED_INTEGER);
|
4132 | } catch (re) {
|
4133 | if(re instanceof antlr4.error.RecognitionException) {
|
4134 | localctx.exception = re;
|
4135 | this._errHandler.reportError(this, re);
|
4136 | this._errHandler.recover(this, re);
|
4137 | } else {
|
4138 | throw re;
|
4139 | }
|
4140 | } finally {
|
4141 | this.exitRule();
|
4142 | }
|
4143 | return localctx;
|
4144 | };
|
4145 |
|
4146 | function For_clauseContext(parser, parent, invokingState) {
|
4147 | if(parent===undefined) {
|
4148 | parent = null;
|
4149 | }
|
4150 | if(invokingState===undefined || invokingState===null) {
|
4151 | invokingState = -1;
|
4152 | }
|
4153 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
4154 | this.parser = parser;
|
4155 | this.ruleIndex = SOQLParser.RULE_for_clause;
|
4156 | return this;
|
4157 | }
|
4158 |
|
4159 | For_clauseContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
4160 | For_clauseContext.prototype.constructor = For_clauseContext;
|
4161 |
|
4162 | For_clauseContext.prototype.FOR = function() {
|
4163 | return this.getToken(SOQLParser.FOR, 0);
|
4164 | };
|
4165 |
|
4166 | For_clauseContext.prototype.for_value = function(i) {
|
4167 | if(i===undefined) {
|
4168 | i = null;
|
4169 | }
|
4170 | if(i===null) {
|
4171 | return this.getTypedRuleContexts(For_valueContext);
|
4172 | } else {
|
4173 | return this.getTypedRuleContext(For_valueContext,i);
|
4174 | }
|
4175 | };
|
4176 |
|
4177 | For_clauseContext.prototype.COMMA = function(i) {
|
4178 | if(i===undefined) {
|
4179 | i = null;
|
4180 | }
|
4181 | if(i===null) {
|
4182 | return this.getTokens(SOQLParser.COMMA);
|
4183 | } else {
|
4184 | return this.getToken(SOQLParser.COMMA, i);
|
4185 | }
|
4186 | };
|
4187 |
|
4188 |
|
4189 | For_clauseContext.prototype.enterRule = function(listener) {
|
4190 | if(listener instanceof SOQLListener ) {
|
4191 | listener.enterFor_clause(this);
|
4192 | }
|
4193 | };
|
4194 |
|
4195 | For_clauseContext.prototype.exitRule = function(listener) {
|
4196 | if(listener instanceof SOQLListener ) {
|
4197 | listener.exitFor_clause(this);
|
4198 | }
|
4199 | };
|
4200 |
|
4201 |
|
4202 |
|
4203 |
|
4204 | SOQLParser.For_clauseContext = For_clauseContext;
|
4205 |
|
4206 | SOQLParser.prototype.for_clause = function() {
|
4207 |
|
4208 | var localctx = new For_clauseContext(this, this._ctx, this.state);
|
4209 | this.enterRule(localctx, 72, SOQLParser.RULE_for_clause);
|
4210 | var _la = 0;
|
4211 | try {
|
4212 | this.enterOuterAlt(localctx, 1);
|
4213 | this.state = 335;
|
4214 | this.match(SOQLParser.FOR);
|
4215 | this.state = 336;
|
4216 | this.for_value();
|
4217 | this.state = 339;
|
4218 | this._errHandler.sync(this);
|
4219 | var la_ = this._interp.adaptivePredict(this._input,19,this._ctx);
|
4220 | if(la_===1) {
|
4221 | this.state = 337;
|
4222 | this.match(SOQLParser.COMMA);
|
4223 | this.state = 338;
|
4224 | this.for_value();
|
4225 |
|
4226 | }
|
4227 | this.state = 343;
|
4228 | this._errHandler.sync(this);
|
4229 | _la = this._input.LA(1);
|
4230 | if(_la===SOQLParser.COMMA) {
|
4231 | this.state = 341;
|
4232 | this.match(SOQLParser.COMMA);
|
4233 | this.state = 342;
|
4234 | this.for_value();
|
4235 | }
|
4236 |
|
4237 | } catch (re) {
|
4238 | if(re instanceof antlr4.error.RecognitionException) {
|
4239 | localctx.exception = re;
|
4240 | this._errHandler.reportError(this, re);
|
4241 | this._errHandler.recover(this, re);
|
4242 | } else {
|
4243 | throw re;
|
4244 | }
|
4245 | } finally {
|
4246 | this.exitRule();
|
4247 | }
|
4248 | return localctx;
|
4249 | };
|
4250 |
|
4251 | function Update_clauseContext(parser, parent, invokingState) {
|
4252 | if(parent===undefined) {
|
4253 | parent = null;
|
4254 | }
|
4255 | if(invokingState===undefined || invokingState===null) {
|
4256 | invokingState = -1;
|
4257 | }
|
4258 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
4259 | this.parser = parser;
|
4260 | this.ruleIndex = SOQLParser.RULE_update_clause;
|
4261 | return this;
|
4262 | }
|
4263 |
|
4264 | Update_clauseContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
4265 | Update_clauseContext.prototype.constructor = Update_clauseContext;
|
4266 |
|
4267 | Update_clauseContext.prototype.UPDATE = function() {
|
4268 | return this.getToken(SOQLParser.UPDATE, 0);
|
4269 | };
|
4270 |
|
4271 | Update_clauseContext.prototype.update_value = function(i) {
|
4272 | if(i===undefined) {
|
4273 | i = null;
|
4274 | }
|
4275 | if(i===null) {
|
4276 | return this.getTypedRuleContexts(Update_valueContext);
|
4277 | } else {
|
4278 | return this.getTypedRuleContext(Update_valueContext,i);
|
4279 | }
|
4280 | };
|
4281 |
|
4282 | Update_clauseContext.prototype.COMMA = function() {
|
4283 | return this.getToken(SOQLParser.COMMA, 0);
|
4284 | };
|
4285 |
|
4286 | Update_clauseContext.prototype.enterRule = function(listener) {
|
4287 | if(listener instanceof SOQLListener ) {
|
4288 | listener.enterUpdate_clause(this);
|
4289 | }
|
4290 | };
|
4291 |
|
4292 | Update_clauseContext.prototype.exitRule = function(listener) {
|
4293 | if(listener instanceof SOQLListener ) {
|
4294 | listener.exitUpdate_clause(this);
|
4295 | }
|
4296 | };
|
4297 |
|
4298 |
|
4299 |
|
4300 |
|
4301 | SOQLParser.Update_clauseContext = Update_clauseContext;
|
4302 |
|
4303 | SOQLParser.prototype.update_clause = function() {
|
4304 |
|
4305 | var localctx = new Update_clauseContext(this, this._ctx, this.state);
|
4306 | this.enterRule(localctx, 74, SOQLParser.RULE_update_clause);
|
4307 | var _la = 0;
|
4308 | try {
|
4309 | this.enterOuterAlt(localctx, 1);
|
4310 | this.state = 345;
|
4311 | this.match(SOQLParser.UPDATE);
|
4312 | this.state = 346;
|
4313 | this.update_value();
|
4314 | this.state = 349;
|
4315 | this._errHandler.sync(this);
|
4316 | _la = this._input.LA(1);
|
4317 | if(_la===SOQLParser.COMMA) {
|
4318 | this.state = 347;
|
4319 | this.match(SOQLParser.COMMA);
|
4320 | this.state = 348;
|
4321 | this.update_value();
|
4322 | }
|
4323 |
|
4324 | } catch (re) {
|
4325 | if(re instanceof antlr4.error.RecognitionException) {
|
4326 | localctx.exception = re;
|
4327 | this._errHandler.reportError(this, re);
|
4328 | this._errHandler.recover(this, re);
|
4329 | } else {
|
4330 | throw re;
|
4331 | }
|
4332 | } finally {
|
4333 | this.exitRule();
|
4334 | }
|
4335 | return localctx;
|
4336 | };
|
4337 |
|
4338 | function Soql_subqueryContext(parser, parent, invokingState) {
|
4339 | if(parent===undefined) {
|
4340 | parent = null;
|
4341 | }
|
4342 | if(invokingState===undefined || invokingState===null) {
|
4343 | invokingState = -1;
|
4344 | }
|
4345 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
4346 | this.parser = parser;
|
4347 | this.ruleIndex = SOQLParser.RULE_soql_subquery;
|
4348 | return this;
|
4349 | }
|
4350 |
|
4351 | Soql_subqueryContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
4352 | Soql_subqueryContext.prototype.constructor = Soql_subqueryContext;
|
4353 |
|
4354 | Soql_subqueryContext.prototype.LPAREN = function() {
|
4355 | return this.getToken(SOQLParser.LPAREN, 0);
|
4356 | };
|
4357 |
|
4358 | Soql_subqueryContext.prototype.subquery_select_clause = function() {
|
4359 | return this.getTypedRuleContext(Subquery_select_clauseContext,0);
|
4360 | };
|
4361 |
|
4362 | Soql_subqueryContext.prototype.from_clause = function() {
|
4363 | return this.getTypedRuleContext(From_clauseContext,0);
|
4364 | };
|
4365 |
|
4366 | Soql_subqueryContext.prototype.RPAREN = function() {
|
4367 | return this.getToken(SOQLParser.RPAREN, 0);
|
4368 | };
|
4369 |
|
4370 | Soql_subqueryContext.prototype.using_clause = function() {
|
4371 | return this.getTypedRuleContext(Using_clauseContext,0);
|
4372 | };
|
4373 |
|
4374 | Soql_subqueryContext.prototype.where_clause = function() {
|
4375 | return this.getTypedRuleContext(Where_clauseContext,0);
|
4376 | };
|
4377 |
|
4378 | Soql_subqueryContext.prototype.with_clause = function() {
|
4379 | return this.getTypedRuleContext(With_clauseContext,0);
|
4380 | };
|
4381 |
|
4382 | Soql_subqueryContext.prototype.orderby_clause = function() {
|
4383 | return this.getTypedRuleContext(Orderby_clauseContext,0);
|
4384 | };
|
4385 |
|
4386 | Soql_subqueryContext.prototype.limit_clause = function() {
|
4387 | return this.getTypedRuleContext(Limit_clauseContext,0);
|
4388 | };
|
4389 |
|
4390 | Soql_subqueryContext.prototype.offset_clause = function() {
|
4391 | return this.getTypedRuleContext(Offset_clauseContext,0);
|
4392 | };
|
4393 |
|
4394 | Soql_subqueryContext.prototype.for_clause = function() {
|
4395 | return this.getTypedRuleContext(For_clauseContext,0);
|
4396 | };
|
4397 |
|
4398 | Soql_subqueryContext.prototype.update_clause = function() {
|
4399 | return this.getTypedRuleContext(Update_clauseContext,0);
|
4400 | };
|
4401 |
|
4402 | Soql_subqueryContext.prototype.enterRule = function(listener) {
|
4403 | if(listener instanceof SOQLListener ) {
|
4404 | listener.enterSoql_subquery(this);
|
4405 | }
|
4406 | };
|
4407 |
|
4408 | Soql_subqueryContext.prototype.exitRule = function(listener) {
|
4409 | if(listener instanceof SOQLListener ) {
|
4410 | listener.exitSoql_subquery(this);
|
4411 | }
|
4412 | };
|
4413 |
|
4414 |
|
4415 |
|
4416 |
|
4417 | SOQLParser.Soql_subqueryContext = Soql_subqueryContext;
|
4418 |
|
4419 | SOQLParser.prototype.soql_subquery = function() {
|
4420 |
|
4421 | var localctx = new Soql_subqueryContext(this, this._ctx, this.state);
|
4422 | this.enterRule(localctx, 76, SOQLParser.RULE_soql_subquery);
|
4423 | var _la = 0;
|
4424 | try {
|
4425 | this.enterOuterAlt(localctx, 1);
|
4426 | this.state = 351;
|
4427 | this.match(SOQLParser.LPAREN);
|
4428 | this.state = 352;
|
4429 | this.subquery_select_clause();
|
4430 | this.state = 353;
|
4431 | this.from_clause();
|
4432 | this.state = 355;
|
4433 | this._errHandler.sync(this);
|
4434 | _la = this._input.LA(1);
|
4435 | if(_la===SOQLParser.USING) {
|
4436 | this.state = 354;
|
4437 | this.using_clause();
|
4438 | }
|
4439 |
|
4440 | this.state = 358;
|
4441 | this._errHandler.sync(this);
|
4442 | _la = this._input.LA(1);
|
4443 | if(_la===SOQLParser.WHERE) {
|
4444 | this.state = 357;
|
4445 | this.where_clause();
|
4446 | }
|
4447 |
|
4448 | this.state = 361;
|
4449 | this._errHandler.sync(this);
|
4450 | _la = this._input.LA(1);
|
4451 | if(_la===SOQLParser.WITH) {
|
4452 | this.state = 360;
|
4453 | this.with_clause();
|
4454 | }
|
4455 |
|
4456 | this.state = 364;
|
4457 | this._errHandler.sync(this);
|
4458 | _la = this._input.LA(1);
|
4459 | if(_la===SOQLParser.ORDER) {
|
4460 | this.state = 363;
|
4461 | this.orderby_clause();
|
4462 | }
|
4463 |
|
4464 | this.state = 367;
|
4465 | this._errHandler.sync(this);
|
4466 | _la = this._input.LA(1);
|
4467 | if(_la===SOQLParser.LIMIT) {
|
4468 | this.state = 366;
|
4469 | this.limit_clause();
|
4470 | }
|
4471 |
|
4472 | this.state = 370;
|
4473 | this._errHandler.sync(this);
|
4474 | _la = this._input.LA(1);
|
4475 | if(_la===SOQLParser.OFFSET) {
|
4476 | this.state = 369;
|
4477 | this.offset_clause();
|
4478 | }
|
4479 |
|
4480 | this.state = 373;
|
4481 | this._errHandler.sync(this);
|
4482 | _la = this._input.LA(1);
|
4483 | if(_la===SOQLParser.FOR) {
|
4484 | this.state = 372;
|
4485 | this.for_clause();
|
4486 | }
|
4487 |
|
4488 | this.state = 376;
|
4489 | this._errHandler.sync(this);
|
4490 | _la = this._input.LA(1);
|
4491 | if(_la===SOQLParser.UPDATE) {
|
4492 | this.state = 375;
|
4493 | this.update_clause();
|
4494 | }
|
4495 |
|
4496 | this.state = 378;
|
4497 | this.match(SOQLParser.RPAREN);
|
4498 | } catch (re) {
|
4499 | if(re instanceof antlr4.error.RecognitionException) {
|
4500 | localctx.exception = re;
|
4501 | this._errHandler.reportError(this, re);
|
4502 | this._errHandler.recover(this, re);
|
4503 | } else {
|
4504 | throw re;
|
4505 | }
|
4506 | } finally {
|
4507 | this.exitRule();
|
4508 | }
|
4509 | return localctx;
|
4510 | };
|
4511 |
|
4512 | function Subquery_select_clauseContext(parser, parent, invokingState) {
|
4513 | if(parent===undefined) {
|
4514 | parent = null;
|
4515 | }
|
4516 | if(invokingState===undefined || invokingState===null) {
|
4517 | invokingState = -1;
|
4518 | }
|
4519 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
4520 | this.parser = parser;
|
4521 | this.ruleIndex = SOQLParser.RULE_subquery_select_clause;
|
4522 | return this;
|
4523 | }
|
4524 |
|
4525 | Subquery_select_clauseContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
4526 | Subquery_select_clauseContext.prototype.constructor = Subquery_select_clauseContext;
|
4527 |
|
4528 | Subquery_select_clauseContext.prototype.SELECT = function() {
|
4529 | return this.getToken(SOQLParser.SELECT, 0);
|
4530 | };
|
4531 |
|
4532 | Subquery_select_clauseContext.prototype.subquery_select_spec = function(i) {
|
4533 | if(i===undefined) {
|
4534 | i = null;
|
4535 | }
|
4536 | if(i===null) {
|
4537 | return this.getTypedRuleContexts(Subquery_select_specContext);
|
4538 | } else {
|
4539 | return this.getTypedRuleContext(Subquery_select_specContext,i);
|
4540 | }
|
4541 | };
|
4542 |
|
4543 | Subquery_select_clauseContext.prototype.COMMA = function(i) {
|
4544 | if(i===undefined) {
|
4545 | i = null;
|
4546 | }
|
4547 | if(i===null) {
|
4548 | return this.getTokens(SOQLParser.COMMA);
|
4549 | } else {
|
4550 | return this.getToken(SOQLParser.COMMA, i);
|
4551 | }
|
4552 | };
|
4553 |
|
4554 |
|
4555 | Subquery_select_clauseContext.prototype.enterRule = function(listener) {
|
4556 | if(listener instanceof SOQLListener ) {
|
4557 | listener.enterSubquery_select_clause(this);
|
4558 | }
|
4559 | };
|
4560 |
|
4561 | Subquery_select_clauseContext.prototype.exitRule = function(listener) {
|
4562 | if(listener instanceof SOQLListener ) {
|
4563 | listener.exitSubquery_select_clause(this);
|
4564 | }
|
4565 | };
|
4566 |
|
4567 |
|
4568 |
|
4569 |
|
4570 | SOQLParser.Subquery_select_clauseContext = Subquery_select_clauseContext;
|
4571 |
|
4572 | SOQLParser.prototype.subquery_select_clause = function() {
|
4573 |
|
4574 | var localctx = new Subquery_select_clauseContext(this, this._ctx, this.state);
|
4575 | this.enterRule(localctx, 78, SOQLParser.RULE_subquery_select_clause);
|
4576 | var _la = 0;
|
4577 | try {
|
4578 | this.enterOuterAlt(localctx, 1);
|
4579 | this.state = 380;
|
4580 | this.match(SOQLParser.SELECT);
|
4581 | this.state = 381;
|
4582 | this.subquery_select_spec();
|
4583 | this.state = 386;
|
4584 | this._errHandler.sync(this);
|
4585 | _la = this._input.LA(1);
|
4586 | while(_la===SOQLParser.COMMA) {
|
4587 | this.state = 382;
|
4588 | this.match(SOQLParser.COMMA);
|
4589 | this.state = 383;
|
4590 | this.subquery_select_spec();
|
4591 | this.state = 388;
|
4592 | this._errHandler.sync(this);
|
4593 | _la = this._input.LA(1);
|
4594 | }
|
4595 | } catch (re) {
|
4596 | if(re instanceof antlr4.error.RecognitionException) {
|
4597 | localctx.exception = re;
|
4598 | this._errHandler.reportError(this, re);
|
4599 | this._errHandler.recover(this, re);
|
4600 | } else {
|
4601 | throw re;
|
4602 | }
|
4603 | } finally {
|
4604 | this.exitRule();
|
4605 | }
|
4606 | return localctx;
|
4607 | };
|
4608 |
|
4609 | function Select_specContext(parser, parent, invokingState) {
|
4610 | if(parent===undefined) {
|
4611 | parent = null;
|
4612 | }
|
4613 | if(invokingState===undefined || invokingState===null) {
|
4614 | invokingState = -1;
|
4615 | }
|
4616 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
4617 | this.parser = parser;
|
4618 | this.ruleIndex = SOQLParser.RULE_select_spec;
|
4619 | return this;
|
4620 | }
|
4621 |
|
4622 | Select_specContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
4623 | Select_specContext.prototype.constructor = Select_specContext;
|
4624 |
|
4625 | Select_specContext.prototype.field_spec = function() {
|
4626 | return this.getTypedRuleContext(Field_specContext,0);
|
4627 | };
|
4628 |
|
4629 | Select_specContext.prototype.function_call_spec = function() {
|
4630 | return this.getTypedRuleContext(Function_call_specContext,0);
|
4631 | };
|
4632 |
|
4633 | Select_specContext.prototype.soql_subquery = function() {
|
4634 | return this.getTypedRuleContext(Soql_subqueryContext,0);
|
4635 | };
|
4636 |
|
4637 | Select_specContext.prototype.typeof_spec = function() {
|
4638 | return this.getTypedRuleContext(Typeof_specContext,0);
|
4639 | };
|
4640 |
|
4641 | Select_specContext.prototype.enterRule = function(listener) {
|
4642 | if(listener instanceof SOQLListener ) {
|
4643 | listener.enterSelect_spec(this);
|
4644 | }
|
4645 | };
|
4646 |
|
4647 | Select_specContext.prototype.exitRule = function(listener) {
|
4648 | if(listener instanceof SOQLListener ) {
|
4649 | listener.exitSelect_spec(this);
|
4650 | }
|
4651 | };
|
4652 |
|
4653 |
|
4654 |
|
4655 |
|
4656 | SOQLParser.Select_specContext = Select_specContext;
|
4657 |
|
4658 | SOQLParser.prototype.select_spec = function() {
|
4659 |
|
4660 | var localctx = new Select_specContext(this, this._ctx, this.state);
|
4661 | this.enterRule(localctx, 80, SOQLParser.RULE_select_spec);
|
4662 | try {
|
4663 | this.state = 393;
|
4664 | this._errHandler.sync(this);
|
4665 | var la_ = this._interp.adaptivePredict(this._input,31,this._ctx);
|
4666 | switch(la_) {
|
4667 | case 1:
|
4668 | this.enterOuterAlt(localctx, 1);
|
4669 | this.state = 389;
|
4670 | this.field_spec();
|
4671 | break;
|
4672 |
|
4673 | case 2:
|
4674 | this.enterOuterAlt(localctx, 2);
|
4675 | this.state = 390;
|
4676 | this.function_call_spec();
|
4677 | break;
|
4678 |
|
4679 | case 3:
|
4680 | this.enterOuterAlt(localctx, 3);
|
4681 | this.state = 391;
|
4682 | this.soql_subquery();
|
4683 | break;
|
4684 |
|
4685 | case 4:
|
4686 | this.enterOuterAlt(localctx, 4);
|
4687 | this.state = 392;
|
4688 | this.typeof_spec();
|
4689 | break;
|
4690 |
|
4691 | }
|
4692 | } catch (re) {
|
4693 | if(re instanceof antlr4.error.RecognitionException) {
|
4694 | localctx.exception = re;
|
4695 | this._errHandler.reportError(this, re);
|
4696 | this._errHandler.recover(this, re);
|
4697 | } else {
|
4698 | throw re;
|
4699 | }
|
4700 | } finally {
|
4701 | this.exitRule();
|
4702 | }
|
4703 | return localctx;
|
4704 | };
|
4705 |
|
4706 | function Subquery_select_specContext(parser, parent, invokingState) {
|
4707 | if(parent===undefined) {
|
4708 | parent = null;
|
4709 | }
|
4710 | if(invokingState===undefined || invokingState===null) {
|
4711 | invokingState = -1;
|
4712 | }
|
4713 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
4714 | this.parser = parser;
|
4715 | this.ruleIndex = SOQLParser.RULE_subquery_select_spec;
|
4716 | return this;
|
4717 | }
|
4718 |
|
4719 | Subquery_select_specContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
4720 | Subquery_select_specContext.prototype.constructor = Subquery_select_specContext;
|
4721 |
|
4722 | Subquery_select_specContext.prototype.field_spec = function() {
|
4723 | return this.getTypedRuleContext(Field_specContext,0);
|
4724 | };
|
4725 |
|
4726 | Subquery_select_specContext.prototype.function_call_spec = function() {
|
4727 | return this.getTypedRuleContext(Function_call_specContext,0);
|
4728 | };
|
4729 |
|
4730 | Subquery_select_specContext.prototype.enterRule = function(listener) {
|
4731 | if(listener instanceof SOQLListener ) {
|
4732 | listener.enterSubquery_select_spec(this);
|
4733 | }
|
4734 | };
|
4735 |
|
4736 | Subquery_select_specContext.prototype.exitRule = function(listener) {
|
4737 | if(listener instanceof SOQLListener ) {
|
4738 | listener.exitSubquery_select_spec(this);
|
4739 | }
|
4740 | };
|
4741 |
|
4742 |
|
4743 |
|
4744 |
|
4745 | SOQLParser.Subquery_select_specContext = Subquery_select_specContext;
|
4746 |
|
4747 | SOQLParser.prototype.subquery_select_spec = function() {
|
4748 |
|
4749 | var localctx = new Subquery_select_specContext(this, this._ctx, this.state);
|
4750 | this.enterRule(localctx, 82, SOQLParser.RULE_subquery_select_spec);
|
4751 | try {
|
4752 | this.state = 397;
|
4753 | this._errHandler.sync(this);
|
4754 | var la_ = this._interp.adaptivePredict(this._input,32,this._ctx);
|
4755 | switch(la_) {
|
4756 | case 1:
|
4757 | this.enterOuterAlt(localctx, 1);
|
4758 | this.state = 395;
|
4759 | this.field_spec();
|
4760 | break;
|
4761 |
|
4762 | case 2:
|
4763 | this.enterOuterAlt(localctx, 2);
|
4764 | this.state = 396;
|
4765 | this.function_call_spec();
|
4766 | break;
|
4767 |
|
4768 | }
|
4769 | } catch (re) {
|
4770 | if(re instanceof antlr4.error.RecognitionException) {
|
4771 | localctx.exception = re;
|
4772 | this._errHandler.reportError(this, re);
|
4773 | this._errHandler.recover(this, re);
|
4774 | } else {
|
4775 | throw re;
|
4776 | }
|
4777 | } finally {
|
4778 | this.exitRule();
|
4779 | }
|
4780 | return localctx;
|
4781 | };
|
4782 |
|
4783 | function Field_specContext(parser, parent, invokingState) {
|
4784 | if(parent===undefined) {
|
4785 | parent = null;
|
4786 | }
|
4787 | if(invokingState===undefined || invokingState===null) {
|
4788 | invokingState = -1;
|
4789 | }
|
4790 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
4791 | this.parser = parser;
|
4792 | this.ruleIndex = SOQLParser.RULE_field_spec;
|
4793 | return this;
|
4794 | }
|
4795 |
|
4796 | Field_specContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
4797 | Field_specContext.prototype.constructor = Field_specContext;
|
4798 |
|
4799 | Field_specContext.prototype.field = function() {
|
4800 | return this.getTypedRuleContext(FieldContext,0);
|
4801 | };
|
4802 |
|
4803 | Field_specContext.prototype.alias = function() {
|
4804 | return this.getTypedRuleContext(AliasContext,0);
|
4805 | };
|
4806 |
|
4807 | Field_specContext.prototype.enterRule = function(listener) {
|
4808 | if(listener instanceof SOQLListener ) {
|
4809 | listener.enterField_spec(this);
|
4810 | }
|
4811 | };
|
4812 |
|
4813 | Field_specContext.prototype.exitRule = function(listener) {
|
4814 | if(listener instanceof SOQLListener ) {
|
4815 | listener.exitField_spec(this);
|
4816 | }
|
4817 | };
|
4818 |
|
4819 |
|
4820 |
|
4821 |
|
4822 | SOQLParser.Field_specContext = Field_specContext;
|
4823 |
|
4824 | SOQLParser.prototype.field_spec = function() {
|
4825 |
|
4826 | var localctx = new Field_specContext(this, this._ctx, this.state);
|
4827 | this.enterRule(localctx, 84, SOQLParser.RULE_field_spec);
|
4828 | var _la = 0;
|
4829 | try {
|
4830 | this.enterOuterAlt(localctx, 1);
|
4831 | this.state = 399;
|
4832 | this.field();
|
4833 | this.state = 401;
|
4834 | this._errHandler.sync(this);
|
4835 | _la = this._input.LA(1);
|
4836 | if(_la===SOQLParser.AS || ((((_la - 34)) & ~0x1f) == 0 && ((1 << (_la - 34)) & ((1 << (SOQLParser.ABOVE - 34)) | (1 << (SOQLParser.ABOVE_OR_BELOW - 34)) | (1 << (SOQLParser.AT - 34)) | (1 << (SOQLParser.BELOW - 34)) | (1 << (SOQLParser.CATEGORY - 34)) | (1 << (SOQLParser.DATA - 34)) | (1 << (SOQLParser.END - 34)) | (1 << (SOQLParser.OFFSET - 34)) | (1 << (SOQLParser.ORDER - 34)) | (1 << (SOQLParser.REFERENCE - 34)) | (1 << (SOQLParser.SCOPE - 34)) | (1 << (SOQLParser.TRACKING - 34)) | (1 << (SOQLParser.THEN - 34)) | (1 << (SOQLParser.TYPEOF - 34)) | (1 << (SOQLParser.VIEW - 34)) | (1 << (SOQLParser.VIEWSTAT - 34)) | (1 << (SOQLParser.WHEN - 34)) | (1 << (SOQLParser.CALENDAR_MONTH - 34)) | (1 << (SOQLParser.CALENDAR_QUARTER - 34)) | (1 << (SOQLParser.CALENDAR_YEAR - 34)) | (1 << (SOQLParser.DAY_IN_MONTH - 34)) | (1 << (SOQLParser.DAY_IN_WEEK - 34)) | (1 << (SOQLParser.DAY_IN_YEAR - 34)) | (1 << (SOQLParser.DAY_ONLY - 34)) | (1 << (SOQLParser.FISCAL_MONTH - 34)) | (1 << (SOQLParser.FISCAL_QUARTER - 34)) | (1 << (SOQLParser.FISCAL_YEAR - 34)) | (1 << (SOQLParser.HOUR_IN_DAY - 34)) | (1 << (SOQLParser.WEEK_IN_MONTH - 34)) | (1 << (SOQLParser.WEEK_IN_YEAR - 34)) | (1 << (SOQLParser.AVG - 34)) | (1 << (SOQLParser.COUNT - 34)))) !== 0) || ((((_la - 66)) & ~0x1f) == 0 && ((1 << (_la - 66)) & ((1 << (SOQLParser.COUNT_DISTINCT - 66)) | (1 << (SOQLParser.MIN - 66)) | (1 << (SOQLParser.MAX - 66)) | (1 << (SOQLParser.SUM - 66)) | (1 << (SOQLParser.DISTANCE - 66)) | (1 << (SOQLParser.GEOLOCATION - 66)) | (1 << (SOQLParser.FORMAT - 66)) | (1 << (SOQLParser.TOLABEL - 66)) | (1 << (SOQLParser.CONVERT_TIME_ZONE - 66)) | (1 << (SOQLParser.CONVERT_CURRENCY - 66)) | (1 << (SOQLParser.GROUPING - 66)) | (1 << (SOQLParser.YESTERDAY - 66)) | (1 << (SOQLParser.TODAY - 66)) | (1 << (SOQLParser.TOMORROW - 66)) | (1 << (SOQLParser.LAST_WEEK - 66)) | (1 << (SOQLParser.THIS_WEEK - 66)) | (1 << (SOQLParser.NEXT_WEEK - 66)) | (1 << (SOQLParser.LAST_MONTH - 66)) | (1 << (SOQLParser.THIS_MONTH - 66)) | (1 << (SOQLParser.NEXT_MONTH - 66)) | (1 << (SOQLParser.LAST_90_DAYS - 66)) | (1 << (SOQLParser.NEXT_90_DAYS - 66)) | (1 << (SOQLParser.THIS_QUARTER - 66)) | (1 << (SOQLParser.LAST_QUARTER - 66)) | (1 << (SOQLParser.NEXT_QUARTER - 66)) | (1 << (SOQLParser.THIS_YEAR - 66)) | (1 << (SOQLParser.LAST_YEAR - 66)) | (1 << (SOQLParser.NEXT_YEAR - 66)) | (1 << (SOQLParser.THIS_FISCAL_QUARTER - 66)) | (1 << (SOQLParser.LAST_FISCAL_QUARTER - 66)) | (1 << (SOQLParser.NEXT_FISCAL_QUARTER - 66)) | (1 << (SOQLParser.THIS_FISCAL_YEAR - 66)))) !== 0) || ((((_la - 98)) & ~0x1f) == 0 && ((1 << (_la - 98)) & ((1 << (SOQLParser.LAST_FISCAL_YEAR - 98)) | (1 << (SOQLParser.NEXT_FISCAL_YEAR - 98)) | (1 << (SOQLParser.NEXT_N_DAYS - 98)) | (1 << (SOQLParser.LAST_N_DAYS - 98)) | (1 << (SOQLParser.N_DAYS_AGO - 98)) | (1 << (SOQLParser.NEXT_N_WEEKS - 98)) | (1 << (SOQLParser.LAST_N_WEEKS - 98)) | (1 << (SOQLParser.N_WEEKS_AGO - 98)) | (1 << (SOQLParser.NEXT_N_MONTHS - 98)) | (1 << (SOQLParser.LAST_N_MONTHS - 98)) | (1 << (SOQLParser.N_MONTHS_AGO - 98)) | (1 << (SOQLParser.NEXT_N_QUARTERS - 98)) | (1 << (SOQLParser.LAST_N_QUARTERS - 98)) | (1 << (SOQLParser.N_QUARTERS_AGO - 98)) | (1 << (SOQLParser.NEXT_N_YEARS - 98)) | (1 << (SOQLParser.LAST_N_YEARS - 98)) | (1 << (SOQLParser.N_YEARS_AGO - 98)) | (1 << (SOQLParser.NEXT_N_FISCAL_QUARTERS - 98)) | (1 << (SOQLParser.LAST_N_FISCAL_QUARTERS - 98)) | (1 << (SOQLParser.N_FISCAL_QUARTERS_AGO - 98)) | (1 << (SOQLParser.NEXT_N_FISCAL_YEARS - 98)) | (1 << (SOQLParser.LAST_N_FISCAL_YEARS - 98)) | (1 << (SOQLParser.N_FISCAL_YEARS_AGO - 98)))) !== 0) || _la===SOQLParser.ID) {
|
4837 | this.state = 400;
|
4838 | this.alias();
|
4839 | }
|
4840 |
|
4841 | } catch (re) {
|
4842 | if(re instanceof antlr4.error.RecognitionException) {
|
4843 | localctx.exception = re;
|
4844 | this._errHandler.reportError(this, re);
|
4845 | this._errHandler.recover(this, re);
|
4846 | } else {
|
4847 | throw re;
|
4848 | }
|
4849 | } finally {
|
4850 | this.exitRule();
|
4851 | }
|
4852 | return localctx;
|
4853 | };
|
4854 |
|
4855 | function Function_call_specContext(parser, parent, invokingState) {
|
4856 | if(parent===undefined) {
|
4857 | parent = null;
|
4858 | }
|
4859 | if(invokingState===undefined || invokingState===null) {
|
4860 | invokingState = -1;
|
4861 | }
|
4862 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
4863 | this.parser = parser;
|
4864 | this.ruleIndex = SOQLParser.RULE_function_call_spec;
|
4865 | return this;
|
4866 | }
|
4867 |
|
4868 | Function_call_specContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
4869 | Function_call_specContext.prototype.constructor = Function_call_specContext;
|
4870 |
|
4871 | Function_call_specContext.prototype.function_call = function() {
|
4872 | return this.getTypedRuleContext(Function_callContext,0);
|
4873 | };
|
4874 |
|
4875 | Function_call_specContext.prototype.alias = function() {
|
4876 | return this.getTypedRuleContext(AliasContext,0);
|
4877 | };
|
4878 |
|
4879 | Function_call_specContext.prototype.enterRule = function(listener) {
|
4880 | if(listener instanceof SOQLListener ) {
|
4881 | listener.enterFunction_call_spec(this);
|
4882 | }
|
4883 | };
|
4884 |
|
4885 | Function_call_specContext.prototype.exitRule = function(listener) {
|
4886 | if(listener instanceof SOQLListener ) {
|
4887 | listener.exitFunction_call_spec(this);
|
4888 | }
|
4889 | };
|
4890 |
|
4891 |
|
4892 |
|
4893 |
|
4894 | SOQLParser.Function_call_specContext = Function_call_specContext;
|
4895 |
|
4896 | SOQLParser.prototype.function_call_spec = function() {
|
4897 |
|
4898 | var localctx = new Function_call_specContext(this, this._ctx, this.state);
|
4899 | this.enterRule(localctx, 86, SOQLParser.RULE_function_call_spec);
|
4900 | var _la = 0;
|
4901 | try {
|
4902 | this.enterOuterAlt(localctx, 1);
|
4903 | this.state = 403;
|
4904 | this.function_call();
|
4905 | this.state = 405;
|
4906 | this._errHandler.sync(this);
|
4907 | _la = this._input.LA(1);
|
4908 | if(_la===SOQLParser.AS || ((((_la - 34)) & ~0x1f) == 0 && ((1 << (_la - 34)) & ((1 << (SOQLParser.ABOVE - 34)) | (1 << (SOQLParser.ABOVE_OR_BELOW - 34)) | (1 << (SOQLParser.AT - 34)) | (1 << (SOQLParser.BELOW - 34)) | (1 << (SOQLParser.CATEGORY - 34)) | (1 << (SOQLParser.DATA - 34)) | (1 << (SOQLParser.END - 34)) | (1 << (SOQLParser.OFFSET - 34)) | (1 << (SOQLParser.ORDER - 34)) | (1 << (SOQLParser.REFERENCE - 34)) | (1 << (SOQLParser.SCOPE - 34)) | (1 << (SOQLParser.TRACKING - 34)) | (1 << (SOQLParser.THEN - 34)) | (1 << (SOQLParser.TYPEOF - 34)) | (1 << (SOQLParser.VIEW - 34)) | (1 << (SOQLParser.VIEWSTAT - 34)) | (1 << (SOQLParser.WHEN - 34)) | (1 << (SOQLParser.CALENDAR_MONTH - 34)) | (1 << (SOQLParser.CALENDAR_QUARTER - 34)) | (1 << (SOQLParser.CALENDAR_YEAR - 34)) | (1 << (SOQLParser.DAY_IN_MONTH - 34)) | (1 << (SOQLParser.DAY_IN_WEEK - 34)) | (1 << (SOQLParser.DAY_IN_YEAR - 34)) | (1 << (SOQLParser.DAY_ONLY - 34)) | (1 << (SOQLParser.FISCAL_MONTH - 34)) | (1 << (SOQLParser.FISCAL_QUARTER - 34)) | (1 << (SOQLParser.FISCAL_YEAR - 34)) | (1 << (SOQLParser.HOUR_IN_DAY - 34)) | (1 << (SOQLParser.WEEK_IN_MONTH - 34)) | (1 << (SOQLParser.WEEK_IN_YEAR - 34)) | (1 << (SOQLParser.AVG - 34)) | (1 << (SOQLParser.COUNT - 34)))) !== 0) || ((((_la - 66)) & ~0x1f) == 0 && ((1 << (_la - 66)) & ((1 << (SOQLParser.COUNT_DISTINCT - 66)) | (1 << (SOQLParser.MIN - 66)) | (1 << (SOQLParser.MAX - 66)) | (1 << (SOQLParser.SUM - 66)) | (1 << (SOQLParser.DISTANCE - 66)) | (1 << (SOQLParser.GEOLOCATION - 66)) | (1 << (SOQLParser.FORMAT - 66)) | (1 << (SOQLParser.TOLABEL - 66)) | (1 << (SOQLParser.CONVERT_TIME_ZONE - 66)) | (1 << (SOQLParser.CONVERT_CURRENCY - 66)) | (1 << (SOQLParser.GROUPING - 66)) | (1 << (SOQLParser.YESTERDAY - 66)) | (1 << (SOQLParser.TODAY - 66)) | (1 << (SOQLParser.TOMORROW - 66)) | (1 << (SOQLParser.LAST_WEEK - 66)) | (1 << (SOQLParser.THIS_WEEK - 66)) | (1 << (SOQLParser.NEXT_WEEK - 66)) | (1 << (SOQLParser.LAST_MONTH - 66)) | (1 << (SOQLParser.THIS_MONTH - 66)) | (1 << (SOQLParser.NEXT_MONTH - 66)) | (1 << (SOQLParser.LAST_90_DAYS - 66)) | (1 << (SOQLParser.NEXT_90_DAYS - 66)) | (1 << (SOQLParser.THIS_QUARTER - 66)) | (1 << (SOQLParser.LAST_QUARTER - 66)) | (1 << (SOQLParser.NEXT_QUARTER - 66)) | (1 << (SOQLParser.THIS_YEAR - 66)) | (1 << (SOQLParser.LAST_YEAR - 66)) | (1 << (SOQLParser.NEXT_YEAR - 66)) | (1 << (SOQLParser.THIS_FISCAL_QUARTER - 66)) | (1 << (SOQLParser.LAST_FISCAL_QUARTER - 66)) | (1 << (SOQLParser.NEXT_FISCAL_QUARTER - 66)) | (1 << (SOQLParser.THIS_FISCAL_YEAR - 66)))) !== 0) || ((((_la - 98)) & ~0x1f) == 0 && ((1 << (_la - 98)) & ((1 << (SOQLParser.LAST_FISCAL_YEAR - 98)) | (1 << (SOQLParser.NEXT_FISCAL_YEAR - 98)) | (1 << (SOQLParser.NEXT_N_DAYS - 98)) | (1 << (SOQLParser.LAST_N_DAYS - 98)) | (1 << (SOQLParser.N_DAYS_AGO - 98)) | (1 << (SOQLParser.NEXT_N_WEEKS - 98)) | (1 << (SOQLParser.LAST_N_WEEKS - 98)) | (1 << (SOQLParser.N_WEEKS_AGO - 98)) | (1 << (SOQLParser.NEXT_N_MONTHS - 98)) | (1 << (SOQLParser.LAST_N_MONTHS - 98)) | (1 << (SOQLParser.N_MONTHS_AGO - 98)) | (1 << (SOQLParser.NEXT_N_QUARTERS - 98)) | (1 << (SOQLParser.LAST_N_QUARTERS - 98)) | (1 << (SOQLParser.N_QUARTERS_AGO - 98)) | (1 << (SOQLParser.NEXT_N_YEARS - 98)) | (1 << (SOQLParser.LAST_N_YEARS - 98)) | (1 << (SOQLParser.N_YEARS_AGO - 98)) | (1 << (SOQLParser.NEXT_N_FISCAL_QUARTERS - 98)) | (1 << (SOQLParser.LAST_N_FISCAL_QUARTERS - 98)) | (1 << (SOQLParser.N_FISCAL_QUARTERS_AGO - 98)) | (1 << (SOQLParser.NEXT_N_FISCAL_YEARS - 98)) | (1 << (SOQLParser.LAST_N_FISCAL_YEARS - 98)) | (1 << (SOQLParser.N_FISCAL_YEARS_AGO - 98)))) !== 0) || _la===SOQLParser.ID) {
|
4909 | this.state = 404;
|
4910 | this.alias();
|
4911 | }
|
4912 |
|
4913 | } catch (re) {
|
4914 | if(re instanceof antlr4.error.RecognitionException) {
|
4915 | localctx.exception = re;
|
4916 | this._errHandler.reportError(this, re);
|
4917 | this._errHandler.recover(this, re);
|
4918 | } else {
|
4919 | throw re;
|
4920 | }
|
4921 | } finally {
|
4922 | this.exitRule();
|
4923 | }
|
4924 | return localctx;
|
4925 | };
|
4926 |
|
4927 | function FieldContext(parser, parent, invokingState) {
|
4928 | if(parent===undefined) {
|
4929 | parent = null;
|
4930 | }
|
4931 | if(invokingState===undefined || invokingState===null) {
|
4932 | invokingState = -1;
|
4933 | }
|
4934 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
4935 | this.parser = parser;
|
4936 | this.ruleIndex = SOQLParser.RULE_field;
|
4937 | return this;
|
4938 | }
|
4939 |
|
4940 | FieldContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
4941 | FieldContext.prototype.constructor = FieldContext;
|
4942 |
|
4943 | FieldContext.prototype.field_name = function() {
|
4944 | return this.getTypedRuleContext(Field_nameContext,0);
|
4945 | };
|
4946 |
|
4947 | FieldContext.prototype.object_prefix = function() {
|
4948 | return this.getTypedRuleContext(Object_prefixContext,0);
|
4949 | };
|
4950 |
|
4951 | FieldContext.prototype.enterRule = function(listener) {
|
4952 | if(listener instanceof SOQLListener ) {
|
4953 | listener.enterField(this);
|
4954 | }
|
4955 | };
|
4956 |
|
4957 | FieldContext.prototype.exitRule = function(listener) {
|
4958 | if(listener instanceof SOQLListener ) {
|
4959 | listener.exitField(this);
|
4960 | }
|
4961 | };
|
4962 |
|
4963 |
|
4964 |
|
4965 |
|
4966 | SOQLParser.FieldContext = FieldContext;
|
4967 |
|
4968 | SOQLParser.prototype.field = function() {
|
4969 |
|
4970 | var localctx = new FieldContext(this, this._ctx, this.state);
|
4971 | this.enterRule(localctx, 88, SOQLParser.RULE_field);
|
4972 | try {
|
4973 | this.enterOuterAlt(localctx, 1);
|
4974 | this.state = 408;
|
4975 | this._errHandler.sync(this);
|
4976 | var la_ = this._interp.adaptivePredict(this._input,35,this._ctx);
|
4977 | if(la_===1) {
|
4978 | this.state = 407;
|
4979 | this.object_prefix();
|
4980 |
|
4981 | }
|
4982 | this.state = 410;
|
4983 | this.field_name();
|
4984 | } catch (re) {
|
4985 | if(re instanceof antlr4.error.RecognitionException) {
|
4986 | localctx.exception = re;
|
4987 | this._errHandler.reportError(this, re);
|
4988 | this._errHandler.recover(this, re);
|
4989 | } else {
|
4990 | throw re;
|
4991 | }
|
4992 | } finally {
|
4993 | this.exitRule();
|
4994 | }
|
4995 | return localctx;
|
4996 | };
|
4997 |
|
4998 | function Function_callContext(parser, parent, invokingState) {
|
4999 | if(parent===undefined) {
|
5000 | parent = null;
|
5001 | }
|
5002 | if(invokingState===undefined || invokingState===null) {
|
5003 | invokingState = -1;
|
5004 | }
|
5005 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
5006 | this.parser = parser;
|
5007 | this.ruleIndex = SOQLParser.RULE_function_call;
|
5008 | return this;
|
5009 | }
|
5010 |
|
5011 | Function_callContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
5012 | Function_callContext.prototype.constructor = Function_callContext;
|
5013 |
|
5014 | Function_callContext.prototype.function_name = function() {
|
5015 | return this.getTypedRuleContext(Function_nameContext,0);
|
5016 | };
|
5017 |
|
5018 | Function_callContext.prototype.LPAREN = function() {
|
5019 | return this.getToken(SOQLParser.LPAREN, 0);
|
5020 | };
|
5021 |
|
5022 | Function_callContext.prototype.RPAREN = function() {
|
5023 | return this.getToken(SOQLParser.RPAREN, 0);
|
5024 | };
|
5025 |
|
5026 | Function_callContext.prototype.function_parameter_list = function() {
|
5027 | return this.getTypedRuleContext(Function_parameter_listContext,0);
|
5028 | };
|
5029 |
|
5030 | Function_callContext.prototype.enterRule = function(listener) {
|
5031 | if(listener instanceof SOQLListener ) {
|
5032 | listener.enterFunction_call(this);
|
5033 | }
|
5034 | };
|
5035 |
|
5036 | Function_callContext.prototype.exitRule = function(listener) {
|
5037 | if(listener instanceof SOQLListener ) {
|
5038 | listener.exitFunction_call(this);
|
5039 | }
|
5040 | };
|
5041 |
|
5042 |
|
5043 |
|
5044 |
|
5045 | SOQLParser.Function_callContext = Function_callContext;
|
5046 |
|
5047 | SOQLParser.prototype.function_call = function() {
|
5048 |
|
5049 | var localctx = new Function_callContext(this, this._ctx, this.state);
|
5050 | this.enterRule(localctx, 90, SOQLParser.RULE_function_call);
|
5051 | var _la = 0;
|
5052 | try {
|
5053 | this.enterOuterAlt(localctx, 1);
|
5054 | this.state = 412;
|
5055 | this.function_name();
|
5056 | this.state = 413;
|
5057 | this.match(SOQLParser.LPAREN);
|
5058 | this.state = 415;
|
5059 | this._errHandler.sync(this);
|
5060 | _la = this._input.LA(1);
|
5061 | if((((_la) & ~0x1f) == 0 && ((1 << _la) & ((1 << SOQLParser.STRING_VALUE) | (1 << SOQLParser.FALSE) | (1 << SOQLParser.GROUP) | (1 << SOQLParser.NULL) | (1 << SOQLParser.TRUE))) !== 0) || ((((_la - 34)) & ~0x1f) == 0 && ((1 << (_la - 34)) & ((1 << (SOQLParser.ABOVE - 34)) | (1 << (SOQLParser.ABOVE_OR_BELOW - 34)) | (1 << (SOQLParser.AT - 34)) | (1 << (SOQLParser.BELOW - 34)) | (1 << (SOQLParser.CATEGORY - 34)) | (1 << (SOQLParser.DATA - 34)) | (1 << (SOQLParser.END - 34)) | (1 << (SOQLParser.OFFSET - 34)) | (1 << (SOQLParser.ORDER - 34)) | (1 << (SOQLParser.REFERENCE - 34)) | (1 << (SOQLParser.SCOPE - 34)) | (1 << (SOQLParser.TRACKING - 34)) | (1 << (SOQLParser.THEN - 34)) | (1 << (SOQLParser.TYPEOF - 34)) | (1 << (SOQLParser.VIEW - 34)) | (1 << (SOQLParser.VIEWSTAT - 34)) | (1 << (SOQLParser.WHEN - 34)) | (1 << (SOQLParser.CALENDAR_MONTH - 34)) | (1 << (SOQLParser.CALENDAR_QUARTER - 34)) | (1 << (SOQLParser.CALENDAR_YEAR - 34)) | (1 << (SOQLParser.DAY_IN_MONTH - 34)) | (1 << (SOQLParser.DAY_IN_WEEK - 34)) | (1 << (SOQLParser.DAY_IN_YEAR - 34)) | (1 << (SOQLParser.DAY_ONLY - 34)) | (1 << (SOQLParser.FISCAL_MONTH - 34)) | (1 << (SOQLParser.FISCAL_QUARTER - 34)) | (1 << (SOQLParser.FISCAL_YEAR - 34)) | (1 << (SOQLParser.HOUR_IN_DAY - 34)) | (1 << (SOQLParser.WEEK_IN_MONTH - 34)) | (1 << (SOQLParser.WEEK_IN_YEAR - 34)) | (1 << (SOQLParser.AVG - 34)) | (1 << (SOQLParser.COUNT - 34)))) !== 0) || ((((_la - 66)) & ~0x1f) == 0 && ((1 << (_la - 66)) & ((1 << (SOQLParser.COUNT_DISTINCT - 66)) | (1 << (SOQLParser.MIN - 66)) | (1 << (SOQLParser.MAX - 66)) | (1 << (SOQLParser.SUM - 66)) | (1 << (SOQLParser.DISTANCE - 66)) | (1 << (SOQLParser.GEOLOCATION - 66)) | (1 << (SOQLParser.FORMAT - 66)) | (1 << (SOQLParser.TOLABEL - 66)) | (1 << (SOQLParser.CONVERT_TIME_ZONE - 66)) | (1 << (SOQLParser.CONVERT_CURRENCY - 66)) | (1 << (SOQLParser.GROUPING - 66)) | (1 << (SOQLParser.YESTERDAY - 66)) | (1 << (SOQLParser.TODAY - 66)) | (1 << (SOQLParser.TOMORROW - 66)) | (1 << (SOQLParser.LAST_WEEK - 66)) | (1 << (SOQLParser.THIS_WEEK - 66)) | (1 << (SOQLParser.NEXT_WEEK - 66)) | (1 << (SOQLParser.LAST_MONTH - 66)) | (1 << (SOQLParser.THIS_MONTH - 66)) | (1 << (SOQLParser.NEXT_MONTH - 66)) | (1 << (SOQLParser.LAST_90_DAYS - 66)) | (1 << (SOQLParser.NEXT_90_DAYS - 66)) | (1 << (SOQLParser.THIS_QUARTER - 66)) | (1 << (SOQLParser.LAST_QUARTER - 66)) | (1 << (SOQLParser.NEXT_QUARTER - 66)) | (1 << (SOQLParser.THIS_YEAR - 66)) | (1 << (SOQLParser.LAST_YEAR - 66)) | (1 << (SOQLParser.NEXT_YEAR - 66)) | (1 << (SOQLParser.THIS_FISCAL_QUARTER - 66)) | (1 << (SOQLParser.LAST_FISCAL_QUARTER - 66)) | (1 << (SOQLParser.NEXT_FISCAL_QUARTER - 66)) | (1 << (SOQLParser.THIS_FISCAL_YEAR - 66)))) !== 0) || ((((_la - 98)) & ~0x1f) == 0 && ((1 << (_la - 98)) & ((1 << (SOQLParser.LAST_FISCAL_YEAR - 98)) | (1 << (SOQLParser.NEXT_FISCAL_YEAR - 98)) | (1 << (SOQLParser.NEXT_N_DAYS - 98)) | (1 << (SOQLParser.LAST_N_DAYS - 98)) | (1 << (SOQLParser.N_DAYS_AGO - 98)) | (1 << (SOQLParser.NEXT_N_WEEKS - 98)) | (1 << (SOQLParser.LAST_N_WEEKS - 98)) | (1 << (SOQLParser.N_WEEKS_AGO - 98)) | (1 << (SOQLParser.NEXT_N_MONTHS - 98)) | (1 << (SOQLParser.LAST_N_MONTHS - 98)) | (1 << (SOQLParser.N_MONTHS_AGO - 98)) | (1 << (SOQLParser.NEXT_N_QUARTERS - 98)) | (1 << (SOQLParser.LAST_N_QUARTERS - 98)) | (1 << (SOQLParser.N_QUARTERS_AGO - 98)) | (1 << (SOQLParser.NEXT_N_YEARS - 98)) | (1 << (SOQLParser.LAST_N_YEARS - 98)) | (1 << (SOQLParser.N_YEARS_AGO - 98)) | (1 << (SOQLParser.NEXT_N_FISCAL_QUARTERS - 98)) | (1 << (SOQLParser.LAST_N_FISCAL_QUARTERS - 98)) | (1 << (SOQLParser.N_FISCAL_QUARTERS_AGO - 98)) | (1 << (SOQLParser.NEXT_N_FISCAL_YEARS - 98)) | (1 << (SOQLParser.LAST_N_FISCAL_YEARS - 98)) | (1 << (SOQLParser.N_FISCAL_YEARS_AGO - 98)))) !== 0) || ((((_la - 136)) & ~0x1f) == 0 && ((1 << (_la - 136)) & ((1 << (SOQLParser.ID - 136)) | (1 << (SOQLParser.DATE - 136)) | (1 << (SOQLParser.DATETIME - 136)) | (1 << (SOQLParser.UNSIGNED_INTEGER - 136)) | (1 << (SOQLParser.REAL_NUMBER - 136)) | (1 << (SOQLParser.SIGNED_INTEGER - 136)))) !== 0)) {
|
5062 | this.state = 414;
|
5063 | this.function_parameter_list();
|
5064 | }
|
5065 |
|
5066 | this.state = 417;
|
5067 | this.match(SOQLParser.RPAREN);
|
5068 | } catch (re) {
|
5069 | if(re instanceof antlr4.error.RecognitionException) {
|
5070 | localctx.exception = re;
|
5071 | this._errHandler.reportError(this, re);
|
5072 | this._errHandler.recover(this, re);
|
5073 | } else {
|
5074 | throw re;
|
5075 | }
|
5076 | } finally {
|
5077 | this.exitRule();
|
5078 | }
|
5079 | return localctx;
|
5080 | };
|
5081 |
|
5082 | function Function_parameter_listContext(parser, parent, invokingState) {
|
5083 | if(parent===undefined) {
|
5084 | parent = null;
|
5085 | }
|
5086 | if(invokingState===undefined || invokingState===null) {
|
5087 | invokingState = -1;
|
5088 | }
|
5089 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
5090 | this.parser = parser;
|
5091 | this.ruleIndex = SOQLParser.RULE_function_parameter_list;
|
5092 | return this;
|
5093 | }
|
5094 |
|
5095 | Function_parameter_listContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
5096 | Function_parameter_listContext.prototype.constructor = Function_parameter_listContext;
|
5097 |
|
5098 | Function_parameter_listContext.prototype.function_parameter = function(i) {
|
5099 | if(i===undefined) {
|
5100 | i = null;
|
5101 | }
|
5102 | if(i===null) {
|
5103 | return this.getTypedRuleContexts(Function_parameterContext);
|
5104 | } else {
|
5105 | return this.getTypedRuleContext(Function_parameterContext,i);
|
5106 | }
|
5107 | };
|
5108 |
|
5109 | Function_parameter_listContext.prototype.COMMA = function(i) {
|
5110 | if(i===undefined) {
|
5111 | i = null;
|
5112 | }
|
5113 | if(i===null) {
|
5114 | return this.getTokens(SOQLParser.COMMA);
|
5115 | } else {
|
5116 | return this.getToken(SOQLParser.COMMA, i);
|
5117 | }
|
5118 | };
|
5119 |
|
5120 |
|
5121 | Function_parameter_listContext.prototype.enterRule = function(listener) {
|
5122 | if(listener instanceof SOQLListener ) {
|
5123 | listener.enterFunction_parameter_list(this);
|
5124 | }
|
5125 | };
|
5126 |
|
5127 | Function_parameter_listContext.prototype.exitRule = function(listener) {
|
5128 | if(listener instanceof SOQLListener ) {
|
5129 | listener.exitFunction_parameter_list(this);
|
5130 | }
|
5131 | };
|
5132 |
|
5133 |
|
5134 |
|
5135 |
|
5136 | SOQLParser.Function_parameter_listContext = Function_parameter_listContext;
|
5137 |
|
5138 | SOQLParser.prototype.function_parameter_list = function() {
|
5139 |
|
5140 | var localctx = new Function_parameter_listContext(this, this._ctx, this.state);
|
5141 | this.enterRule(localctx, 92, SOQLParser.RULE_function_parameter_list);
|
5142 | var _la = 0;
|
5143 | try {
|
5144 | this.enterOuterAlt(localctx, 1);
|
5145 | this.state = 419;
|
5146 | this.function_parameter();
|
5147 | this.state = 424;
|
5148 | this._errHandler.sync(this);
|
5149 | _la = this._input.LA(1);
|
5150 | while(_la===SOQLParser.COMMA) {
|
5151 | this.state = 420;
|
5152 | this.match(SOQLParser.COMMA);
|
5153 | this.state = 421;
|
5154 | this.function_parameter();
|
5155 | this.state = 426;
|
5156 | this._errHandler.sync(this);
|
5157 | _la = this._input.LA(1);
|
5158 | }
|
5159 | } catch (re) {
|
5160 | if(re instanceof antlr4.error.RecognitionException) {
|
5161 | localctx.exception = re;
|
5162 | this._errHandler.reportError(this, re);
|
5163 | this._errHandler.recover(this, re);
|
5164 | } else {
|
5165 | throw re;
|
5166 | }
|
5167 | } finally {
|
5168 | this.exitRule();
|
5169 | }
|
5170 | return localctx;
|
5171 | };
|
5172 |
|
5173 | function Function_parameterContext(parser, parent, invokingState) {
|
5174 | if(parent===undefined) {
|
5175 | parent = null;
|
5176 | }
|
5177 | if(invokingState===undefined || invokingState===null) {
|
5178 | invokingState = -1;
|
5179 | }
|
5180 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
5181 | this.parser = parser;
|
5182 | this.ruleIndex = SOQLParser.RULE_function_parameter;
|
5183 | return this;
|
5184 | }
|
5185 |
|
5186 | Function_parameterContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
5187 | Function_parameterContext.prototype.constructor = Function_parameterContext;
|
5188 |
|
5189 | Function_parameterContext.prototype.field = function() {
|
5190 | return this.getTypedRuleContext(FieldContext,0);
|
5191 | };
|
5192 |
|
5193 | Function_parameterContext.prototype.literal = function() {
|
5194 | return this.getTypedRuleContext(LiteralContext,0);
|
5195 | };
|
5196 |
|
5197 | Function_parameterContext.prototype.function_call = function() {
|
5198 | return this.getTypedRuleContext(Function_callContext,0);
|
5199 | };
|
5200 |
|
5201 | Function_parameterContext.prototype.enterRule = function(listener) {
|
5202 | if(listener instanceof SOQLListener ) {
|
5203 | listener.enterFunction_parameter(this);
|
5204 | }
|
5205 | };
|
5206 |
|
5207 | Function_parameterContext.prototype.exitRule = function(listener) {
|
5208 | if(listener instanceof SOQLListener ) {
|
5209 | listener.exitFunction_parameter(this);
|
5210 | }
|
5211 | };
|
5212 |
|
5213 |
|
5214 |
|
5215 |
|
5216 | SOQLParser.Function_parameterContext = Function_parameterContext;
|
5217 |
|
5218 | SOQLParser.prototype.function_parameter = function() {
|
5219 |
|
5220 | var localctx = new Function_parameterContext(this, this._ctx, this.state);
|
5221 | this.enterRule(localctx, 94, SOQLParser.RULE_function_parameter);
|
5222 | try {
|
5223 | this.state = 430;
|
5224 | this._errHandler.sync(this);
|
5225 | var la_ = this._interp.adaptivePredict(this._input,38,this._ctx);
|
5226 | switch(la_) {
|
5227 | case 1:
|
5228 | this.enterOuterAlt(localctx, 1);
|
5229 | this.state = 427;
|
5230 | this.field();
|
5231 | break;
|
5232 |
|
5233 | case 2:
|
5234 | this.enterOuterAlt(localctx, 2);
|
5235 | this.state = 428;
|
5236 | this.literal();
|
5237 | break;
|
5238 |
|
5239 | case 3:
|
5240 | this.enterOuterAlt(localctx, 3);
|
5241 | this.state = 429;
|
5242 | this.function_call();
|
5243 | break;
|
5244 |
|
5245 | }
|
5246 | } catch (re) {
|
5247 | if(re instanceof antlr4.error.RecognitionException) {
|
5248 | localctx.exception = re;
|
5249 | this._errHandler.reportError(this, re);
|
5250 | this._errHandler.recover(this, re);
|
5251 | } else {
|
5252 | throw re;
|
5253 | }
|
5254 | } finally {
|
5255 | this.exitRule();
|
5256 | }
|
5257 | return localctx;
|
5258 | };
|
5259 |
|
5260 | function Typeof_specContext(parser, parent, invokingState) {
|
5261 | if(parent===undefined) {
|
5262 | parent = null;
|
5263 | }
|
5264 | if(invokingState===undefined || invokingState===null) {
|
5265 | invokingState = -1;
|
5266 | }
|
5267 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
5268 | this.parser = parser;
|
5269 | this.ruleIndex = SOQLParser.RULE_typeof_spec;
|
5270 | return this;
|
5271 | }
|
5272 |
|
5273 | Typeof_specContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
5274 | Typeof_specContext.prototype.constructor = Typeof_specContext;
|
5275 |
|
5276 | Typeof_specContext.prototype.TYPEOF = function() {
|
5277 | return this.getToken(SOQLParser.TYPEOF, 0);
|
5278 | };
|
5279 |
|
5280 | Typeof_specContext.prototype.field = function() {
|
5281 | return this.getTypedRuleContext(FieldContext,0);
|
5282 | };
|
5283 |
|
5284 | Typeof_specContext.prototype.typeof_when_then_clause_list = function() {
|
5285 | return this.getTypedRuleContext(Typeof_when_then_clause_listContext,0);
|
5286 | };
|
5287 |
|
5288 | Typeof_specContext.prototype.END = function() {
|
5289 | return this.getToken(SOQLParser.END, 0);
|
5290 | };
|
5291 |
|
5292 | Typeof_specContext.prototype.typeof_else_clause = function() {
|
5293 | return this.getTypedRuleContext(Typeof_else_clauseContext,0);
|
5294 | };
|
5295 |
|
5296 | Typeof_specContext.prototype.enterRule = function(listener) {
|
5297 | if(listener instanceof SOQLListener ) {
|
5298 | listener.enterTypeof_spec(this);
|
5299 | }
|
5300 | };
|
5301 |
|
5302 | Typeof_specContext.prototype.exitRule = function(listener) {
|
5303 | if(listener instanceof SOQLListener ) {
|
5304 | listener.exitTypeof_spec(this);
|
5305 | }
|
5306 | };
|
5307 |
|
5308 |
|
5309 |
|
5310 |
|
5311 | SOQLParser.Typeof_specContext = Typeof_specContext;
|
5312 |
|
5313 | SOQLParser.prototype.typeof_spec = function() {
|
5314 |
|
5315 | var localctx = new Typeof_specContext(this, this._ctx, this.state);
|
5316 | this.enterRule(localctx, 96, SOQLParser.RULE_typeof_spec);
|
5317 | var _la = 0;
|
5318 | try {
|
5319 | this.enterOuterAlt(localctx, 1);
|
5320 | this.state = 432;
|
5321 | this.match(SOQLParser.TYPEOF);
|
5322 | this.state = 433;
|
5323 | this.field();
|
5324 | this.state = 434;
|
5325 | this.typeof_when_then_clause_list();
|
5326 | this.state = 436;
|
5327 | this._errHandler.sync(this);
|
5328 | _la = this._input.LA(1);
|
5329 | if(_la===SOQLParser.ELSE) {
|
5330 | this.state = 435;
|
5331 | this.typeof_else_clause();
|
5332 | }
|
5333 |
|
5334 | this.state = 438;
|
5335 | this.match(SOQLParser.END);
|
5336 | } catch (re) {
|
5337 | if(re instanceof antlr4.error.RecognitionException) {
|
5338 | localctx.exception = re;
|
5339 | this._errHandler.reportError(this, re);
|
5340 | this._errHandler.recover(this, re);
|
5341 | } else {
|
5342 | throw re;
|
5343 | }
|
5344 | } finally {
|
5345 | this.exitRule();
|
5346 | }
|
5347 | return localctx;
|
5348 | };
|
5349 |
|
5350 | function Typeof_when_then_clause_listContext(parser, parent, invokingState) {
|
5351 | if(parent===undefined) {
|
5352 | parent = null;
|
5353 | }
|
5354 | if(invokingState===undefined || invokingState===null) {
|
5355 | invokingState = -1;
|
5356 | }
|
5357 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
5358 | this.parser = parser;
|
5359 | this.ruleIndex = SOQLParser.RULE_typeof_when_then_clause_list;
|
5360 | return this;
|
5361 | }
|
5362 |
|
5363 | Typeof_when_then_clause_listContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
5364 | Typeof_when_then_clause_listContext.prototype.constructor = Typeof_when_then_clause_listContext;
|
5365 |
|
5366 | Typeof_when_then_clause_listContext.prototype.typeof_when_then_clause = function(i) {
|
5367 | if(i===undefined) {
|
5368 | i = null;
|
5369 | }
|
5370 | if(i===null) {
|
5371 | return this.getTypedRuleContexts(Typeof_when_then_clauseContext);
|
5372 | } else {
|
5373 | return this.getTypedRuleContext(Typeof_when_then_clauseContext,i);
|
5374 | }
|
5375 | };
|
5376 |
|
5377 | Typeof_when_then_clause_listContext.prototype.enterRule = function(listener) {
|
5378 | if(listener instanceof SOQLListener ) {
|
5379 | listener.enterTypeof_when_then_clause_list(this);
|
5380 | }
|
5381 | };
|
5382 |
|
5383 | Typeof_when_then_clause_listContext.prototype.exitRule = function(listener) {
|
5384 | if(listener instanceof SOQLListener ) {
|
5385 | listener.exitTypeof_when_then_clause_list(this);
|
5386 | }
|
5387 | };
|
5388 |
|
5389 |
|
5390 |
|
5391 |
|
5392 | SOQLParser.Typeof_when_then_clause_listContext = Typeof_when_then_clause_listContext;
|
5393 |
|
5394 | SOQLParser.prototype.typeof_when_then_clause_list = function() {
|
5395 |
|
5396 | var localctx = new Typeof_when_then_clause_listContext(this, this._ctx, this.state);
|
5397 | this.enterRule(localctx, 98, SOQLParser.RULE_typeof_when_then_clause_list);
|
5398 | var _la = 0;
|
5399 | try {
|
5400 | this.enterOuterAlt(localctx, 1);
|
5401 | this.state = 441;
|
5402 | this._errHandler.sync(this);
|
5403 | _la = this._input.LA(1);
|
5404 | do {
|
5405 | this.state = 440;
|
5406 | this.typeof_when_then_clause();
|
5407 | this.state = 443;
|
5408 | this._errHandler.sync(this);
|
5409 | _la = this._input.LA(1);
|
5410 | } while(_la===SOQLParser.WHEN);
|
5411 | } catch (re) {
|
5412 | if(re instanceof antlr4.error.RecognitionException) {
|
5413 | localctx.exception = re;
|
5414 | this._errHandler.reportError(this, re);
|
5415 | this._errHandler.recover(this, re);
|
5416 | } else {
|
5417 | throw re;
|
5418 | }
|
5419 | } finally {
|
5420 | this.exitRule();
|
5421 | }
|
5422 | return localctx;
|
5423 | };
|
5424 |
|
5425 | function Typeof_when_then_clauseContext(parser, parent, invokingState) {
|
5426 | if(parent===undefined) {
|
5427 | parent = null;
|
5428 | }
|
5429 | if(invokingState===undefined || invokingState===null) {
|
5430 | invokingState = -1;
|
5431 | }
|
5432 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
5433 | this.parser = parser;
|
5434 | this.ruleIndex = SOQLParser.RULE_typeof_when_then_clause;
|
5435 | return this;
|
5436 | }
|
5437 |
|
5438 | Typeof_when_then_clauseContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
5439 | Typeof_when_then_clauseContext.prototype.constructor = Typeof_when_then_clauseContext;
|
5440 |
|
5441 | Typeof_when_then_clauseContext.prototype.WHEN = function() {
|
5442 | return this.getToken(SOQLParser.WHEN, 0);
|
5443 | };
|
5444 |
|
5445 | Typeof_when_then_clauseContext.prototype.object_name = function() {
|
5446 | return this.getTypedRuleContext(Object_nameContext,0);
|
5447 | };
|
5448 |
|
5449 | Typeof_when_then_clauseContext.prototype.typeof_then_clause = function() {
|
5450 | return this.getTypedRuleContext(Typeof_then_clauseContext,0);
|
5451 | };
|
5452 |
|
5453 | Typeof_when_then_clauseContext.prototype.enterRule = function(listener) {
|
5454 | if(listener instanceof SOQLListener ) {
|
5455 | listener.enterTypeof_when_then_clause(this);
|
5456 | }
|
5457 | };
|
5458 |
|
5459 | Typeof_when_then_clauseContext.prototype.exitRule = function(listener) {
|
5460 | if(listener instanceof SOQLListener ) {
|
5461 | listener.exitTypeof_when_then_clause(this);
|
5462 | }
|
5463 | };
|
5464 |
|
5465 |
|
5466 |
|
5467 |
|
5468 | SOQLParser.Typeof_when_then_clauseContext = Typeof_when_then_clauseContext;
|
5469 |
|
5470 | SOQLParser.prototype.typeof_when_then_clause = function() {
|
5471 |
|
5472 | var localctx = new Typeof_when_then_clauseContext(this, this._ctx, this.state);
|
5473 | this.enterRule(localctx, 100, SOQLParser.RULE_typeof_when_then_clause);
|
5474 | try {
|
5475 | this.enterOuterAlt(localctx, 1);
|
5476 | this.state = 445;
|
5477 | this.match(SOQLParser.WHEN);
|
5478 | this.state = 446;
|
5479 | this.object_name();
|
5480 | this.state = 447;
|
5481 | this.typeof_then_clause();
|
5482 | } catch (re) {
|
5483 | if(re instanceof antlr4.error.RecognitionException) {
|
5484 | localctx.exception = re;
|
5485 | this._errHandler.reportError(this, re);
|
5486 | this._errHandler.recover(this, re);
|
5487 | } else {
|
5488 | throw re;
|
5489 | }
|
5490 | } finally {
|
5491 | this.exitRule();
|
5492 | }
|
5493 | return localctx;
|
5494 | };
|
5495 |
|
5496 | function Typeof_then_clauseContext(parser, parent, invokingState) {
|
5497 | if(parent===undefined) {
|
5498 | parent = null;
|
5499 | }
|
5500 | if(invokingState===undefined || invokingState===null) {
|
5501 | invokingState = -1;
|
5502 | }
|
5503 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
5504 | this.parser = parser;
|
5505 | this.ruleIndex = SOQLParser.RULE_typeof_then_clause;
|
5506 | return this;
|
5507 | }
|
5508 |
|
5509 | Typeof_then_clauseContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
5510 | Typeof_then_clauseContext.prototype.constructor = Typeof_then_clauseContext;
|
5511 |
|
5512 | Typeof_then_clauseContext.prototype.THEN = function() {
|
5513 | return this.getToken(SOQLParser.THEN, 0);
|
5514 | };
|
5515 |
|
5516 | Typeof_then_clauseContext.prototype.field_list = function() {
|
5517 | return this.getTypedRuleContext(Field_listContext,0);
|
5518 | };
|
5519 |
|
5520 | Typeof_then_clauseContext.prototype.enterRule = function(listener) {
|
5521 | if(listener instanceof SOQLListener ) {
|
5522 | listener.enterTypeof_then_clause(this);
|
5523 | }
|
5524 | };
|
5525 |
|
5526 | Typeof_then_clauseContext.prototype.exitRule = function(listener) {
|
5527 | if(listener instanceof SOQLListener ) {
|
5528 | listener.exitTypeof_then_clause(this);
|
5529 | }
|
5530 | };
|
5531 |
|
5532 |
|
5533 |
|
5534 |
|
5535 | SOQLParser.Typeof_then_clauseContext = Typeof_then_clauseContext;
|
5536 |
|
5537 | SOQLParser.prototype.typeof_then_clause = function() {
|
5538 |
|
5539 | var localctx = new Typeof_then_clauseContext(this, this._ctx, this.state);
|
5540 | this.enterRule(localctx, 102, SOQLParser.RULE_typeof_then_clause);
|
5541 | try {
|
5542 | this.enterOuterAlt(localctx, 1);
|
5543 | this.state = 449;
|
5544 | this.match(SOQLParser.THEN);
|
5545 | this.state = 450;
|
5546 | this.field_list();
|
5547 | } catch (re) {
|
5548 | if(re instanceof antlr4.error.RecognitionException) {
|
5549 | localctx.exception = re;
|
5550 | this._errHandler.reportError(this, re);
|
5551 | this._errHandler.recover(this, re);
|
5552 | } else {
|
5553 | throw re;
|
5554 | }
|
5555 | } finally {
|
5556 | this.exitRule();
|
5557 | }
|
5558 | return localctx;
|
5559 | };
|
5560 |
|
5561 | function Typeof_else_clauseContext(parser, parent, invokingState) {
|
5562 | if(parent===undefined) {
|
5563 | parent = null;
|
5564 | }
|
5565 | if(invokingState===undefined || invokingState===null) {
|
5566 | invokingState = -1;
|
5567 | }
|
5568 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
5569 | this.parser = parser;
|
5570 | this.ruleIndex = SOQLParser.RULE_typeof_else_clause;
|
5571 | return this;
|
5572 | }
|
5573 |
|
5574 | Typeof_else_clauseContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
5575 | Typeof_else_clauseContext.prototype.constructor = Typeof_else_clauseContext;
|
5576 |
|
5577 | Typeof_else_clauseContext.prototype.ELSE = function() {
|
5578 | return this.getToken(SOQLParser.ELSE, 0);
|
5579 | };
|
5580 |
|
5581 | Typeof_else_clauseContext.prototype.field_list = function() {
|
5582 | return this.getTypedRuleContext(Field_listContext,0);
|
5583 | };
|
5584 |
|
5585 | Typeof_else_clauseContext.prototype.enterRule = function(listener) {
|
5586 | if(listener instanceof SOQLListener ) {
|
5587 | listener.enterTypeof_else_clause(this);
|
5588 | }
|
5589 | };
|
5590 |
|
5591 | Typeof_else_clauseContext.prototype.exitRule = function(listener) {
|
5592 | if(listener instanceof SOQLListener ) {
|
5593 | listener.exitTypeof_else_clause(this);
|
5594 | }
|
5595 | };
|
5596 |
|
5597 |
|
5598 |
|
5599 |
|
5600 | SOQLParser.Typeof_else_clauseContext = Typeof_else_clauseContext;
|
5601 |
|
5602 | SOQLParser.prototype.typeof_else_clause = function() {
|
5603 |
|
5604 | var localctx = new Typeof_else_clauseContext(this, this._ctx, this.state);
|
5605 | this.enterRule(localctx, 104, SOQLParser.RULE_typeof_else_clause);
|
5606 | try {
|
5607 | this.enterOuterAlt(localctx, 1);
|
5608 | this.state = 452;
|
5609 | this.match(SOQLParser.ELSE);
|
5610 | this.state = 453;
|
5611 | this.field_list();
|
5612 | } catch (re) {
|
5613 | if(re instanceof antlr4.error.RecognitionException) {
|
5614 | localctx.exception = re;
|
5615 | this._errHandler.reportError(this, re);
|
5616 | this._errHandler.recover(this, re);
|
5617 | } else {
|
5618 | throw re;
|
5619 | }
|
5620 | } finally {
|
5621 | this.exitRule();
|
5622 | }
|
5623 | return localctx;
|
5624 | };
|
5625 |
|
5626 | function Field_listContext(parser, parent, invokingState) {
|
5627 | if(parent===undefined) {
|
5628 | parent = null;
|
5629 | }
|
5630 | if(invokingState===undefined || invokingState===null) {
|
5631 | invokingState = -1;
|
5632 | }
|
5633 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
5634 | this.parser = parser;
|
5635 | this.ruleIndex = SOQLParser.RULE_field_list;
|
5636 | return this;
|
5637 | }
|
5638 |
|
5639 | Field_listContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
5640 | Field_listContext.prototype.constructor = Field_listContext;
|
5641 |
|
5642 | Field_listContext.prototype.field = function(i) {
|
5643 | if(i===undefined) {
|
5644 | i = null;
|
5645 | }
|
5646 | if(i===null) {
|
5647 | return this.getTypedRuleContexts(FieldContext);
|
5648 | } else {
|
5649 | return this.getTypedRuleContext(FieldContext,i);
|
5650 | }
|
5651 | };
|
5652 |
|
5653 | Field_listContext.prototype.COMMA = function(i) {
|
5654 | if(i===undefined) {
|
5655 | i = null;
|
5656 | }
|
5657 | if(i===null) {
|
5658 | return this.getTokens(SOQLParser.COMMA);
|
5659 | } else {
|
5660 | return this.getToken(SOQLParser.COMMA, i);
|
5661 | }
|
5662 | };
|
5663 |
|
5664 |
|
5665 | Field_listContext.prototype.enterRule = function(listener) {
|
5666 | if(listener instanceof SOQLListener ) {
|
5667 | listener.enterField_list(this);
|
5668 | }
|
5669 | };
|
5670 |
|
5671 | Field_listContext.prototype.exitRule = function(listener) {
|
5672 | if(listener instanceof SOQLListener ) {
|
5673 | listener.exitField_list(this);
|
5674 | }
|
5675 | };
|
5676 |
|
5677 |
|
5678 |
|
5679 |
|
5680 | SOQLParser.Field_listContext = Field_listContext;
|
5681 |
|
5682 | SOQLParser.prototype.field_list = function() {
|
5683 |
|
5684 | var localctx = new Field_listContext(this, this._ctx, this.state);
|
5685 | this.enterRule(localctx, 106, SOQLParser.RULE_field_list);
|
5686 | var _la = 0;
|
5687 | try {
|
5688 | this.enterOuterAlt(localctx, 1);
|
5689 | this.state = 455;
|
5690 | this.field();
|
5691 | this.state = 460;
|
5692 | this._errHandler.sync(this);
|
5693 | _la = this._input.LA(1);
|
5694 | while(_la===SOQLParser.COMMA) {
|
5695 | this.state = 456;
|
5696 | this.match(SOQLParser.COMMA);
|
5697 | this.state = 457;
|
5698 | this.field();
|
5699 | this.state = 462;
|
5700 | this._errHandler.sync(this);
|
5701 | _la = this._input.LA(1);
|
5702 | }
|
5703 | } catch (re) {
|
5704 | if(re instanceof antlr4.error.RecognitionException) {
|
5705 | localctx.exception = re;
|
5706 | this._errHandler.reportError(this, re);
|
5707 | this._errHandler.recover(this, re);
|
5708 | } else {
|
5709 | throw re;
|
5710 | }
|
5711 | } finally {
|
5712 | this.exitRule();
|
5713 | }
|
5714 | return localctx;
|
5715 | };
|
5716 |
|
5717 | function Object_specContext(parser, parent, invokingState) {
|
5718 | if(parent===undefined) {
|
5719 | parent = null;
|
5720 | }
|
5721 | if(invokingState===undefined || invokingState===null) {
|
5722 | invokingState = -1;
|
5723 | }
|
5724 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
5725 | this.parser = parser;
|
5726 | this.ruleIndex = SOQLParser.RULE_object_spec;
|
5727 | return this;
|
5728 | }
|
5729 |
|
5730 | Object_specContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
5731 | Object_specContext.prototype.constructor = Object_specContext;
|
5732 |
|
5733 | Object_specContext.prototype.object_name = function() {
|
5734 | return this.getTypedRuleContext(Object_nameContext,0);
|
5735 | };
|
5736 |
|
5737 | Object_specContext.prototype.object_prefix = function() {
|
5738 | return this.getTypedRuleContext(Object_prefixContext,0);
|
5739 | };
|
5740 |
|
5741 | Object_specContext.prototype.alias = function() {
|
5742 | return this.getTypedRuleContext(AliasContext,0);
|
5743 | };
|
5744 |
|
5745 | Object_specContext.prototype.enterRule = function(listener) {
|
5746 | if(listener instanceof SOQLListener ) {
|
5747 | listener.enterObject_spec(this);
|
5748 | }
|
5749 | };
|
5750 |
|
5751 | Object_specContext.prototype.exitRule = function(listener) {
|
5752 | if(listener instanceof SOQLListener ) {
|
5753 | listener.exitObject_spec(this);
|
5754 | }
|
5755 | };
|
5756 |
|
5757 |
|
5758 |
|
5759 |
|
5760 | SOQLParser.Object_specContext = Object_specContext;
|
5761 |
|
5762 | SOQLParser.prototype.object_spec = function() {
|
5763 |
|
5764 | var localctx = new Object_specContext(this, this._ctx, this.state);
|
5765 | this.enterRule(localctx, 108, SOQLParser.RULE_object_spec);
|
5766 | try {
|
5767 | this.enterOuterAlt(localctx, 1);
|
5768 | this.state = 464;
|
5769 | this._errHandler.sync(this);
|
5770 | var la_ = this._interp.adaptivePredict(this._input,42,this._ctx);
|
5771 | if(la_===1) {
|
5772 | this.state = 463;
|
5773 | this.object_prefix();
|
5774 |
|
5775 | }
|
5776 | this.state = 466;
|
5777 | this.object_name();
|
5778 | this.state = 468;
|
5779 | this._errHandler.sync(this);
|
5780 | var la_ = this._interp.adaptivePredict(this._input,43,this._ctx);
|
5781 | if(la_===1) {
|
5782 | this.state = 467;
|
5783 | this.alias();
|
5784 |
|
5785 | }
|
5786 | } catch (re) {
|
5787 | if(re instanceof antlr4.error.RecognitionException) {
|
5788 | localctx.exception = re;
|
5789 | this._errHandler.reportError(this, re);
|
5790 | this._errHandler.recover(this, re);
|
5791 | } else {
|
5792 | throw re;
|
5793 | }
|
5794 | } finally {
|
5795 | this.exitRule();
|
5796 | }
|
5797 | return localctx;
|
5798 | };
|
5799 |
|
5800 | function Object_prefixContext(parser, parent, invokingState) {
|
5801 | if(parent===undefined) {
|
5802 | parent = null;
|
5803 | }
|
5804 | if(invokingState===undefined || invokingState===null) {
|
5805 | invokingState = -1;
|
5806 | }
|
5807 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
5808 | this.parser = parser;
|
5809 | this.ruleIndex = SOQLParser.RULE_object_prefix;
|
5810 | return this;
|
5811 | }
|
5812 |
|
5813 | Object_prefixContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
5814 | Object_prefixContext.prototype.constructor = Object_prefixContext;
|
5815 |
|
5816 | Object_prefixContext.prototype.object_name = function(i) {
|
5817 | if(i===undefined) {
|
5818 | i = null;
|
5819 | }
|
5820 | if(i===null) {
|
5821 | return this.getTypedRuleContexts(Object_nameContext);
|
5822 | } else {
|
5823 | return this.getTypedRuleContext(Object_nameContext,i);
|
5824 | }
|
5825 | };
|
5826 |
|
5827 | Object_prefixContext.prototype.DOT = function(i) {
|
5828 | if(i===undefined) {
|
5829 | i = null;
|
5830 | }
|
5831 | if(i===null) {
|
5832 | return this.getTokens(SOQLParser.DOT);
|
5833 | } else {
|
5834 | return this.getToken(SOQLParser.DOT, i);
|
5835 | }
|
5836 | };
|
5837 |
|
5838 |
|
5839 | Object_prefixContext.prototype.enterRule = function(listener) {
|
5840 | if(listener instanceof SOQLListener ) {
|
5841 | listener.enterObject_prefix(this);
|
5842 | }
|
5843 | };
|
5844 |
|
5845 | Object_prefixContext.prototype.exitRule = function(listener) {
|
5846 | if(listener instanceof SOQLListener ) {
|
5847 | listener.exitObject_prefix(this);
|
5848 | }
|
5849 | };
|
5850 |
|
5851 |
|
5852 |
|
5853 |
|
5854 | SOQLParser.Object_prefixContext = Object_prefixContext;
|
5855 |
|
5856 | SOQLParser.prototype.object_prefix = function() {
|
5857 |
|
5858 | var localctx = new Object_prefixContext(this, this._ctx, this.state);
|
5859 | this.enterRule(localctx, 110, SOQLParser.RULE_object_prefix);
|
5860 | try {
|
5861 | this.enterOuterAlt(localctx, 1);
|
5862 | this.state = 473;
|
5863 | this._errHandler.sync(this);
|
5864 | var _alt = 1;
|
5865 | do {
|
5866 | switch (_alt) {
|
5867 | case 1:
|
5868 | this.state = 470;
|
5869 | this.object_name();
|
5870 | this.state = 471;
|
5871 | this.match(SOQLParser.DOT);
|
5872 | break;
|
5873 | default:
|
5874 | throw new antlr4.error.NoViableAltException(this);
|
5875 | }
|
5876 | this.state = 475;
|
5877 | this._errHandler.sync(this);
|
5878 | _alt = this._interp.adaptivePredict(this._input,44, this._ctx);
|
5879 | } while ( _alt!=2 && _alt!=antlr4.atn.ATN.INVALID_ALT_NUMBER );
|
5880 | } catch (re) {
|
5881 | if(re instanceof antlr4.error.RecognitionException) {
|
5882 | localctx.exception = re;
|
5883 | this._errHandler.reportError(this, re);
|
5884 | this._errHandler.recover(this, re);
|
5885 | } else {
|
5886 | throw re;
|
5887 | }
|
5888 | } finally {
|
5889 | this.exitRule();
|
5890 | }
|
5891 | return localctx;
|
5892 | };
|
5893 |
|
5894 | function Comparison_operatorContext(parser, parent, invokingState) {
|
5895 | if(parent===undefined) {
|
5896 | parent = null;
|
5897 | }
|
5898 | if(invokingState===undefined || invokingState===null) {
|
5899 | invokingState = -1;
|
5900 | }
|
5901 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
5902 | this.parser = parser;
|
5903 | this.ruleIndex = SOQLParser.RULE_comparison_operator;
|
5904 | return this;
|
5905 | }
|
5906 |
|
5907 | Comparison_operatorContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
5908 | Comparison_operatorContext.prototype.constructor = Comparison_operatorContext;
|
5909 |
|
5910 | Comparison_operatorContext.prototype.EQ = function() {
|
5911 | return this.getToken(SOQLParser.EQ, 0);
|
5912 | };
|
5913 |
|
5914 | Comparison_operatorContext.prototype.NOT_EQ = function() {
|
5915 | return this.getToken(SOQLParser.NOT_EQ, 0);
|
5916 | };
|
5917 |
|
5918 | Comparison_operatorContext.prototype.LET = function() {
|
5919 | return this.getToken(SOQLParser.LET, 0);
|
5920 | };
|
5921 |
|
5922 | Comparison_operatorContext.prototype.GET = function() {
|
5923 | return this.getToken(SOQLParser.GET, 0);
|
5924 | };
|
5925 |
|
5926 | Comparison_operatorContext.prototype.GTH = function() {
|
5927 | return this.getToken(SOQLParser.GTH, 0);
|
5928 | };
|
5929 |
|
5930 | Comparison_operatorContext.prototype.LTH = function() {
|
5931 | return this.getToken(SOQLParser.LTH, 0);
|
5932 | };
|
5933 |
|
5934 | Comparison_operatorContext.prototype.enterRule = function(listener) {
|
5935 | if(listener instanceof SOQLListener ) {
|
5936 | listener.enterComparison_operator(this);
|
5937 | }
|
5938 | };
|
5939 |
|
5940 | Comparison_operatorContext.prototype.exitRule = function(listener) {
|
5941 | if(listener instanceof SOQLListener ) {
|
5942 | listener.exitComparison_operator(this);
|
5943 | }
|
5944 | };
|
5945 |
|
5946 |
|
5947 |
|
5948 |
|
5949 | SOQLParser.Comparison_operatorContext = Comparison_operatorContext;
|
5950 |
|
5951 | SOQLParser.prototype.comparison_operator = function() {
|
5952 |
|
5953 | var localctx = new Comparison_operatorContext(this, this._ctx, this.state);
|
5954 | this.enterRule(localctx, 112, SOQLParser.RULE_comparison_operator);
|
5955 | try {
|
5956 | this.state = 487;
|
5957 | this._errHandler.sync(this);
|
5958 | var la_ = this._interp.adaptivePredict(this._input,45,this._ctx);
|
5959 | switch(la_) {
|
5960 | case 1:
|
5961 | this.enterOuterAlt(localctx, 1);
|
5962 | this.state = 477;
|
5963 | this.match(SOQLParser.EQ);
|
5964 | break;
|
5965 |
|
5966 | case 2:
|
5967 | this.enterOuterAlt(localctx, 2);
|
5968 | this.state = 478;
|
5969 | this.match(SOQLParser.NOT_EQ);
|
5970 | break;
|
5971 |
|
5972 | case 3:
|
5973 | this.enterOuterAlt(localctx, 3);
|
5974 | this.state = 479;
|
5975 | this.match(SOQLParser.LET);
|
5976 | break;
|
5977 |
|
5978 | case 4:
|
5979 | this.enterOuterAlt(localctx, 4);
|
5980 | this.state = 480;
|
5981 | this.match(SOQLParser.GET);
|
5982 | break;
|
5983 |
|
5984 | case 5:
|
5985 | this.enterOuterAlt(localctx, 5);
|
5986 | this.state = 481;
|
5987 | this.match(SOQLParser.GTH);
|
5988 | break;
|
5989 |
|
5990 | case 6:
|
5991 | this.enterOuterAlt(localctx, 6);
|
5992 | this.state = 482;
|
5993 | this.match(SOQLParser.LTH);
|
5994 | break;
|
5995 |
|
5996 | case 7:
|
5997 | this.enterOuterAlt(localctx, 7);
|
5998 | this.state = 483;
|
5999 | this.match(SOQLParser.GTH);
|
6000 | this.state = 484;
|
6001 | this.match(SOQLParser.EQ);
|
6002 | break;
|
6003 |
|
6004 | case 8:
|
6005 | this.enterOuterAlt(localctx, 8);
|
6006 | this.state = 485;
|
6007 | this.match(SOQLParser.LTH);
|
6008 | this.state = 486;
|
6009 | this.match(SOQLParser.EQ);
|
6010 | break;
|
6011 |
|
6012 | }
|
6013 | } catch (re) {
|
6014 | if(re instanceof antlr4.error.RecognitionException) {
|
6015 | localctx.exception = re;
|
6016 | this._errHandler.reportError(this, re);
|
6017 | this._errHandler.recover(this, re);
|
6018 | } else {
|
6019 | throw re;
|
6020 | }
|
6021 | } finally {
|
6022 | this.exitRule();
|
6023 | }
|
6024 | return localctx;
|
6025 | };
|
6026 |
|
6027 | function Set_operatorContext(parser, parent, invokingState) {
|
6028 | if(parent===undefined) {
|
6029 | parent = null;
|
6030 | }
|
6031 | if(invokingState===undefined || invokingState===null) {
|
6032 | invokingState = -1;
|
6033 | }
|
6034 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
6035 | this.parser = parser;
|
6036 | this.ruleIndex = SOQLParser.RULE_set_operator;
|
6037 | return this;
|
6038 | }
|
6039 |
|
6040 | Set_operatorContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
6041 | Set_operatorContext.prototype.constructor = Set_operatorContext;
|
6042 |
|
6043 | Set_operatorContext.prototype.IN = function() {
|
6044 | return this.getToken(SOQLParser.IN, 0);
|
6045 | };
|
6046 |
|
6047 | Set_operatorContext.prototype.NOT = function() {
|
6048 | return this.getToken(SOQLParser.NOT, 0);
|
6049 | };
|
6050 |
|
6051 | Set_operatorContext.prototype.INCLUDES = function() {
|
6052 | return this.getToken(SOQLParser.INCLUDES, 0);
|
6053 | };
|
6054 |
|
6055 | Set_operatorContext.prototype.EXCLUDES = function() {
|
6056 | return this.getToken(SOQLParser.EXCLUDES, 0);
|
6057 | };
|
6058 |
|
6059 | Set_operatorContext.prototype.enterRule = function(listener) {
|
6060 | if(listener instanceof SOQLListener ) {
|
6061 | listener.enterSet_operator(this);
|
6062 | }
|
6063 | };
|
6064 |
|
6065 | Set_operatorContext.prototype.exitRule = function(listener) {
|
6066 | if(listener instanceof SOQLListener ) {
|
6067 | listener.exitSet_operator(this);
|
6068 | }
|
6069 | };
|
6070 |
|
6071 |
|
6072 |
|
6073 |
|
6074 | SOQLParser.Set_operatorContext = Set_operatorContext;
|
6075 |
|
6076 | SOQLParser.prototype.set_operator = function() {
|
6077 |
|
6078 | var localctx = new Set_operatorContext(this, this._ctx, this.state);
|
6079 | this.enterRule(localctx, 114, SOQLParser.RULE_set_operator);
|
6080 | try {
|
6081 | this.state = 494;
|
6082 | this._errHandler.sync(this);
|
6083 | switch(this._input.LA(1)) {
|
6084 | case SOQLParser.IN:
|
6085 | this.enterOuterAlt(localctx, 1);
|
6086 | this.state = 489;
|
6087 | this.match(SOQLParser.IN);
|
6088 | break;
|
6089 | case SOQLParser.NOT:
|
6090 | this.enterOuterAlt(localctx, 2);
|
6091 | this.state = 490;
|
6092 | this.match(SOQLParser.NOT);
|
6093 | this.state = 491;
|
6094 | this.match(SOQLParser.IN);
|
6095 | break;
|
6096 | case SOQLParser.INCLUDES:
|
6097 | this.enterOuterAlt(localctx, 3);
|
6098 | this.state = 492;
|
6099 | this.match(SOQLParser.INCLUDES);
|
6100 | break;
|
6101 | case SOQLParser.EXCLUDES:
|
6102 | this.enterOuterAlt(localctx, 4);
|
6103 | this.state = 493;
|
6104 | this.match(SOQLParser.EXCLUDES);
|
6105 | break;
|
6106 | default:
|
6107 | throw new antlr4.error.NoViableAltException(this);
|
6108 | }
|
6109 | } catch (re) {
|
6110 | if(re instanceof antlr4.error.RecognitionException) {
|
6111 | localctx.exception = re;
|
6112 | this._errHandler.reportError(this, re);
|
6113 | this._errHandler.recover(this, re);
|
6114 | } else {
|
6115 | throw re;
|
6116 | }
|
6117 | } finally {
|
6118 | this.exitRule();
|
6119 | }
|
6120 | return localctx;
|
6121 | };
|
6122 |
|
6123 | function ConditionContext(parser, parent, invokingState) {
|
6124 | if(parent===undefined) {
|
6125 | parent = null;
|
6126 | }
|
6127 | if(invokingState===undefined || invokingState===null) {
|
6128 | invokingState = -1;
|
6129 | }
|
6130 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
6131 | this.parser = parser;
|
6132 | this.ruleIndex = SOQLParser.RULE_condition;
|
6133 | return this;
|
6134 | }
|
6135 |
|
6136 | ConditionContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
6137 | ConditionContext.prototype.constructor = ConditionContext;
|
6138 |
|
6139 | ConditionContext.prototype.condition1 = function(i) {
|
6140 | if(i===undefined) {
|
6141 | i = null;
|
6142 | }
|
6143 | if(i===null) {
|
6144 | return this.getTypedRuleContexts(Condition1Context);
|
6145 | } else {
|
6146 | return this.getTypedRuleContext(Condition1Context,i);
|
6147 | }
|
6148 | };
|
6149 |
|
6150 | ConditionContext.prototype.OR = function(i) {
|
6151 | if(i===undefined) {
|
6152 | i = null;
|
6153 | }
|
6154 | if(i===null) {
|
6155 | return this.getTokens(SOQLParser.OR);
|
6156 | } else {
|
6157 | return this.getToken(SOQLParser.OR, i);
|
6158 | }
|
6159 | };
|
6160 |
|
6161 |
|
6162 | ConditionContext.prototype.AND = function(i) {
|
6163 | if(i===undefined) {
|
6164 | i = null;
|
6165 | }
|
6166 | if(i===null) {
|
6167 | return this.getTokens(SOQLParser.AND);
|
6168 | } else {
|
6169 | return this.getToken(SOQLParser.AND, i);
|
6170 | }
|
6171 | };
|
6172 |
|
6173 |
|
6174 | ConditionContext.prototype.enterRule = function(listener) {
|
6175 | if(listener instanceof SOQLListener ) {
|
6176 | listener.enterCondition(this);
|
6177 | }
|
6178 | };
|
6179 |
|
6180 | ConditionContext.prototype.exitRule = function(listener) {
|
6181 | if(listener instanceof SOQLListener ) {
|
6182 | listener.exitCondition(this);
|
6183 | }
|
6184 | };
|
6185 |
|
6186 |
|
6187 |
|
6188 |
|
6189 | SOQLParser.ConditionContext = ConditionContext;
|
6190 |
|
6191 | SOQLParser.prototype.condition = function() {
|
6192 |
|
6193 | var localctx = new ConditionContext(this, this._ctx, this.state);
|
6194 | this.enterRule(localctx, 116, SOQLParser.RULE_condition);
|
6195 | var _la = 0;
|
6196 | try {
|
6197 | this.enterOuterAlt(localctx, 1);
|
6198 | this.state = 496;
|
6199 | this.condition1();
|
6200 | this.state = 501;
|
6201 | this._errHandler.sync(this);
|
6202 | _la = this._input.LA(1);
|
6203 | while(_la===SOQLParser.AND || _la===SOQLParser.OR) {
|
6204 | this.state = 497;
|
6205 | _la = this._input.LA(1);
|
6206 | if(!(_la===SOQLParser.AND || _la===SOQLParser.OR)) {
|
6207 | this._errHandler.recoverInline(this);
|
6208 | }
|
6209 | else {
|
6210 | this._errHandler.reportMatch(this);
|
6211 | this.consume();
|
6212 | }
|
6213 | this.state = 498;
|
6214 | this.condition1();
|
6215 | this.state = 503;
|
6216 | this._errHandler.sync(this);
|
6217 | _la = this._input.LA(1);
|
6218 | }
|
6219 | } catch (re) {
|
6220 | if(re instanceof antlr4.error.RecognitionException) {
|
6221 | localctx.exception = re;
|
6222 | this._errHandler.reportError(this, re);
|
6223 | this._errHandler.recover(this, re);
|
6224 | } else {
|
6225 | throw re;
|
6226 | }
|
6227 | } finally {
|
6228 | this.exitRule();
|
6229 | }
|
6230 | return localctx;
|
6231 | };
|
6232 |
|
6233 | function Condition1Context(parser, parent, invokingState) {
|
6234 | if(parent===undefined) {
|
6235 | parent = null;
|
6236 | }
|
6237 | if(invokingState===undefined || invokingState===null) {
|
6238 | invokingState = -1;
|
6239 | }
|
6240 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
6241 | this.parser = parser;
|
6242 | this.ruleIndex = SOQLParser.RULE_condition1;
|
6243 | return this;
|
6244 | }
|
6245 |
|
6246 | Condition1Context.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
6247 | Condition1Context.prototype.constructor = Condition1Context;
|
6248 |
|
6249 | Condition1Context.prototype.simple_condition = function() {
|
6250 | return this.getTypedRuleContext(Simple_conditionContext,0);
|
6251 | };
|
6252 |
|
6253 | Condition1Context.prototype.parenthesis = function() {
|
6254 | return this.getTypedRuleContext(ParenthesisContext,0);
|
6255 | };
|
6256 |
|
6257 | Condition1Context.prototype.NOT = function() {
|
6258 | return this.getToken(SOQLParser.NOT, 0);
|
6259 | };
|
6260 |
|
6261 | Condition1Context.prototype.enterRule = function(listener) {
|
6262 | if(listener instanceof SOQLListener ) {
|
6263 | listener.enterCondition1(this);
|
6264 | }
|
6265 | };
|
6266 |
|
6267 | Condition1Context.prototype.exitRule = function(listener) {
|
6268 | if(listener instanceof SOQLListener ) {
|
6269 | listener.exitCondition1(this);
|
6270 | }
|
6271 | };
|
6272 |
|
6273 |
|
6274 |
|
6275 |
|
6276 | SOQLParser.Condition1Context = Condition1Context;
|
6277 |
|
6278 | SOQLParser.prototype.condition1 = function() {
|
6279 |
|
6280 | var localctx = new Condition1Context(this, this._ctx, this.state);
|
6281 | this.enterRule(localctx, 118, SOQLParser.RULE_condition1);
|
6282 | var _la = 0;
|
6283 | try {
|
6284 | this.enterOuterAlt(localctx, 1);
|
6285 | this.state = 505;
|
6286 | this._errHandler.sync(this);
|
6287 | _la = this._input.LA(1);
|
6288 | if(_la===SOQLParser.NOT) {
|
6289 | this.state = 504;
|
6290 | this.match(SOQLParser.NOT);
|
6291 | }
|
6292 |
|
6293 | this.state = 509;
|
6294 | this._errHandler.sync(this);
|
6295 | switch(this._input.LA(1)) {
|
6296 | case SOQLParser.GROUP:
|
6297 | case SOQLParser.ABOVE:
|
6298 | case SOQLParser.ABOVE_OR_BELOW:
|
6299 | case SOQLParser.AT:
|
6300 | case SOQLParser.BELOW:
|
6301 | case SOQLParser.CATEGORY:
|
6302 | case SOQLParser.DATA:
|
6303 | case SOQLParser.END:
|
6304 | case SOQLParser.OFFSET:
|
6305 | case SOQLParser.ORDER:
|
6306 | case SOQLParser.REFERENCE:
|
6307 | case SOQLParser.SCOPE:
|
6308 | case SOQLParser.TRACKING:
|
6309 | case SOQLParser.THEN:
|
6310 | case SOQLParser.TYPEOF:
|
6311 | case SOQLParser.VIEW:
|
6312 | case SOQLParser.VIEWSTAT:
|
6313 | case SOQLParser.WHEN:
|
6314 | case SOQLParser.CALENDAR_MONTH:
|
6315 | case SOQLParser.CALENDAR_QUARTER:
|
6316 | case SOQLParser.CALENDAR_YEAR:
|
6317 | case SOQLParser.DAY_IN_MONTH:
|
6318 | case SOQLParser.DAY_IN_WEEK:
|
6319 | case SOQLParser.DAY_IN_YEAR:
|
6320 | case SOQLParser.DAY_ONLY:
|
6321 | case SOQLParser.FISCAL_MONTH:
|
6322 | case SOQLParser.FISCAL_QUARTER:
|
6323 | case SOQLParser.FISCAL_YEAR:
|
6324 | case SOQLParser.HOUR_IN_DAY:
|
6325 | case SOQLParser.WEEK_IN_MONTH:
|
6326 | case SOQLParser.WEEK_IN_YEAR:
|
6327 | case SOQLParser.AVG:
|
6328 | case SOQLParser.COUNT:
|
6329 | case SOQLParser.COUNT_DISTINCT:
|
6330 | case SOQLParser.MIN:
|
6331 | case SOQLParser.MAX:
|
6332 | case SOQLParser.SUM:
|
6333 | case SOQLParser.DISTANCE:
|
6334 | case SOQLParser.GEOLOCATION:
|
6335 | case SOQLParser.FORMAT:
|
6336 | case SOQLParser.TOLABEL:
|
6337 | case SOQLParser.CONVERT_TIME_ZONE:
|
6338 | case SOQLParser.CONVERT_CURRENCY:
|
6339 | case SOQLParser.GROUPING:
|
6340 | case SOQLParser.YESTERDAY:
|
6341 | case SOQLParser.TODAY:
|
6342 | case SOQLParser.TOMORROW:
|
6343 | case SOQLParser.LAST_WEEK:
|
6344 | case SOQLParser.THIS_WEEK:
|
6345 | case SOQLParser.NEXT_WEEK:
|
6346 | case SOQLParser.LAST_MONTH:
|
6347 | case SOQLParser.THIS_MONTH:
|
6348 | case SOQLParser.NEXT_MONTH:
|
6349 | case SOQLParser.LAST_90_DAYS:
|
6350 | case SOQLParser.NEXT_90_DAYS:
|
6351 | case SOQLParser.THIS_QUARTER:
|
6352 | case SOQLParser.LAST_QUARTER:
|
6353 | case SOQLParser.NEXT_QUARTER:
|
6354 | case SOQLParser.THIS_YEAR:
|
6355 | case SOQLParser.LAST_YEAR:
|
6356 | case SOQLParser.NEXT_YEAR:
|
6357 | case SOQLParser.THIS_FISCAL_QUARTER:
|
6358 | case SOQLParser.LAST_FISCAL_QUARTER:
|
6359 | case SOQLParser.NEXT_FISCAL_QUARTER:
|
6360 | case SOQLParser.THIS_FISCAL_YEAR:
|
6361 | case SOQLParser.LAST_FISCAL_YEAR:
|
6362 | case SOQLParser.NEXT_FISCAL_YEAR:
|
6363 | case SOQLParser.NEXT_N_DAYS:
|
6364 | case SOQLParser.LAST_N_DAYS:
|
6365 | case SOQLParser.N_DAYS_AGO:
|
6366 | case SOQLParser.NEXT_N_WEEKS:
|
6367 | case SOQLParser.LAST_N_WEEKS:
|
6368 | case SOQLParser.N_WEEKS_AGO:
|
6369 | case SOQLParser.NEXT_N_MONTHS:
|
6370 | case SOQLParser.LAST_N_MONTHS:
|
6371 | case SOQLParser.N_MONTHS_AGO:
|
6372 | case SOQLParser.NEXT_N_QUARTERS:
|
6373 | case SOQLParser.LAST_N_QUARTERS:
|
6374 | case SOQLParser.N_QUARTERS_AGO:
|
6375 | case SOQLParser.NEXT_N_YEARS:
|
6376 | case SOQLParser.LAST_N_YEARS:
|
6377 | case SOQLParser.N_YEARS_AGO:
|
6378 | case SOQLParser.NEXT_N_FISCAL_QUARTERS:
|
6379 | case SOQLParser.LAST_N_FISCAL_QUARTERS:
|
6380 | case SOQLParser.N_FISCAL_QUARTERS_AGO:
|
6381 | case SOQLParser.NEXT_N_FISCAL_YEARS:
|
6382 | case SOQLParser.LAST_N_FISCAL_YEARS:
|
6383 | case SOQLParser.N_FISCAL_YEARS_AGO:
|
6384 | case SOQLParser.ID:
|
6385 | this.state = 507;
|
6386 | this.simple_condition();
|
6387 | break;
|
6388 | case SOQLParser.LPAREN:
|
6389 | this.state = 508;
|
6390 | this.parenthesis();
|
6391 | break;
|
6392 | default:
|
6393 | throw new antlr4.error.NoViableAltException(this);
|
6394 | }
|
6395 | } catch (re) {
|
6396 | if(re instanceof antlr4.error.RecognitionException) {
|
6397 | localctx.exception = re;
|
6398 | this._errHandler.reportError(this, re);
|
6399 | this._errHandler.recover(this, re);
|
6400 | } else {
|
6401 | throw re;
|
6402 | }
|
6403 | } finally {
|
6404 | this.exitRule();
|
6405 | }
|
6406 | return localctx;
|
6407 | };
|
6408 |
|
6409 | function ParenthesisContext(parser, parent, invokingState) {
|
6410 | if(parent===undefined) {
|
6411 | parent = null;
|
6412 | }
|
6413 | if(invokingState===undefined || invokingState===null) {
|
6414 | invokingState = -1;
|
6415 | }
|
6416 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
6417 | this.parser = parser;
|
6418 | this.ruleIndex = SOQLParser.RULE_parenthesis;
|
6419 | return this;
|
6420 | }
|
6421 |
|
6422 | ParenthesisContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
6423 | ParenthesisContext.prototype.constructor = ParenthesisContext;
|
6424 |
|
6425 | ParenthesisContext.prototype.LPAREN = function() {
|
6426 | return this.getToken(SOQLParser.LPAREN, 0);
|
6427 | };
|
6428 |
|
6429 | ParenthesisContext.prototype.condition = function() {
|
6430 | return this.getTypedRuleContext(ConditionContext,0);
|
6431 | };
|
6432 |
|
6433 | ParenthesisContext.prototype.RPAREN = function() {
|
6434 | return this.getToken(SOQLParser.RPAREN, 0);
|
6435 | };
|
6436 |
|
6437 | ParenthesisContext.prototype.enterRule = function(listener) {
|
6438 | if(listener instanceof SOQLListener ) {
|
6439 | listener.enterParenthesis(this);
|
6440 | }
|
6441 | };
|
6442 |
|
6443 | ParenthesisContext.prototype.exitRule = function(listener) {
|
6444 | if(listener instanceof SOQLListener ) {
|
6445 | listener.exitParenthesis(this);
|
6446 | }
|
6447 | };
|
6448 |
|
6449 |
|
6450 |
|
6451 |
|
6452 | SOQLParser.ParenthesisContext = ParenthesisContext;
|
6453 |
|
6454 | SOQLParser.prototype.parenthesis = function() {
|
6455 |
|
6456 | var localctx = new ParenthesisContext(this, this._ctx, this.state);
|
6457 | this.enterRule(localctx, 120, SOQLParser.RULE_parenthesis);
|
6458 | try {
|
6459 | this.enterOuterAlt(localctx, 1);
|
6460 | this.state = 511;
|
6461 | this.match(SOQLParser.LPAREN);
|
6462 | this.state = 512;
|
6463 | this.condition();
|
6464 | this.state = 513;
|
6465 | this.match(SOQLParser.RPAREN);
|
6466 | } catch (re) {
|
6467 | if(re instanceof antlr4.error.RecognitionException) {
|
6468 | localctx.exception = re;
|
6469 | this._errHandler.reportError(this, re);
|
6470 | this._errHandler.recover(this, re);
|
6471 | } else {
|
6472 | throw re;
|
6473 | }
|
6474 | } finally {
|
6475 | this.exitRule();
|
6476 | }
|
6477 | return localctx;
|
6478 | };
|
6479 |
|
6480 | function Simple_conditionContext(parser, parent, invokingState) {
|
6481 | if(parent===undefined) {
|
6482 | parent = null;
|
6483 | }
|
6484 | if(invokingState===undefined || invokingState===null) {
|
6485 | invokingState = -1;
|
6486 | }
|
6487 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
6488 | this.parser = parser;
|
6489 | this.ruleIndex = SOQLParser.RULE_simple_condition;
|
6490 | return this;
|
6491 | }
|
6492 |
|
6493 | Simple_conditionContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
6494 | Simple_conditionContext.prototype.constructor = Simple_conditionContext;
|
6495 |
|
6496 | Simple_conditionContext.prototype.field_based_condition = function() {
|
6497 | return this.getTypedRuleContext(Field_based_conditionContext,0);
|
6498 | };
|
6499 |
|
6500 | Simple_conditionContext.prototype.set_based_condition = function() {
|
6501 | return this.getTypedRuleContext(Set_based_conditionContext,0);
|
6502 | };
|
6503 |
|
6504 | Simple_conditionContext.prototype.like_based_condition = function() {
|
6505 | return this.getTypedRuleContext(Like_based_conditionContext,0);
|
6506 | };
|
6507 |
|
6508 | Simple_conditionContext.prototype.enterRule = function(listener) {
|
6509 | if(listener instanceof SOQLListener ) {
|
6510 | listener.enterSimple_condition(this);
|
6511 | }
|
6512 | };
|
6513 |
|
6514 | Simple_conditionContext.prototype.exitRule = function(listener) {
|
6515 | if(listener instanceof SOQLListener ) {
|
6516 | listener.exitSimple_condition(this);
|
6517 | }
|
6518 | };
|
6519 |
|
6520 |
|
6521 |
|
6522 |
|
6523 | SOQLParser.Simple_conditionContext = Simple_conditionContext;
|
6524 |
|
6525 | SOQLParser.prototype.simple_condition = function() {
|
6526 |
|
6527 | var localctx = new Simple_conditionContext(this, this._ctx, this.state);
|
6528 | this.enterRule(localctx, 122, SOQLParser.RULE_simple_condition);
|
6529 | try {
|
6530 | this.state = 518;
|
6531 | this._errHandler.sync(this);
|
6532 | var la_ = this._interp.adaptivePredict(this._input,50,this._ctx);
|
6533 | switch(la_) {
|
6534 | case 1:
|
6535 | this.enterOuterAlt(localctx, 1);
|
6536 | this.state = 515;
|
6537 | this.field_based_condition();
|
6538 | break;
|
6539 |
|
6540 | case 2:
|
6541 | this.enterOuterAlt(localctx, 2);
|
6542 | this.state = 516;
|
6543 | this.set_based_condition();
|
6544 | break;
|
6545 |
|
6546 | case 3:
|
6547 | this.enterOuterAlt(localctx, 3);
|
6548 | this.state = 517;
|
6549 | this.like_based_condition();
|
6550 | break;
|
6551 |
|
6552 | }
|
6553 | } catch (re) {
|
6554 | if(re instanceof antlr4.error.RecognitionException) {
|
6555 | localctx.exception = re;
|
6556 | this._errHandler.reportError(this, re);
|
6557 | this._errHandler.recover(this, re);
|
6558 | } else {
|
6559 | throw re;
|
6560 | }
|
6561 | } finally {
|
6562 | this.exitRule();
|
6563 | }
|
6564 | return localctx;
|
6565 | };
|
6566 |
|
6567 | function Field_based_conditionContext(parser, parent, invokingState) {
|
6568 | if(parent===undefined) {
|
6569 | parent = null;
|
6570 | }
|
6571 | if(invokingState===undefined || invokingState===null) {
|
6572 | invokingState = -1;
|
6573 | }
|
6574 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
6575 | this.parser = parser;
|
6576 | this.ruleIndex = SOQLParser.RULE_field_based_condition;
|
6577 | return this;
|
6578 | }
|
6579 |
|
6580 | Field_based_conditionContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
6581 | Field_based_conditionContext.prototype.constructor = Field_based_conditionContext;
|
6582 |
|
6583 | Field_based_conditionContext.prototype.condition_field = function() {
|
6584 | return this.getTypedRuleContext(Condition_fieldContext,0);
|
6585 | };
|
6586 |
|
6587 | Field_based_conditionContext.prototype.comparison_operator = function() {
|
6588 | return this.getTypedRuleContext(Comparison_operatorContext,0);
|
6589 | };
|
6590 |
|
6591 | Field_based_conditionContext.prototype.literal = function() {
|
6592 | return this.getTypedRuleContext(LiteralContext,0);
|
6593 | };
|
6594 |
|
6595 | Field_based_conditionContext.prototype.enterRule = function(listener) {
|
6596 | if(listener instanceof SOQLListener ) {
|
6597 | listener.enterField_based_condition(this);
|
6598 | }
|
6599 | };
|
6600 |
|
6601 | Field_based_conditionContext.prototype.exitRule = function(listener) {
|
6602 | if(listener instanceof SOQLListener ) {
|
6603 | listener.exitField_based_condition(this);
|
6604 | }
|
6605 | };
|
6606 |
|
6607 |
|
6608 |
|
6609 |
|
6610 | SOQLParser.Field_based_conditionContext = Field_based_conditionContext;
|
6611 |
|
6612 | SOQLParser.prototype.field_based_condition = function() {
|
6613 |
|
6614 | var localctx = new Field_based_conditionContext(this, this._ctx, this.state);
|
6615 | this.enterRule(localctx, 124, SOQLParser.RULE_field_based_condition);
|
6616 | try {
|
6617 | this.enterOuterAlt(localctx, 1);
|
6618 | this.state = 520;
|
6619 | this.condition_field();
|
6620 | this.state = 521;
|
6621 | this.comparison_operator();
|
6622 | this.state = 522;
|
6623 | this.literal();
|
6624 | } catch (re) {
|
6625 | if(re instanceof antlr4.error.RecognitionException) {
|
6626 | localctx.exception = re;
|
6627 | this._errHandler.reportError(this, re);
|
6628 | this._errHandler.recover(this, re);
|
6629 | } else {
|
6630 | throw re;
|
6631 | }
|
6632 | } finally {
|
6633 | this.exitRule();
|
6634 | }
|
6635 | return localctx;
|
6636 | };
|
6637 |
|
6638 | function Set_based_conditionContext(parser, parent, invokingState) {
|
6639 | if(parent===undefined) {
|
6640 | parent = null;
|
6641 | }
|
6642 | if(invokingState===undefined || invokingState===null) {
|
6643 | invokingState = -1;
|
6644 | }
|
6645 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
6646 | this.parser = parser;
|
6647 | this.ruleIndex = SOQLParser.RULE_set_based_condition;
|
6648 | return this;
|
6649 | }
|
6650 |
|
6651 | Set_based_conditionContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
6652 | Set_based_conditionContext.prototype.constructor = Set_based_conditionContext;
|
6653 |
|
6654 | Set_based_conditionContext.prototype.condition_field = function() {
|
6655 | return this.getTypedRuleContext(Condition_fieldContext,0);
|
6656 | };
|
6657 |
|
6658 | Set_based_conditionContext.prototype.set_operator = function() {
|
6659 | return this.getTypedRuleContext(Set_operatorContext,0);
|
6660 | };
|
6661 |
|
6662 | Set_based_conditionContext.prototype.soql_subquery = function() {
|
6663 | return this.getTypedRuleContext(Soql_subqueryContext,0);
|
6664 | };
|
6665 |
|
6666 | Set_based_conditionContext.prototype.set_values = function() {
|
6667 | return this.getTypedRuleContext(Set_valuesContext,0);
|
6668 | };
|
6669 |
|
6670 | Set_based_conditionContext.prototype.enterRule = function(listener) {
|
6671 | if(listener instanceof SOQLListener ) {
|
6672 | listener.enterSet_based_condition(this);
|
6673 | }
|
6674 | };
|
6675 |
|
6676 | Set_based_conditionContext.prototype.exitRule = function(listener) {
|
6677 | if(listener instanceof SOQLListener ) {
|
6678 | listener.exitSet_based_condition(this);
|
6679 | }
|
6680 | };
|
6681 |
|
6682 |
|
6683 |
|
6684 |
|
6685 | SOQLParser.Set_based_conditionContext = Set_based_conditionContext;
|
6686 |
|
6687 | SOQLParser.prototype.set_based_condition = function() {
|
6688 |
|
6689 | var localctx = new Set_based_conditionContext(this, this._ctx, this.state);
|
6690 | this.enterRule(localctx, 126, SOQLParser.RULE_set_based_condition);
|
6691 | try {
|
6692 | this.enterOuterAlt(localctx, 1);
|
6693 | this.state = 524;
|
6694 | this.condition_field();
|
6695 | this.state = 525;
|
6696 | this.set_operator();
|
6697 | this.state = 528;
|
6698 | this._errHandler.sync(this);
|
6699 | var la_ = this._interp.adaptivePredict(this._input,51,this._ctx);
|
6700 | switch(la_) {
|
6701 | case 1:
|
6702 | this.state = 526;
|
6703 | this.soql_subquery();
|
6704 | break;
|
6705 |
|
6706 | case 2:
|
6707 | this.state = 527;
|
6708 | this.set_values();
|
6709 | break;
|
6710 |
|
6711 | }
|
6712 | } catch (re) {
|
6713 | if(re instanceof antlr4.error.RecognitionException) {
|
6714 | localctx.exception = re;
|
6715 | this._errHandler.reportError(this, re);
|
6716 | this._errHandler.recover(this, re);
|
6717 | } else {
|
6718 | throw re;
|
6719 | }
|
6720 | } finally {
|
6721 | this.exitRule();
|
6722 | }
|
6723 | return localctx;
|
6724 | };
|
6725 |
|
6726 | function Like_based_conditionContext(parser, parent, invokingState) {
|
6727 | if(parent===undefined) {
|
6728 | parent = null;
|
6729 | }
|
6730 | if(invokingState===undefined || invokingState===null) {
|
6731 | invokingState = -1;
|
6732 | }
|
6733 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
6734 | this.parser = parser;
|
6735 | this.ruleIndex = SOQLParser.RULE_like_based_condition;
|
6736 | return this;
|
6737 | }
|
6738 |
|
6739 | Like_based_conditionContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
6740 | Like_based_conditionContext.prototype.constructor = Like_based_conditionContext;
|
6741 |
|
6742 | Like_based_conditionContext.prototype.condition_field = function() {
|
6743 | return this.getTypedRuleContext(Condition_fieldContext,0);
|
6744 | };
|
6745 |
|
6746 | Like_based_conditionContext.prototype.LIKE = function() {
|
6747 | return this.getToken(SOQLParser.LIKE, 0);
|
6748 | };
|
6749 |
|
6750 | Like_based_conditionContext.prototype.STRING_VALUE = function() {
|
6751 | return this.getToken(SOQLParser.STRING_VALUE, 0);
|
6752 | };
|
6753 |
|
6754 | Like_based_conditionContext.prototype.LIKE_STRING_VALUE = function() {
|
6755 | return this.getToken(SOQLParser.LIKE_STRING_VALUE, 0);
|
6756 | };
|
6757 |
|
6758 | Like_based_conditionContext.prototype.enterRule = function(listener) {
|
6759 | if(listener instanceof SOQLListener ) {
|
6760 | listener.enterLike_based_condition(this);
|
6761 | }
|
6762 | };
|
6763 |
|
6764 | Like_based_conditionContext.prototype.exitRule = function(listener) {
|
6765 | if(listener instanceof SOQLListener ) {
|
6766 | listener.exitLike_based_condition(this);
|
6767 | }
|
6768 | };
|
6769 |
|
6770 |
|
6771 |
|
6772 |
|
6773 | SOQLParser.Like_based_conditionContext = Like_based_conditionContext;
|
6774 |
|
6775 | SOQLParser.prototype.like_based_condition = function() {
|
6776 |
|
6777 | var localctx = new Like_based_conditionContext(this, this._ctx, this.state);
|
6778 | this.enterRule(localctx, 128, SOQLParser.RULE_like_based_condition);
|
6779 | var _la = 0;
|
6780 | try {
|
6781 | this.enterOuterAlt(localctx, 1);
|
6782 | this.state = 530;
|
6783 | this.condition_field();
|
6784 | this.state = 531;
|
6785 | this.match(SOQLParser.LIKE);
|
6786 | this.state = 532;
|
6787 | _la = this._input.LA(1);
|
6788 | if(!(_la===SOQLParser.STRING_VALUE || _la===SOQLParser.LIKE_STRING_VALUE)) {
|
6789 | this._errHandler.recoverInline(this);
|
6790 | }
|
6791 | else {
|
6792 | this._errHandler.reportMatch(this);
|
6793 | this.consume();
|
6794 | }
|
6795 | } catch (re) {
|
6796 | if(re instanceof antlr4.error.RecognitionException) {
|
6797 | localctx.exception = re;
|
6798 | this._errHandler.reportError(this, re);
|
6799 | this._errHandler.recover(this, re);
|
6800 | } else {
|
6801 | throw re;
|
6802 | }
|
6803 | } finally {
|
6804 | this.exitRule();
|
6805 | }
|
6806 | return localctx;
|
6807 | };
|
6808 |
|
6809 | function Condition_fieldContext(parser, parent, invokingState) {
|
6810 | if(parent===undefined) {
|
6811 | parent = null;
|
6812 | }
|
6813 | if(invokingState===undefined || invokingState===null) {
|
6814 | invokingState = -1;
|
6815 | }
|
6816 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
6817 | this.parser = parser;
|
6818 | this.ruleIndex = SOQLParser.RULE_condition_field;
|
6819 | return this;
|
6820 | }
|
6821 |
|
6822 | Condition_fieldContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
6823 | Condition_fieldContext.prototype.constructor = Condition_fieldContext;
|
6824 |
|
6825 | Condition_fieldContext.prototype.field = function() {
|
6826 | return this.getTypedRuleContext(FieldContext,0);
|
6827 | };
|
6828 |
|
6829 | Condition_fieldContext.prototype.function_call = function() {
|
6830 | return this.getTypedRuleContext(Function_callContext,0);
|
6831 | };
|
6832 |
|
6833 | Condition_fieldContext.prototype.enterRule = function(listener) {
|
6834 | if(listener instanceof SOQLListener ) {
|
6835 | listener.enterCondition_field(this);
|
6836 | }
|
6837 | };
|
6838 |
|
6839 | Condition_fieldContext.prototype.exitRule = function(listener) {
|
6840 | if(listener instanceof SOQLListener ) {
|
6841 | listener.exitCondition_field(this);
|
6842 | }
|
6843 | };
|
6844 |
|
6845 |
|
6846 |
|
6847 |
|
6848 | SOQLParser.Condition_fieldContext = Condition_fieldContext;
|
6849 |
|
6850 | SOQLParser.prototype.condition_field = function() {
|
6851 |
|
6852 | var localctx = new Condition_fieldContext(this, this._ctx, this.state);
|
6853 | this.enterRule(localctx, 130, SOQLParser.RULE_condition_field);
|
6854 | try {
|
6855 | this.state = 536;
|
6856 | this._errHandler.sync(this);
|
6857 | var la_ = this._interp.adaptivePredict(this._input,52,this._ctx);
|
6858 | switch(la_) {
|
6859 | case 1:
|
6860 | this.enterOuterAlt(localctx, 1);
|
6861 | this.state = 534;
|
6862 | this.field();
|
6863 | break;
|
6864 |
|
6865 | case 2:
|
6866 | this.enterOuterAlt(localctx, 2);
|
6867 | this.state = 535;
|
6868 | this.function_call();
|
6869 | break;
|
6870 |
|
6871 | }
|
6872 | } catch (re) {
|
6873 | if(re instanceof antlr4.error.RecognitionException) {
|
6874 | localctx.exception = re;
|
6875 | this._errHandler.reportError(this, re);
|
6876 | this._errHandler.recover(this, re);
|
6877 | } else {
|
6878 | throw re;
|
6879 | }
|
6880 | } finally {
|
6881 | this.exitRule();
|
6882 | }
|
6883 | return localctx;
|
6884 | };
|
6885 |
|
6886 | function Set_valuesContext(parser, parent, invokingState) {
|
6887 | if(parent===undefined) {
|
6888 | parent = null;
|
6889 | }
|
6890 | if(invokingState===undefined || invokingState===null) {
|
6891 | invokingState = -1;
|
6892 | }
|
6893 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
6894 | this.parser = parser;
|
6895 | this.ruleIndex = SOQLParser.RULE_set_values;
|
6896 | return this;
|
6897 | }
|
6898 |
|
6899 | Set_valuesContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
6900 | Set_valuesContext.prototype.constructor = Set_valuesContext;
|
6901 |
|
6902 | Set_valuesContext.prototype.LPAREN = function() {
|
6903 | return this.getToken(SOQLParser.LPAREN, 0);
|
6904 | };
|
6905 |
|
6906 | Set_valuesContext.prototype.set_value_list = function() {
|
6907 | return this.getTypedRuleContext(Set_value_listContext,0);
|
6908 | };
|
6909 |
|
6910 | Set_valuesContext.prototype.RPAREN = function() {
|
6911 | return this.getToken(SOQLParser.RPAREN, 0);
|
6912 | };
|
6913 |
|
6914 | Set_valuesContext.prototype.enterRule = function(listener) {
|
6915 | if(listener instanceof SOQLListener ) {
|
6916 | listener.enterSet_values(this);
|
6917 | }
|
6918 | };
|
6919 |
|
6920 | Set_valuesContext.prototype.exitRule = function(listener) {
|
6921 | if(listener instanceof SOQLListener ) {
|
6922 | listener.exitSet_values(this);
|
6923 | }
|
6924 | };
|
6925 |
|
6926 |
|
6927 |
|
6928 |
|
6929 | SOQLParser.Set_valuesContext = Set_valuesContext;
|
6930 |
|
6931 | SOQLParser.prototype.set_values = function() {
|
6932 |
|
6933 | var localctx = new Set_valuesContext(this, this._ctx, this.state);
|
6934 | this.enterRule(localctx, 132, SOQLParser.RULE_set_values);
|
6935 | try {
|
6936 | this.enterOuterAlt(localctx, 1);
|
6937 | this.state = 538;
|
6938 | this.match(SOQLParser.LPAREN);
|
6939 | this.state = 539;
|
6940 | this.set_value_list();
|
6941 | this.state = 540;
|
6942 | this.match(SOQLParser.RPAREN);
|
6943 | } catch (re) {
|
6944 | if(re instanceof antlr4.error.RecognitionException) {
|
6945 | localctx.exception = re;
|
6946 | this._errHandler.reportError(this, re);
|
6947 | this._errHandler.recover(this, re);
|
6948 | } else {
|
6949 | throw re;
|
6950 | }
|
6951 | } finally {
|
6952 | this.exitRule();
|
6953 | }
|
6954 | return localctx;
|
6955 | };
|
6956 |
|
6957 | function Set_value_listContext(parser, parent, invokingState) {
|
6958 | if(parent===undefined) {
|
6959 | parent = null;
|
6960 | }
|
6961 | if(invokingState===undefined || invokingState===null) {
|
6962 | invokingState = -1;
|
6963 | }
|
6964 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
6965 | this.parser = parser;
|
6966 | this.ruleIndex = SOQLParser.RULE_set_value_list;
|
6967 | return this;
|
6968 | }
|
6969 |
|
6970 | Set_value_listContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
6971 | Set_value_listContext.prototype.constructor = Set_value_listContext;
|
6972 |
|
6973 | Set_value_listContext.prototype.literal = function(i) {
|
6974 | if(i===undefined) {
|
6975 | i = null;
|
6976 | }
|
6977 | if(i===null) {
|
6978 | return this.getTypedRuleContexts(LiteralContext);
|
6979 | } else {
|
6980 | return this.getTypedRuleContext(LiteralContext,i);
|
6981 | }
|
6982 | };
|
6983 |
|
6984 | Set_value_listContext.prototype.COMMA = function(i) {
|
6985 | if(i===undefined) {
|
6986 | i = null;
|
6987 | }
|
6988 | if(i===null) {
|
6989 | return this.getTokens(SOQLParser.COMMA);
|
6990 | } else {
|
6991 | return this.getToken(SOQLParser.COMMA, i);
|
6992 | }
|
6993 | };
|
6994 |
|
6995 |
|
6996 | Set_value_listContext.prototype.enterRule = function(listener) {
|
6997 | if(listener instanceof SOQLListener ) {
|
6998 | listener.enterSet_value_list(this);
|
6999 | }
|
7000 | };
|
7001 |
|
7002 | Set_value_listContext.prototype.exitRule = function(listener) {
|
7003 | if(listener instanceof SOQLListener ) {
|
7004 | listener.exitSet_value_list(this);
|
7005 | }
|
7006 | };
|
7007 |
|
7008 |
|
7009 |
|
7010 |
|
7011 | SOQLParser.Set_value_listContext = Set_value_listContext;
|
7012 |
|
7013 | SOQLParser.prototype.set_value_list = function() {
|
7014 |
|
7015 | var localctx = new Set_value_listContext(this, this._ctx, this.state);
|
7016 | this.enterRule(localctx, 134, SOQLParser.RULE_set_value_list);
|
7017 | var _la = 0;
|
7018 | try {
|
7019 | this.enterOuterAlt(localctx, 1);
|
7020 | this.state = 542;
|
7021 | this.literal();
|
7022 | this.state = 547;
|
7023 | this._errHandler.sync(this);
|
7024 | _la = this._input.LA(1);
|
7025 | while(_la===SOQLParser.COMMA) {
|
7026 | this.state = 543;
|
7027 | this.match(SOQLParser.COMMA);
|
7028 | this.state = 544;
|
7029 | this.literal();
|
7030 | this.state = 549;
|
7031 | this._errHandler.sync(this);
|
7032 | _la = this._input.LA(1);
|
7033 | }
|
7034 | } catch (re) {
|
7035 | if(re instanceof antlr4.error.RecognitionException) {
|
7036 | localctx.exception = re;
|
7037 | this._errHandler.reportError(this, re);
|
7038 | this._errHandler.recover(this, re);
|
7039 | } else {
|
7040 | throw re;
|
7041 | }
|
7042 | } finally {
|
7043 | this.exitRule();
|
7044 | }
|
7045 | return localctx;
|
7046 | };
|
7047 |
|
7048 | function With_clauseContext(parser, parent, invokingState) {
|
7049 | if(parent===undefined) {
|
7050 | parent = null;
|
7051 | }
|
7052 | if(invokingState===undefined || invokingState===null) {
|
7053 | invokingState = -1;
|
7054 | }
|
7055 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
7056 | this.parser = parser;
|
7057 | this.ruleIndex = SOQLParser.RULE_with_clause;
|
7058 | return this;
|
7059 | }
|
7060 |
|
7061 | With_clauseContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
7062 | With_clauseContext.prototype.constructor = With_clauseContext;
|
7063 |
|
7064 | With_clauseContext.prototype.WITH = function() {
|
7065 | return this.getToken(SOQLParser.WITH, 0);
|
7066 | };
|
7067 |
|
7068 | With_clauseContext.prototype.with_plain_clause = function() {
|
7069 | return this.getTypedRuleContext(With_plain_clauseContext,0);
|
7070 | };
|
7071 |
|
7072 | With_clauseContext.prototype.with_data_category_clause = function() {
|
7073 | return this.getTypedRuleContext(With_data_category_clauseContext,0);
|
7074 | };
|
7075 |
|
7076 | With_clauseContext.prototype.enterRule = function(listener) {
|
7077 | if(listener instanceof SOQLListener ) {
|
7078 | listener.enterWith_clause(this);
|
7079 | }
|
7080 | };
|
7081 |
|
7082 | With_clauseContext.prototype.exitRule = function(listener) {
|
7083 | if(listener instanceof SOQLListener ) {
|
7084 | listener.exitWith_clause(this);
|
7085 | }
|
7086 | };
|
7087 |
|
7088 |
|
7089 |
|
7090 |
|
7091 | SOQLParser.With_clauseContext = With_clauseContext;
|
7092 |
|
7093 | SOQLParser.prototype.with_clause = function() {
|
7094 |
|
7095 | var localctx = new With_clauseContext(this, this._ctx, this.state);
|
7096 | this.enterRule(localctx, 136, SOQLParser.RULE_with_clause);
|
7097 | try {
|
7098 | this.enterOuterAlt(localctx, 1);
|
7099 | this.state = 550;
|
7100 | this.match(SOQLParser.WITH);
|
7101 | this.state = 553;
|
7102 | this._errHandler.sync(this);
|
7103 | var la_ = this._interp.adaptivePredict(this._input,54,this._ctx);
|
7104 | switch(la_) {
|
7105 | case 1:
|
7106 | this.state = 551;
|
7107 | this.with_plain_clause();
|
7108 | break;
|
7109 |
|
7110 | case 2:
|
7111 | this.state = 552;
|
7112 | this.with_data_category_clause();
|
7113 | break;
|
7114 |
|
7115 | }
|
7116 | } catch (re) {
|
7117 | if(re instanceof antlr4.error.RecognitionException) {
|
7118 | localctx.exception = re;
|
7119 | this._errHandler.reportError(this, re);
|
7120 | this._errHandler.recover(this, re);
|
7121 | } else {
|
7122 | throw re;
|
7123 | }
|
7124 | } finally {
|
7125 | this.exitRule();
|
7126 | }
|
7127 | return localctx;
|
7128 | };
|
7129 |
|
7130 | function With_plain_clauseContext(parser, parent, invokingState) {
|
7131 | if(parent===undefined) {
|
7132 | parent = null;
|
7133 | }
|
7134 | if(invokingState===undefined || invokingState===null) {
|
7135 | invokingState = -1;
|
7136 | }
|
7137 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
7138 | this.parser = parser;
|
7139 | this.ruleIndex = SOQLParser.RULE_with_plain_clause;
|
7140 | return this;
|
7141 | }
|
7142 |
|
7143 | With_plain_clauseContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
7144 | With_plain_clauseContext.prototype.constructor = With_plain_clauseContext;
|
7145 |
|
7146 | With_plain_clauseContext.prototype.field_based_condition = function() {
|
7147 | return this.getTypedRuleContext(Field_based_conditionContext,0);
|
7148 | };
|
7149 |
|
7150 | With_plain_clauseContext.prototype.enterRule = function(listener) {
|
7151 | if(listener instanceof SOQLListener ) {
|
7152 | listener.enterWith_plain_clause(this);
|
7153 | }
|
7154 | };
|
7155 |
|
7156 | With_plain_clauseContext.prototype.exitRule = function(listener) {
|
7157 | if(listener instanceof SOQLListener ) {
|
7158 | listener.exitWith_plain_clause(this);
|
7159 | }
|
7160 | };
|
7161 |
|
7162 |
|
7163 |
|
7164 |
|
7165 | SOQLParser.With_plain_clauseContext = With_plain_clauseContext;
|
7166 |
|
7167 | SOQLParser.prototype.with_plain_clause = function() {
|
7168 |
|
7169 | var localctx = new With_plain_clauseContext(this, this._ctx, this.state);
|
7170 | this.enterRule(localctx, 138, SOQLParser.RULE_with_plain_clause);
|
7171 | try {
|
7172 | this.enterOuterAlt(localctx, 1);
|
7173 | this.state = 555;
|
7174 | this.field_based_condition();
|
7175 | } catch (re) {
|
7176 | if(re instanceof antlr4.error.RecognitionException) {
|
7177 | localctx.exception = re;
|
7178 | this._errHandler.reportError(this, re);
|
7179 | this._errHandler.recover(this, re);
|
7180 | } else {
|
7181 | throw re;
|
7182 | }
|
7183 | } finally {
|
7184 | this.exitRule();
|
7185 | }
|
7186 | return localctx;
|
7187 | };
|
7188 |
|
7189 | function With_data_category_clauseContext(parser, parent, invokingState) {
|
7190 | if(parent===undefined) {
|
7191 | parent = null;
|
7192 | }
|
7193 | if(invokingState===undefined || invokingState===null) {
|
7194 | invokingState = -1;
|
7195 | }
|
7196 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
7197 | this.parser = parser;
|
7198 | this.ruleIndex = SOQLParser.RULE_with_data_category_clause;
|
7199 | return this;
|
7200 | }
|
7201 |
|
7202 | With_data_category_clauseContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
7203 | With_data_category_clauseContext.prototype.constructor = With_data_category_clauseContext;
|
7204 |
|
7205 | With_data_category_clauseContext.prototype.DATA = function() {
|
7206 | return this.getToken(SOQLParser.DATA, 0);
|
7207 | };
|
7208 |
|
7209 | With_data_category_clauseContext.prototype.CATEGORY = function() {
|
7210 | return this.getToken(SOQLParser.CATEGORY, 0);
|
7211 | };
|
7212 |
|
7213 | With_data_category_clauseContext.prototype.data_category_spec_list = function() {
|
7214 | return this.getTypedRuleContext(Data_category_spec_listContext,0);
|
7215 | };
|
7216 |
|
7217 | With_data_category_clauseContext.prototype.enterRule = function(listener) {
|
7218 | if(listener instanceof SOQLListener ) {
|
7219 | listener.enterWith_data_category_clause(this);
|
7220 | }
|
7221 | };
|
7222 |
|
7223 | With_data_category_clauseContext.prototype.exitRule = function(listener) {
|
7224 | if(listener instanceof SOQLListener ) {
|
7225 | listener.exitWith_data_category_clause(this);
|
7226 | }
|
7227 | };
|
7228 |
|
7229 |
|
7230 |
|
7231 |
|
7232 | SOQLParser.With_data_category_clauseContext = With_data_category_clauseContext;
|
7233 |
|
7234 | SOQLParser.prototype.with_data_category_clause = function() {
|
7235 |
|
7236 | var localctx = new With_data_category_clauseContext(this, this._ctx, this.state);
|
7237 | this.enterRule(localctx, 140, SOQLParser.RULE_with_data_category_clause);
|
7238 | try {
|
7239 | this.enterOuterAlt(localctx, 1);
|
7240 | this.state = 557;
|
7241 | this.match(SOQLParser.DATA);
|
7242 | this.state = 558;
|
7243 | this.match(SOQLParser.CATEGORY);
|
7244 | this.state = 559;
|
7245 | this.data_category_spec_list();
|
7246 | } catch (re) {
|
7247 | if(re instanceof antlr4.error.RecognitionException) {
|
7248 | localctx.exception = re;
|
7249 | this._errHandler.reportError(this, re);
|
7250 | this._errHandler.recover(this, re);
|
7251 | } else {
|
7252 | throw re;
|
7253 | }
|
7254 | } finally {
|
7255 | this.exitRule();
|
7256 | }
|
7257 | return localctx;
|
7258 | };
|
7259 |
|
7260 | function Data_category_spec_listContext(parser, parent, invokingState) {
|
7261 | if(parent===undefined) {
|
7262 | parent = null;
|
7263 | }
|
7264 | if(invokingState===undefined || invokingState===null) {
|
7265 | invokingState = -1;
|
7266 | }
|
7267 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
7268 | this.parser = parser;
|
7269 | this.ruleIndex = SOQLParser.RULE_data_category_spec_list;
|
7270 | return this;
|
7271 | }
|
7272 |
|
7273 | Data_category_spec_listContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
7274 | Data_category_spec_listContext.prototype.constructor = Data_category_spec_listContext;
|
7275 |
|
7276 | Data_category_spec_listContext.prototype.data_category_spec = function(i) {
|
7277 | if(i===undefined) {
|
7278 | i = null;
|
7279 | }
|
7280 | if(i===null) {
|
7281 | return this.getTypedRuleContexts(Data_category_specContext);
|
7282 | } else {
|
7283 | return this.getTypedRuleContext(Data_category_specContext,i);
|
7284 | }
|
7285 | };
|
7286 |
|
7287 | Data_category_spec_listContext.prototype.AND = function(i) {
|
7288 | if(i===undefined) {
|
7289 | i = null;
|
7290 | }
|
7291 | if(i===null) {
|
7292 | return this.getTokens(SOQLParser.AND);
|
7293 | } else {
|
7294 | return this.getToken(SOQLParser.AND, i);
|
7295 | }
|
7296 | };
|
7297 |
|
7298 |
|
7299 | Data_category_spec_listContext.prototype.enterRule = function(listener) {
|
7300 | if(listener instanceof SOQLListener ) {
|
7301 | listener.enterData_category_spec_list(this);
|
7302 | }
|
7303 | };
|
7304 |
|
7305 | Data_category_spec_listContext.prototype.exitRule = function(listener) {
|
7306 | if(listener instanceof SOQLListener ) {
|
7307 | listener.exitData_category_spec_list(this);
|
7308 | }
|
7309 | };
|
7310 |
|
7311 |
|
7312 |
|
7313 |
|
7314 | SOQLParser.Data_category_spec_listContext = Data_category_spec_listContext;
|
7315 |
|
7316 | SOQLParser.prototype.data_category_spec_list = function() {
|
7317 |
|
7318 | var localctx = new Data_category_spec_listContext(this, this._ctx, this.state);
|
7319 | this.enterRule(localctx, 142, SOQLParser.RULE_data_category_spec_list);
|
7320 | var _la = 0;
|
7321 | try {
|
7322 | this.enterOuterAlt(localctx, 1);
|
7323 | this.state = 561;
|
7324 | this.data_category_spec();
|
7325 | this.state = 566;
|
7326 | this._errHandler.sync(this);
|
7327 | _la = this._input.LA(1);
|
7328 | while(_la===SOQLParser.AND) {
|
7329 | this.state = 562;
|
7330 | this.match(SOQLParser.AND);
|
7331 | this.state = 563;
|
7332 | this.data_category_spec();
|
7333 | this.state = 568;
|
7334 | this._errHandler.sync(this);
|
7335 | _la = this._input.LA(1);
|
7336 | }
|
7337 | } catch (re) {
|
7338 | if(re instanceof antlr4.error.RecognitionException) {
|
7339 | localctx.exception = re;
|
7340 | this._errHandler.reportError(this, re);
|
7341 | this._errHandler.recover(this, re);
|
7342 | } else {
|
7343 | throw re;
|
7344 | }
|
7345 | } finally {
|
7346 | this.exitRule();
|
7347 | }
|
7348 | return localctx;
|
7349 | };
|
7350 |
|
7351 | function Data_category_specContext(parser, parent, invokingState) {
|
7352 | if(parent===undefined) {
|
7353 | parent = null;
|
7354 | }
|
7355 | if(invokingState===undefined || invokingState===null) {
|
7356 | invokingState = -1;
|
7357 | }
|
7358 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
7359 | this.parser = parser;
|
7360 | this.ruleIndex = SOQLParser.RULE_data_category_spec;
|
7361 | return this;
|
7362 | }
|
7363 |
|
7364 | Data_category_specContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
7365 | Data_category_specContext.prototype.constructor = Data_category_specContext;
|
7366 |
|
7367 | Data_category_specContext.prototype.data_category_group_name = function() {
|
7368 | return this.getTypedRuleContext(Data_category_group_nameContext,0);
|
7369 | };
|
7370 |
|
7371 | Data_category_specContext.prototype.data_category_selector = function() {
|
7372 | return this.getTypedRuleContext(Data_category_selectorContext,0);
|
7373 | };
|
7374 |
|
7375 | Data_category_specContext.prototype.data_category_parameter_list = function() {
|
7376 | return this.getTypedRuleContext(Data_category_parameter_listContext,0);
|
7377 | };
|
7378 |
|
7379 | Data_category_specContext.prototype.enterRule = function(listener) {
|
7380 | if(listener instanceof SOQLListener ) {
|
7381 | listener.enterData_category_spec(this);
|
7382 | }
|
7383 | };
|
7384 |
|
7385 | Data_category_specContext.prototype.exitRule = function(listener) {
|
7386 | if(listener instanceof SOQLListener ) {
|
7387 | listener.exitData_category_spec(this);
|
7388 | }
|
7389 | };
|
7390 |
|
7391 |
|
7392 |
|
7393 |
|
7394 | SOQLParser.Data_category_specContext = Data_category_specContext;
|
7395 |
|
7396 | SOQLParser.prototype.data_category_spec = function() {
|
7397 |
|
7398 | var localctx = new Data_category_specContext(this, this._ctx, this.state);
|
7399 | this.enterRule(localctx, 144, SOQLParser.RULE_data_category_spec);
|
7400 | try {
|
7401 | this.enterOuterAlt(localctx, 1);
|
7402 | this.state = 569;
|
7403 | this.data_category_group_name();
|
7404 | this.state = 570;
|
7405 | this.data_category_selector();
|
7406 | this.state = 571;
|
7407 | this.data_category_parameter_list();
|
7408 | } catch (re) {
|
7409 | if(re instanceof antlr4.error.RecognitionException) {
|
7410 | localctx.exception = re;
|
7411 | this._errHandler.reportError(this, re);
|
7412 | this._errHandler.recover(this, re);
|
7413 | } else {
|
7414 | throw re;
|
7415 | }
|
7416 | } finally {
|
7417 | this.exitRule();
|
7418 | }
|
7419 | return localctx;
|
7420 | };
|
7421 |
|
7422 | function Data_category_parameter_listContext(parser, parent, invokingState) {
|
7423 | if(parent===undefined) {
|
7424 | parent = null;
|
7425 | }
|
7426 | if(invokingState===undefined || invokingState===null) {
|
7427 | invokingState = -1;
|
7428 | }
|
7429 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
7430 | this.parser = parser;
|
7431 | this.ruleIndex = SOQLParser.RULE_data_category_parameter_list;
|
7432 | return this;
|
7433 | }
|
7434 |
|
7435 | Data_category_parameter_listContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
7436 | Data_category_parameter_listContext.prototype.constructor = Data_category_parameter_listContext;
|
7437 |
|
7438 | Data_category_parameter_listContext.prototype.data_category_name = function(i) {
|
7439 | if(i===undefined) {
|
7440 | i = null;
|
7441 | }
|
7442 | if(i===null) {
|
7443 | return this.getTypedRuleContexts(Data_category_nameContext);
|
7444 | } else {
|
7445 | return this.getTypedRuleContext(Data_category_nameContext,i);
|
7446 | }
|
7447 | };
|
7448 |
|
7449 | Data_category_parameter_listContext.prototype.LPAREN = function() {
|
7450 | return this.getToken(SOQLParser.LPAREN, 0);
|
7451 | };
|
7452 |
|
7453 | Data_category_parameter_listContext.prototype.RPAREN = function() {
|
7454 | return this.getToken(SOQLParser.RPAREN, 0);
|
7455 | };
|
7456 |
|
7457 | Data_category_parameter_listContext.prototype.COMMA = function(i) {
|
7458 | if(i===undefined) {
|
7459 | i = null;
|
7460 | }
|
7461 | if(i===null) {
|
7462 | return this.getTokens(SOQLParser.COMMA);
|
7463 | } else {
|
7464 | return this.getToken(SOQLParser.COMMA, i);
|
7465 | }
|
7466 | };
|
7467 |
|
7468 |
|
7469 | Data_category_parameter_listContext.prototype.enterRule = function(listener) {
|
7470 | if(listener instanceof SOQLListener ) {
|
7471 | listener.enterData_category_parameter_list(this);
|
7472 | }
|
7473 | };
|
7474 |
|
7475 | Data_category_parameter_listContext.prototype.exitRule = function(listener) {
|
7476 | if(listener instanceof SOQLListener ) {
|
7477 | listener.exitData_category_parameter_list(this);
|
7478 | }
|
7479 | };
|
7480 |
|
7481 |
|
7482 |
|
7483 |
|
7484 | SOQLParser.Data_category_parameter_listContext = Data_category_parameter_listContext;
|
7485 |
|
7486 | SOQLParser.prototype.data_category_parameter_list = function() {
|
7487 |
|
7488 | var localctx = new Data_category_parameter_listContext(this, this._ctx, this.state);
|
7489 | this.enterRule(localctx, 146, SOQLParser.RULE_data_category_parameter_list);
|
7490 | var _la = 0;
|
7491 | try {
|
7492 | this.state = 585;
|
7493 | this._errHandler.sync(this);
|
7494 | switch(this._input.LA(1)) {
|
7495 | case SOQLParser.GROUP:
|
7496 | case SOQLParser.ABOVE:
|
7497 | case SOQLParser.ABOVE_OR_BELOW:
|
7498 | case SOQLParser.AT:
|
7499 | case SOQLParser.BELOW:
|
7500 | case SOQLParser.CATEGORY:
|
7501 | case SOQLParser.DATA:
|
7502 | case SOQLParser.END:
|
7503 | case SOQLParser.OFFSET:
|
7504 | case SOQLParser.ORDER:
|
7505 | case SOQLParser.REFERENCE:
|
7506 | case SOQLParser.SCOPE:
|
7507 | case SOQLParser.TRACKING:
|
7508 | case SOQLParser.THEN:
|
7509 | case SOQLParser.TYPEOF:
|
7510 | case SOQLParser.VIEW:
|
7511 | case SOQLParser.VIEWSTAT:
|
7512 | case SOQLParser.WHEN:
|
7513 | case SOQLParser.CALENDAR_MONTH:
|
7514 | case SOQLParser.CALENDAR_QUARTER:
|
7515 | case SOQLParser.CALENDAR_YEAR:
|
7516 | case SOQLParser.DAY_IN_MONTH:
|
7517 | case SOQLParser.DAY_IN_WEEK:
|
7518 | case SOQLParser.DAY_IN_YEAR:
|
7519 | case SOQLParser.DAY_ONLY:
|
7520 | case SOQLParser.FISCAL_MONTH:
|
7521 | case SOQLParser.FISCAL_QUARTER:
|
7522 | case SOQLParser.FISCAL_YEAR:
|
7523 | case SOQLParser.HOUR_IN_DAY:
|
7524 | case SOQLParser.WEEK_IN_MONTH:
|
7525 | case SOQLParser.WEEK_IN_YEAR:
|
7526 | case SOQLParser.AVG:
|
7527 | case SOQLParser.COUNT:
|
7528 | case SOQLParser.COUNT_DISTINCT:
|
7529 | case SOQLParser.MIN:
|
7530 | case SOQLParser.MAX:
|
7531 | case SOQLParser.SUM:
|
7532 | case SOQLParser.DISTANCE:
|
7533 | case SOQLParser.GEOLOCATION:
|
7534 | case SOQLParser.FORMAT:
|
7535 | case SOQLParser.TOLABEL:
|
7536 | case SOQLParser.CONVERT_TIME_ZONE:
|
7537 | case SOQLParser.CONVERT_CURRENCY:
|
7538 | case SOQLParser.GROUPING:
|
7539 | case SOQLParser.YESTERDAY:
|
7540 | case SOQLParser.TODAY:
|
7541 | case SOQLParser.TOMORROW:
|
7542 | case SOQLParser.LAST_WEEK:
|
7543 | case SOQLParser.THIS_WEEK:
|
7544 | case SOQLParser.NEXT_WEEK:
|
7545 | case SOQLParser.LAST_MONTH:
|
7546 | case SOQLParser.THIS_MONTH:
|
7547 | case SOQLParser.NEXT_MONTH:
|
7548 | case SOQLParser.LAST_90_DAYS:
|
7549 | case SOQLParser.NEXT_90_DAYS:
|
7550 | case SOQLParser.THIS_QUARTER:
|
7551 | case SOQLParser.LAST_QUARTER:
|
7552 | case SOQLParser.NEXT_QUARTER:
|
7553 | case SOQLParser.THIS_YEAR:
|
7554 | case SOQLParser.LAST_YEAR:
|
7555 | case SOQLParser.NEXT_YEAR:
|
7556 | case SOQLParser.THIS_FISCAL_QUARTER:
|
7557 | case SOQLParser.LAST_FISCAL_QUARTER:
|
7558 | case SOQLParser.NEXT_FISCAL_QUARTER:
|
7559 | case SOQLParser.THIS_FISCAL_YEAR:
|
7560 | case SOQLParser.LAST_FISCAL_YEAR:
|
7561 | case SOQLParser.NEXT_FISCAL_YEAR:
|
7562 | case SOQLParser.NEXT_N_DAYS:
|
7563 | case SOQLParser.LAST_N_DAYS:
|
7564 | case SOQLParser.N_DAYS_AGO:
|
7565 | case SOQLParser.NEXT_N_WEEKS:
|
7566 | case SOQLParser.LAST_N_WEEKS:
|
7567 | case SOQLParser.N_WEEKS_AGO:
|
7568 | case SOQLParser.NEXT_N_MONTHS:
|
7569 | case SOQLParser.LAST_N_MONTHS:
|
7570 | case SOQLParser.N_MONTHS_AGO:
|
7571 | case SOQLParser.NEXT_N_QUARTERS:
|
7572 | case SOQLParser.LAST_N_QUARTERS:
|
7573 | case SOQLParser.N_QUARTERS_AGO:
|
7574 | case SOQLParser.NEXT_N_YEARS:
|
7575 | case SOQLParser.LAST_N_YEARS:
|
7576 | case SOQLParser.N_YEARS_AGO:
|
7577 | case SOQLParser.NEXT_N_FISCAL_QUARTERS:
|
7578 | case SOQLParser.LAST_N_FISCAL_QUARTERS:
|
7579 | case SOQLParser.N_FISCAL_QUARTERS_AGO:
|
7580 | case SOQLParser.NEXT_N_FISCAL_YEARS:
|
7581 | case SOQLParser.LAST_N_FISCAL_YEARS:
|
7582 | case SOQLParser.N_FISCAL_YEARS_AGO:
|
7583 | case SOQLParser.ID:
|
7584 | this.enterOuterAlt(localctx, 1);
|
7585 | this.state = 573;
|
7586 | this.data_category_name();
|
7587 | break;
|
7588 | case SOQLParser.LPAREN:
|
7589 | this.enterOuterAlt(localctx, 2);
|
7590 | this.state = 574;
|
7591 | this.match(SOQLParser.LPAREN);
|
7592 | this.state = 575;
|
7593 | this.data_category_name();
|
7594 | this.state = 580;
|
7595 | this._errHandler.sync(this);
|
7596 | _la = this._input.LA(1);
|
7597 | while(_la===SOQLParser.COMMA) {
|
7598 | this.state = 576;
|
7599 | this.match(SOQLParser.COMMA);
|
7600 | this.state = 577;
|
7601 | this.data_category_name();
|
7602 | this.state = 582;
|
7603 | this._errHandler.sync(this);
|
7604 | _la = this._input.LA(1);
|
7605 | }
|
7606 | this.state = 583;
|
7607 | this.match(SOQLParser.RPAREN);
|
7608 | break;
|
7609 | default:
|
7610 | throw new antlr4.error.NoViableAltException(this);
|
7611 | }
|
7612 | } catch (re) {
|
7613 | if(re instanceof antlr4.error.RecognitionException) {
|
7614 | localctx.exception = re;
|
7615 | this._errHandler.reportError(this, re);
|
7616 | this._errHandler.recover(this, re);
|
7617 | } else {
|
7618 | throw re;
|
7619 | }
|
7620 | } finally {
|
7621 | this.exitRule();
|
7622 | }
|
7623 | return localctx;
|
7624 | };
|
7625 |
|
7626 | function Data_category_selectorContext(parser, parent, invokingState) {
|
7627 | if(parent===undefined) {
|
7628 | parent = null;
|
7629 | }
|
7630 | if(invokingState===undefined || invokingState===null) {
|
7631 | invokingState = -1;
|
7632 | }
|
7633 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
7634 | this.parser = parser;
|
7635 | this.ruleIndex = SOQLParser.RULE_data_category_selector;
|
7636 | return this;
|
7637 | }
|
7638 |
|
7639 | Data_category_selectorContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
7640 | Data_category_selectorContext.prototype.constructor = Data_category_selectorContext;
|
7641 |
|
7642 | Data_category_selectorContext.prototype.AT = function() {
|
7643 | return this.getToken(SOQLParser.AT, 0);
|
7644 | };
|
7645 |
|
7646 | Data_category_selectorContext.prototype.ABOVE = function() {
|
7647 | return this.getToken(SOQLParser.ABOVE, 0);
|
7648 | };
|
7649 |
|
7650 | Data_category_selectorContext.prototype.ABOVE_OR_BELOW = function() {
|
7651 | return this.getToken(SOQLParser.ABOVE_OR_BELOW, 0);
|
7652 | };
|
7653 |
|
7654 | Data_category_selectorContext.prototype.BELOW = function() {
|
7655 | return this.getToken(SOQLParser.BELOW, 0);
|
7656 | };
|
7657 |
|
7658 | Data_category_selectorContext.prototype.enterRule = function(listener) {
|
7659 | if(listener instanceof SOQLListener ) {
|
7660 | listener.enterData_category_selector(this);
|
7661 | }
|
7662 | };
|
7663 |
|
7664 | Data_category_selectorContext.prototype.exitRule = function(listener) {
|
7665 | if(listener instanceof SOQLListener ) {
|
7666 | listener.exitData_category_selector(this);
|
7667 | }
|
7668 | };
|
7669 |
|
7670 |
|
7671 |
|
7672 |
|
7673 | SOQLParser.Data_category_selectorContext = Data_category_selectorContext;
|
7674 |
|
7675 | SOQLParser.prototype.data_category_selector = function() {
|
7676 |
|
7677 | var localctx = new Data_category_selectorContext(this, this._ctx, this.state);
|
7678 | this.enterRule(localctx, 148, SOQLParser.RULE_data_category_selector);
|
7679 | var _la = 0;
|
7680 | try {
|
7681 | this.enterOuterAlt(localctx, 1);
|
7682 | this.state = 587;
|
7683 | _la = this._input.LA(1);
|
7684 | if(!(((((_la - 34)) & ~0x1f) == 0 && ((1 << (_la - 34)) & ((1 << (SOQLParser.ABOVE - 34)) | (1 << (SOQLParser.ABOVE_OR_BELOW - 34)) | (1 << (SOQLParser.AT - 34)) | (1 << (SOQLParser.BELOW - 34)))) !== 0))) {
|
7685 | this._errHandler.recoverInline(this);
|
7686 | }
|
7687 | else {
|
7688 | this._errHandler.reportMatch(this);
|
7689 | this.consume();
|
7690 | }
|
7691 | } catch (re) {
|
7692 | if(re instanceof antlr4.error.RecognitionException) {
|
7693 | localctx.exception = re;
|
7694 | this._errHandler.reportError(this, re);
|
7695 | this._errHandler.recover(this, re);
|
7696 | } else {
|
7697 | throw re;
|
7698 | }
|
7699 | } finally {
|
7700 | this.exitRule();
|
7701 | }
|
7702 | return localctx;
|
7703 | };
|
7704 |
|
7705 | function Group_by_plain_clauseContext(parser, parent, invokingState) {
|
7706 | if(parent===undefined) {
|
7707 | parent = null;
|
7708 | }
|
7709 | if(invokingState===undefined || invokingState===null) {
|
7710 | invokingState = -1;
|
7711 | }
|
7712 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
7713 | this.parser = parser;
|
7714 | this.ruleIndex = SOQLParser.RULE_group_by_plain_clause;
|
7715 | return this;
|
7716 | }
|
7717 |
|
7718 | Group_by_plain_clauseContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
7719 | Group_by_plain_clauseContext.prototype.constructor = Group_by_plain_clauseContext;
|
7720 |
|
7721 | Group_by_plain_clauseContext.prototype.group_by_list = function() {
|
7722 | return this.getTypedRuleContext(Group_by_listContext,0);
|
7723 | };
|
7724 |
|
7725 | Group_by_plain_clauseContext.prototype.enterRule = function(listener) {
|
7726 | if(listener instanceof SOQLListener ) {
|
7727 | listener.enterGroup_by_plain_clause(this);
|
7728 | }
|
7729 | };
|
7730 |
|
7731 | Group_by_plain_clauseContext.prototype.exitRule = function(listener) {
|
7732 | if(listener instanceof SOQLListener ) {
|
7733 | listener.exitGroup_by_plain_clause(this);
|
7734 | }
|
7735 | };
|
7736 |
|
7737 |
|
7738 |
|
7739 |
|
7740 | SOQLParser.Group_by_plain_clauseContext = Group_by_plain_clauseContext;
|
7741 |
|
7742 | SOQLParser.prototype.group_by_plain_clause = function() {
|
7743 |
|
7744 | var localctx = new Group_by_plain_clauseContext(this, this._ctx, this.state);
|
7745 | this.enterRule(localctx, 150, SOQLParser.RULE_group_by_plain_clause);
|
7746 | try {
|
7747 | this.enterOuterAlt(localctx, 1);
|
7748 | this.state = 589;
|
7749 | this.group_by_list();
|
7750 | } catch (re) {
|
7751 | if(re instanceof antlr4.error.RecognitionException) {
|
7752 | localctx.exception = re;
|
7753 | this._errHandler.reportError(this, re);
|
7754 | this._errHandler.recover(this, re);
|
7755 | } else {
|
7756 | throw re;
|
7757 | }
|
7758 | } finally {
|
7759 | this.exitRule();
|
7760 | }
|
7761 | return localctx;
|
7762 | };
|
7763 |
|
7764 | function Group_by_rollup_clauseContext(parser, parent, invokingState) {
|
7765 | if(parent===undefined) {
|
7766 | parent = null;
|
7767 | }
|
7768 | if(invokingState===undefined || invokingState===null) {
|
7769 | invokingState = -1;
|
7770 | }
|
7771 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
7772 | this.parser = parser;
|
7773 | this.ruleIndex = SOQLParser.RULE_group_by_rollup_clause;
|
7774 | return this;
|
7775 | }
|
7776 |
|
7777 | Group_by_rollup_clauseContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
7778 | Group_by_rollup_clauseContext.prototype.constructor = Group_by_rollup_clauseContext;
|
7779 |
|
7780 | Group_by_rollup_clauseContext.prototype.ROLLUP = function() {
|
7781 | return this.getToken(SOQLParser.ROLLUP, 0);
|
7782 | };
|
7783 |
|
7784 | Group_by_rollup_clauseContext.prototype.LPAREN = function() {
|
7785 | return this.getToken(SOQLParser.LPAREN, 0);
|
7786 | };
|
7787 |
|
7788 | Group_by_rollup_clauseContext.prototype.group_by_list = function() {
|
7789 | return this.getTypedRuleContext(Group_by_listContext,0);
|
7790 | };
|
7791 |
|
7792 | Group_by_rollup_clauseContext.prototype.RPAREN = function() {
|
7793 | return this.getToken(SOQLParser.RPAREN, 0);
|
7794 | };
|
7795 |
|
7796 | Group_by_rollup_clauseContext.prototype.enterRule = function(listener) {
|
7797 | if(listener instanceof SOQLListener ) {
|
7798 | listener.enterGroup_by_rollup_clause(this);
|
7799 | }
|
7800 | };
|
7801 |
|
7802 | Group_by_rollup_clauseContext.prototype.exitRule = function(listener) {
|
7803 | if(listener instanceof SOQLListener ) {
|
7804 | listener.exitGroup_by_rollup_clause(this);
|
7805 | }
|
7806 | };
|
7807 |
|
7808 |
|
7809 |
|
7810 |
|
7811 | SOQLParser.Group_by_rollup_clauseContext = Group_by_rollup_clauseContext;
|
7812 |
|
7813 | SOQLParser.prototype.group_by_rollup_clause = function() {
|
7814 |
|
7815 | var localctx = new Group_by_rollup_clauseContext(this, this._ctx, this.state);
|
7816 | this.enterRule(localctx, 152, SOQLParser.RULE_group_by_rollup_clause);
|
7817 | try {
|
7818 | this.enterOuterAlt(localctx, 1);
|
7819 | this.state = 591;
|
7820 | this.match(SOQLParser.ROLLUP);
|
7821 | this.state = 592;
|
7822 | this.match(SOQLParser.LPAREN);
|
7823 | this.state = 593;
|
7824 | this.group_by_list();
|
7825 | this.state = 594;
|
7826 | this.match(SOQLParser.RPAREN);
|
7827 | } catch (re) {
|
7828 | if(re instanceof antlr4.error.RecognitionException) {
|
7829 | localctx.exception = re;
|
7830 | this._errHandler.reportError(this, re);
|
7831 | this._errHandler.recover(this, re);
|
7832 | } else {
|
7833 | throw re;
|
7834 | }
|
7835 | } finally {
|
7836 | this.exitRule();
|
7837 | }
|
7838 | return localctx;
|
7839 | };
|
7840 |
|
7841 | function Group_by_cube_clauseContext(parser, parent, invokingState) {
|
7842 | if(parent===undefined) {
|
7843 | parent = null;
|
7844 | }
|
7845 | if(invokingState===undefined || invokingState===null) {
|
7846 | invokingState = -1;
|
7847 | }
|
7848 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
7849 | this.parser = parser;
|
7850 | this.ruleIndex = SOQLParser.RULE_group_by_cube_clause;
|
7851 | return this;
|
7852 | }
|
7853 |
|
7854 | Group_by_cube_clauseContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
7855 | Group_by_cube_clauseContext.prototype.constructor = Group_by_cube_clauseContext;
|
7856 |
|
7857 | Group_by_cube_clauseContext.prototype.CUBE = function() {
|
7858 | return this.getToken(SOQLParser.CUBE, 0);
|
7859 | };
|
7860 |
|
7861 | Group_by_cube_clauseContext.prototype.LPAREN = function() {
|
7862 | return this.getToken(SOQLParser.LPAREN, 0);
|
7863 | };
|
7864 |
|
7865 | Group_by_cube_clauseContext.prototype.group_by_list = function() {
|
7866 | return this.getTypedRuleContext(Group_by_listContext,0);
|
7867 | };
|
7868 |
|
7869 | Group_by_cube_clauseContext.prototype.RPAREN = function() {
|
7870 | return this.getToken(SOQLParser.RPAREN, 0);
|
7871 | };
|
7872 |
|
7873 | Group_by_cube_clauseContext.prototype.enterRule = function(listener) {
|
7874 | if(listener instanceof SOQLListener ) {
|
7875 | listener.enterGroup_by_cube_clause(this);
|
7876 | }
|
7877 | };
|
7878 |
|
7879 | Group_by_cube_clauseContext.prototype.exitRule = function(listener) {
|
7880 | if(listener instanceof SOQLListener ) {
|
7881 | listener.exitGroup_by_cube_clause(this);
|
7882 | }
|
7883 | };
|
7884 |
|
7885 |
|
7886 |
|
7887 |
|
7888 | SOQLParser.Group_by_cube_clauseContext = Group_by_cube_clauseContext;
|
7889 |
|
7890 | SOQLParser.prototype.group_by_cube_clause = function() {
|
7891 |
|
7892 | var localctx = new Group_by_cube_clauseContext(this, this._ctx, this.state);
|
7893 | this.enterRule(localctx, 154, SOQLParser.RULE_group_by_cube_clause);
|
7894 | try {
|
7895 | this.enterOuterAlt(localctx, 1);
|
7896 | this.state = 596;
|
7897 | this.match(SOQLParser.CUBE);
|
7898 | this.state = 597;
|
7899 | this.match(SOQLParser.LPAREN);
|
7900 | this.state = 598;
|
7901 | this.group_by_list();
|
7902 | this.state = 599;
|
7903 | this.match(SOQLParser.RPAREN);
|
7904 | } catch (re) {
|
7905 | if(re instanceof antlr4.error.RecognitionException) {
|
7906 | localctx.exception = re;
|
7907 | this._errHandler.reportError(this, re);
|
7908 | this._errHandler.recover(this, re);
|
7909 | } else {
|
7910 | throw re;
|
7911 | }
|
7912 | } finally {
|
7913 | this.exitRule();
|
7914 | }
|
7915 | return localctx;
|
7916 | };
|
7917 |
|
7918 | function Group_by_listContext(parser, parent, invokingState) {
|
7919 | if(parent===undefined) {
|
7920 | parent = null;
|
7921 | }
|
7922 | if(invokingState===undefined || invokingState===null) {
|
7923 | invokingState = -1;
|
7924 | }
|
7925 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
7926 | this.parser = parser;
|
7927 | this.ruleIndex = SOQLParser.RULE_group_by_list;
|
7928 | return this;
|
7929 | }
|
7930 |
|
7931 | Group_by_listContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
7932 | Group_by_listContext.prototype.constructor = Group_by_listContext;
|
7933 |
|
7934 | Group_by_listContext.prototype.group_by_spec = function(i) {
|
7935 | if(i===undefined) {
|
7936 | i = null;
|
7937 | }
|
7938 | if(i===null) {
|
7939 | return this.getTypedRuleContexts(Group_by_specContext);
|
7940 | } else {
|
7941 | return this.getTypedRuleContext(Group_by_specContext,i);
|
7942 | }
|
7943 | };
|
7944 |
|
7945 | Group_by_listContext.prototype.COMMA = function(i) {
|
7946 | if(i===undefined) {
|
7947 | i = null;
|
7948 | }
|
7949 | if(i===null) {
|
7950 | return this.getTokens(SOQLParser.COMMA);
|
7951 | } else {
|
7952 | return this.getToken(SOQLParser.COMMA, i);
|
7953 | }
|
7954 | };
|
7955 |
|
7956 |
|
7957 | Group_by_listContext.prototype.enterRule = function(listener) {
|
7958 | if(listener instanceof SOQLListener ) {
|
7959 | listener.enterGroup_by_list(this);
|
7960 | }
|
7961 | };
|
7962 |
|
7963 | Group_by_listContext.prototype.exitRule = function(listener) {
|
7964 | if(listener instanceof SOQLListener ) {
|
7965 | listener.exitGroup_by_list(this);
|
7966 | }
|
7967 | };
|
7968 |
|
7969 |
|
7970 |
|
7971 |
|
7972 | SOQLParser.Group_by_listContext = Group_by_listContext;
|
7973 |
|
7974 | SOQLParser.prototype.group_by_list = function() {
|
7975 |
|
7976 | var localctx = new Group_by_listContext(this, this._ctx, this.state);
|
7977 | this.enterRule(localctx, 156, SOQLParser.RULE_group_by_list);
|
7978 | var _la = 0;
|
7979 | try {
|
7980 | this.enterOuterAlt(localctx, 1);
|
7981 | this.state = 601;
|
7982 | this.group_by_spec();
|
7983 | this.state = 606;
|
7984 | this._errHandler.sync(this);
|
7985 | _la = this._input.LA(1);
|
7986 | while(_la===SOQLParser.COMMA) {
|
7987 | this.state = 602;
|
7988 | this.match(SOQLParser.COMMA);
|
7989 | this.state = 603;
|
7990 | this.group_by_spec();
|
7991 | this.state = 608;
|
7992 | this._errHandler.sync(this);
|
7993 | _la = this._input.LA(1);
|
7994 | }
|
7995 | } catch (re) {
|
7996 | if(re instanceof antlr4.error.RecognitionException) {
|
7997 | localctx.exception = re;
|
7998 | this._errHandler.reportError(this, re);
|
7999 | this._errHandler.recover(this, re);
|
8000 | } else {
|
8001 | throw re;
|
8002 | }
|
8003 | } finally {
|
8004 | this.exitRule();
|
8005 | }
|
8006 | return localctx;
|
8007 | };
|
8008 |
|
8009 | function Group_by_specContext(parser, parent, invokingState) {
|
8010 | if(parent===undefined) {
|
8011 | parent = null;
|
8012 | }
|
8013 | if(invokingState===undefined || invokingState===null) {
|
8014 | invokingState = -1;
|
8015 | }
|
8016 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
8017 | this.parser = parser;
|
8018 | this.ruleIndex = SOQLParser.RULE_group_by_spec;
|
8019 | return this;
|
8020 | }
|
8021 |
|
8022 | Group_by_specContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
8023 | Group_by_specContext.prototype.constructor = Group_by_specContext;
|
8024 |
|
8025 | Group_by_specContext.prototype.field = function() {
|
8026 | return this.getTypedRuleContext(FieldContext,0);
|
8027 | };
|
8028 |
|
8029 | Group_by_specContext.prototype.function_call = function() {
|
8030 | return this.getTypedRuleContext(Function_callContext,0);
|
8031 | };
|
8032 |
|
8033 | Group_by_specContext.prototype.enterRule = function(listener) {
|
8034 | if(listener instanceof SOQLListener ) {
|
8035 | listener.enterGroup_by_spec(this);
|
8036 | }
|
8037 | };
|
8038 |
|
8039 | Group_by_specContext.prototype.exitRule = function(listener) {
|
8040 | if(listener instanceof SOQLListener ) {
|
8041 | listener.exitGroup_by_spec(this);
|
8042 | }
|
8043 | };
|
8044 |
|
8045 |
|
8046 |
|
8047 |
|
8048 | SOQLParser.Group_by_specContext = Group_by_specContext;
|
8049 |
|
8050 | SOQLParser.prototype.group_by_spec = function() {
|
8051 |
|
8052 | var localctx = new Group_by_specContext(this, this._ctx, this.state);
|
8053 | this.enterRule(localctx, 158, SOQLParser.RULE_group_by_spec);
|
8054 | try {
|
8055 | this.state = 611;
|
8056 | this._errHandler.sync(this);
|
8057 | var la_ = this._interp.adaptivePredict(this._input,59,this._ctx);
|
8058 | switch(la_) {
|
8059 | case 1:
|
8060 | this.enterOuterAlt(localctx, 1);
|
8061 | this.state = 609;
|
8062 | this.field();
|
8063 | break;
|
8064 |
|
8065 | case 2:
|
8066 | this.enterOuterAlt(localctx, 2);
|
8067 | this.state = 610;
|
8068 | this.function_call();
|
8069 | break;
|
8070 |
|
8071 | }
|
8072 | } catch (re) {
|
8073 | if(re instanceof antlr4.error.RecognitionException) {
|
8074 | localctx.exception = re;
|
8075 | this._errHandler.reportError(this, re);
|
8076 | this._errHandler.recover(this, re);
|
8077 | } else {
|
8078 | throw re;
|
8079 | }
|
8080 | } finally {
|
8081 | this.exitRule();
|
8082 | }
|
8083 | return localctx;
|
8084 | };
|
8085 |
|
8086 | function Order_by_listContext(parser, parent, invokingState) {
|
8087 | if(parent===undefined) {
|
8088 | parent = null;
|
8089 | }
|
8090 | if(invokingState===undefined || invokingState===null) {
|
8091 | invokingState = -1;
|
8092 | }
|
8093 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
8094 | this.parser = parser;
|
8095 | this.ruleIndex = SOQLParser.RULE_order_by_list;
|
8096 | return this;
|
8097 | }
|
8098 |
|
8099 | Order_by_listContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
8100 | Order_by_listContext.prototype.constructor = Order_by_listContext;
|
8101 |
|
8102 | Order_by_listContext.prototype.order_by_spec = function(i) {
|
8103 | if(i===undefined) {
|
8104 | i = null;
|
8105 | }
|
8106 | if(i===null) {
|
8107 | return this.getTypedRuleContexts(Order_by_specContext);
|
8108 | } else {
|
8109 | return this.getTypedRuleContext(Order_by_specContext,i);
|
8110 | }
|
8111 | };
|
8112 |
|
8113 | Order_by_listContext.prototype.COMMA = function(i) {
|
8114 | if(i===undefined) {
|
8115 | i = null;
|
8116 | }
|
8117 | if(i===null) {
|
8118 | return this.getTokens(SOQLParser.COMMA);
|
8119 | } else {
|
8120 | return this.getToken(SOQLParser.COMMA, i);
|
8121 | }
|
8122 | };
|
8123 |
|
8124 |
|
8125 | Order_by_listContext.prototype.enterRule = function(listener) {
|
8126 | if(listener instanceof SOQLListener ) {
|
8127 | listener.enterOrder_by_list(this);
|
8128 | }
|
8129 | };
|
8130 |
|
8131 | Order_by_listContext.prototype.exitRule = function(listener) {
|
8132 | if(listener instanceof SOQLListener ) {
|
8133 | listener.exitOrder_by_list(this);
|
8134 | }
|
8135 | };
|
8136 |
|
8137 |
|
8138 |
|
8139 |
|
8140 | SOQLParser.Order_by_listContext = Order_by_listContext;
|
8141 |
|
8142 | SOQLParser.prototype.order_by_list = function() {
|
8143 |
|
8144 | var localctx = new Order_by_listContext(this, this._ctx, this.state);
|
8145 | this.enterRule(localctx, 160, SOQLParser.RULE_order_by_list);
|
8146 | var _la = 0;
|
8147 | try {
|
8148 | this.enterOuterAlt(localctx, 1);
|
8149 | this.state = 613;
|
8150 | this.order_by_spec();
|
8151 | this.state = 618;
|
8152 | this._errHandler.sync(this);
|
8153 | _la = this._input.LA(1);
|
8154 | while(_la===SOQLParser.COMMA) {
|
8155 | this.state = 614;
|
8156 | this.match(SOQLParser.COMMA);
|
8157 | this.state = 615;
|
8158 | this.order_by_spec();
|
8159 | this.state = 620;
|
8160 | this._errHandler.sync(this);
|
8161 | _la = this._input.LA(1);
|
8162 | }
|
8163 | } catch (re) {
|
8164 | if(re instanceof antlr4.error.RecognitionException) {
|
8165 | localctx.exception = re;
|
8166 | this._errHandler.reportError(this, re);
|
8167 | this._errHandler.recover(this, re);
|
8168 | } else {
|
8169 | throw re;
|
8170 | }
|
8171 | } finally {
|
8172 | this.exitRule();
|
8173 | }
|
8174 | return localctx;
|
8175 | };
|
8176 |
|
8177 | function Order_by_specContext(parser, parent, invokingState) {
|
8178 | if(parent===undefined) {
|
8179 | parent = null;
|
8180 | }
|
8181 | if(invokingState===undefined || invokingState===null) {
|
8182 | invokingState = -1;
|
8183 | }
|
8184 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
8185 | this.parser = parser;
|
8186 | this.ruleIndex = SOQLParser.RULE_order_by_spec;
|
8187 | return this;
|
8188 | }
|
8189 |
|
8190 | Order_by_specContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
8191 | Order_by_specContext.prototype.constructor = Order_by_specContext;
|
8192 |
|
8193 | Order_by_specContext.prototype.order_by_field = function() {
|
8194 | return this.getTypedRuleContext(Order_by_fieldContext,0);
|
8195 | };
|
8196 |
|
8197 | Order_by_specContext.prototype.order_by_direction_clause = function() {
|
8198 | return this.getTypedRuleContext(Order_by_direction_clauseContext,0);
|
8199 | };
|
8200 |
|
8201 | Order_by_specContext.prototype.order_by_nulls_clause = function() {
|
8202 | return this.getTypedRuleContext(Order_by_nulls_clauseContext,0);
|
8203 | };
|
8204 |
|
8205 | Order_by_specContext.prototype.enterRule = function(listener) {
|
8206 | if(listener instanceof SOQLListener ) {
|
8207 | listener.enterOrder_by_spec(this);
|
8208 | }
|
8209 | };
|
8210 |
|
8211 | Order_by_specContext.prototype.exitRule = function(listener) {
|
8212 | if(listener instanceof SOQLListener ) {
|
8213 | listener.exitOrder_by_spec(this);
|
8214 | }
|
8215 | };
|
8216 |
|
8217 |
|
8218 |
|
8219 |
|
8220 | SOQLParser.Order_by_specContext = Order_by_specContext;
|
8221 |
|
8222 | SOQLParser.prototype.order_by_spec = function() {
|
8223 |
|
8224 | var localctx = new Order_by_specContext(this, this._ctx, this.state);
|
8225 | this.enterRule(localctx, 162, SOQLParser.RULE_order_by_spec);
|
8226 | var _la = 0;
|
8227 | try {
|
8228 | this.enterOuterAlt(localctx, 1);
|
8229 | this.state = 621;
|
8230 | this.order_by_field();
|
8231 | this.state = 623;
|
8232 | this._errHandler.sync(this);
|
8233 | _la = this._input.LA(1);
|
8234 | if(_la===SOQLParser.ASC || _la===SOQLParser.DESC) {
|
8235 | this.state = 622;
|
8236 | this.order_by_direction_clause();
|
8237 | }
|
8238 |
|
8239 | this.state = 626;
|
8240 | this._errHandler.sync(this);
|
8241 | _la = this._input.LA(1);
|
8242 | if(_la===SOQLParser.NULLS) {
|
8243 | this.state = 625;
|
8244 | this.order_by_nulls_clause();
|
8245 | }
|
8246 |
|
8247 | } catch (re) {
|
8248 | if(re instanceof antlr4.error.RecognitionException) {
|
8249 | localctx.exception = re;
|
8250 | this._errHandler.reportError(this, re);
|
8251 | this._errHandler.recover(this, re);
|
8252 | } else {
|
8253 | throw re;
|
8254 | }
|
8255 | } finally {
|
8256 | this.exitRule();
|
8257 | }
|
8258 | return localctx;
|
8259 | };
|
8260 |
|
8261 | function Order_by_direction_clauseContext(parser, parent, invokingState) {
|
8262 | if(parent===undefined) {
|
8263 | parent = null;
|
8264 | }
|
8265 | if(invokingState===undefined || invokingState===null) {
|
8266 | invokingState = -1;
|
8267 | }
|
8268 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
8269 | this.parser = parser;
|
8270 | this.ruleIndex = SOQLParser.RULE_order_by_direction_clause;
|
8271 | return this;
|
8272 | }
|
8273 |
|
8274 | Order_by_direction_clauseContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
8275 | Order_by_direction_clauseContext.prototype.constructor = Order_by_direction_clauseContext;
|
8276 |
|
8277 | Order_by_direction_clauseContext.prototype.ASC = function() {
|
8278 | return this.getToken(SOQLParser.ASC, 0);
|
8279 | };
|
8280 |
|
8281 | Order_by_direction_clauseContext.prototype.DESC = function() {
|
8282 | return this.getToken(SOQLParser.DESC, 0);
|
8283 | };
|
8284 |
|
8285 | Order_by_direction_clauseContext.prototype.enterRule = function(listener) {
|
8286 | if(listener instanceof SOQLListener ) {
|
8287 | listener.enterOrder_by_direction_clause(this);
|
8288 | }
|
8289 | };
|
8290 |
|
8291 | Order_by_direction_clauseContext.prototype.exitRule = function(listener) {
|
8292 | if(listener instanceof SOQLListener ) {
|
8293 | listener.exitOrder_by_direction_clause(this);
|
8294 | }
|
8295 | };
|
8296 |
|
8297 |
|
8298 |
|
8299 |
|
8300 | SOQLParser.Order_by_direction_clauseContext = Order_by_direction_clauseContext;
|
8301 |
|
8302 | SOQLParser.prototype.order_by_direction_clause = function() {
|
8303 |
|
8304 | var localctx = new Order_by_direction_clauseContext(this, this._ctx, this.state);
|
8305 | this.enterRule(localctx, 164, SOQLParser.RULE_order_by_direction_clause);
|
8306 | var _la = 0;
|
8307 | try {
|
8308 | this.enterOuterAlt(localctx, 1);
|
8309 | this.state = 628;
|
8310 | _la = this._input.LA(1);
|
8311 | if(!(_la===SOQLParser.ASC || _la===SOQLParser.DESC)) {
|
8312 | this._errHandler.recoverInline(this);
|
8313 | }
|
8314 | else {
|
8315 | this._errHandler.reportMatch(this);
|
8316 | this.consume();
|
8317 | }
|
8318 | } catch (re) {
|
8319 | if(re instanceof antlr4.error.RecognitionException) {
|
8320 | localctx.exception = re;
|
8321 | this._errHandler.reportError(this, re);
|
8322 | this._errHandler.recover(this, re);
|
8323 | } else {
|
8324 | throw re;
|
8325 | }
|
8326 | } finally {
|
8327 | this.exitRule();
|
8328 | }
|
8329 | return localctx;
|
8330 | };
|
8331 |
|
8332 | function Order_by_nulls_clauseContext(parser, parent, invokingState) {
|
8333 | if(parent===undefined) {
|
8334 | parent = null;
|
8335 | }
|
8336 | if(invokingState===undefined || invokingState===null) {
|
8337 | invokingState = -1;
|
8338 | }
|
8339 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
8340 | this.parser = parser;
|
8341 | this.ruleIndex = SOQLParser.RULE_order_by_nulls_clause;
|
8342 | return this;
|
8343 | }
|
8344 |
|
8345 | Order_by_nulls_clauseContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
8346 | Order_by_nulls_clauseContext.prototype.constructor = Order_by_nulls_clauseContext;
|
8347 |
|
8348 | Order_by_nulls_clauseContext.prototype.NULLS = function() {
|
8349 | return this.getToken(SOQLParser.NULLS, 0);
|
8350 | };
|
8351 |
|
8352 | Order_by_nulls_clauseContext.prototype.FIRST = function() {
|
8353 | return this.getToken(SOQLParser.FIRST, 0);
|
8354 | };
|
8355 |
|
8356 | Order_by_nulls_clauseContext.prototype.LAST = function() {
|
8357 | return this.getToken(SOQLParser.LAST, 0);
|
8358 | };
|
8359 |
|
8360 | Order_by_nulls_clauseContext.prototype.enterRule = function(listener) {
|
8361 | if(listener instanceof SOQLListener ) {
|
8362 | listener.enterOrder_by_nulls_clause(this);
|
8363 | }
|
8364 | };
|
8365 |
|
8366 | Order_by_nulls_clauseContext.prototype.exitRule = function(listener) {
|
8367 | if(listener instanceof SOQLListener ) {
|
8368 | listener.exitOrder_by_nulls_clause(this);
|
8369 | }
|
8370 | };
|
8371 |
|
8372 |
|
8373 |
|
8374 |
|
8375 | SOQLParser.Order_by_nulls_clauseContext = Order_by_nulls_clauseContext;
|
8376 |
|
8377 | SOQLParser.prototype.order_by_nulls_clause = function() {
|
8378 |
|
8379 | var localctx = new Order_by_nulls_clauseContext(this, this._ctx, this.state);
|
8380 | this.enterRule(localctx, 166, SOQLParser.RULE_order_by_nulls_clause);
|
8381 | var _la = 0;
|
8382 | try {
|
8383 | this.enterOuterAlt(localctx, 1);
|
8384 | this.state = 630;
|
8385 | this.match(SOQLParser.NULLS);
|
8386 | this.state = 631;
|
8387 | _la = this._input.LA(1);
|
8388 | if(!(_la===SOQLParser.FIRST || _la===SOQLParser.LAST)) {
|
8389 | this._errHandler.recoverInline(this);
|
8390 | }
|
8391 | else {
|
8392 | this._errHandler.reportMatch(this);
|
8393 | this.consume();
|
8394 | }
|
8395 | } catch (re) {
|
8396 | if(re instanceof antlr4.error.RecognitionException) {
|
8397 | localctx.exception = re;
|
8398 | this._errHandler.reportError(this, re);
|
8399 | this._errHandler.recover(this, re);
|
8400 | } else {
|
8401 | throw re;
|
8402 | }
|
8403 | } finally {
|
8404 | this.exitRule();
|
8405 | }
|
8406 | return localctx;
|
8407 | };
|
8408 |
|
8409 | function Order_by_fieldContext(parser, parent, invokingState) {
|
8410 | if(parent===undefined) {
|
8411 | parent = null;
|
8412 | }
|
8413 | if(invokingState===undefined || invokingState===null) {
|
8414 | invokingState = -1;
|
8415 | }
|
8416 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
8417 | this.parser = parser;
|
8418 | this.ruleIndex = SOQLParser.RULE_order_by_field;
|
8419 | return this;
|
8420 | }
|
8421 |
|
8422 | Order_by_fieldContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
8423 | Order_by_fieldContext.prototype.constructor = Order_by_fieldContext;
|
8424 |
|
8425 | Order_by_fieldContext.prototype.field = function() {
|
8426 | return this.getTypedRuleContext(FieldContext,0);
|
8427 | };
|
8428 |
|
8429 | Order_by_fieldContext.prototype.function_call = function() {
|
8430 | return this.getTypedRuleContext(Function_callContext,0);
|
8431 | };
|
8432 |
|
8433 | Order_by_fieldContext.prototype.enterRule = function(listener) {
|
8434 | if(listener instanceof SOQLListener ) {
|
8435 | listener.enterOrder_by_field(this);
|
8436 | }
|
8437 | };
|
8438 |
|
8439 | Order_by_fieldContext.prototype.exitRule = function(listener) {
|
8440 | if(listener instanceof SOQLListener ) {
|
8441 | listener.exitOrder_by_field(this);
|
8442 | }
|
8443 | };
|
8444 |
|
8445 |
|
8446 |
|
8447 |
|
8448 | SOQLParser.Order_by_fieldContext = Order_by_fieldContext;
|
8449 |
|
8450 | SOQLParser.prototype.order_by_field = function() {
|
8451 |
|
8452 | var localctx = new Order_by_fieldContext(this, this._ctx, this.state);
|
8453 | this.enterRule(localctx, 168, SOQLParser.RULE_order_by_field);
|
8454 | try {
|
8455 | this.state = 635;
|
8456 | this._errHandler.sync(this);
|
8457 | var la_ = this._interp.adaptivePredict(this._input,63,this._ctx);
|
8458 | switch(la_) {
|
8459 | case 1:
|
8460 | this.enterOuterAlt(localctx, 1);
|
8461 | this.state = 633;
|
8462 | this.field();
|
8463 | break;
|
8464 |
|
8465 | case 2:
|
8466 | this.enterOuterAlt(localctx, 2);
|
8467 | this.state = 634;
|
8468 | this.function_call();
|
8469 | break;
|
8470 |
|
8471 | }
|
8472 | } catch (re) {
|
8473 | if(re instanceof antlr4.error.RecognitionException) {
|
8474 | localctx.exception = re;
|
8475 | this._errHandler.reportError(this, re);
|
8476 | this._errHandler.recover(this, re);
|
8477 | } else {
|
8478 | throw re;
|
8479 | }
|
8480 | } finally {
|
8481 | this.exitRule();
|
8482 | }
|
8483 | return localctx;
|
8484 | };
|
8485 |
|
8486 | function For_valueContext(parser, parent, invokingState) {
|
8487 | if(parent===undefined) {
|
8488 | parent = null;
|
8489 | }
|
8490 | if(invokingState===undefined || invokingState===null) {
|
8491 | invokingState = -1;
|
8492 | }
|
8493 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
8494 | this.parser = parser;
|
8495 | this.ruleIndex = SOQLParser.RULE_for_value;
|
8496 | return this;
|
8497 | }
|
8498 |
|
8499 | For_valueContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
8500 | For_valueContext.prototype.constructor = For_valueContext;
|
8501 |
|
8502 | For_valueContext.prototype.REFERENCE = function() {
|
8503 | return this.getToken(SOQLParser.REFERENCE, 0);
|
8504 | };
|
8505 |
|
8506 | For_valueContext.prototype.VIEW = function() {
|
8507 | return this.getToken(SOQLParser.VIEW, 0);
|
8508 | };
|
8509 |
|
8510 | For_valueContext.prototype.UPDATE = function() {
|
8511 | return this.getToken(SOQLParser.UPDATE, 0);
|
8512 | };
|
8513 |
|
8514 | For_valueContext.prototype.enterRule = function(listener) {
|
8515 | if(listener instanceof SOQLListener ) {
|
8516 | listener.enterFor_value(this);
|
8517 | }
|
8518 | };
|
8519 |
|
8520 | For_valueContext.prototype.exitRule = function(listener) {
|
8521 | if(listener instanceof SOQLListener ) {
|
8522 | listener.exitFor_value(this);
|
8523 | }
|
8524 | };
|
8525 |
|
8526 |
|
8527 |
|
8528 |
|
8529 | SOQLParser.For_valueContext = For_valueContext;
|
8530 |
|
8531 | SOQLParser.prototype.for_value = function() {
|
8532 |
|
8533 | var localctx = new For_valueContext(this, this._ctx, this.state);
|
8534 | this.enterRule(localctx, 170, SOQLParser.RULE_for_value);
|
8535 | var _la = 0;
|
8536 | try {
|
8537 | this.enterOuterAlt(localctx, 1);
|
8538 | this.state = 637;
|
8539 | _la = this._input.LA(1);
|
8540 | if(!(((((_la - 33)) & ~0x1f) == 0 && ((1 << (_la - 33)) & ((1 << (SOQLParser.UPDATE - 33)) | (1 << (SOQLParser.REFERENCE - 33)) | (1 << (SOQLParser.VIEW - 33)))) !== 0))) {
|
8541 | this._errHandler.recoverInline(this);
|
8542 | }
|
8543 | else {
|
8544 | this._errHandler.reportMatch(this);
|
8545 | this.consume();
|
8546 | }
|
8547 | } catch (re) {
|
8548 | if(re instanceof antlr4.error.RecognitionException) {
|
8549 | localctx.exception = re;
|
8550 | this._errHandler.reportError(this, re);
|
8551 | this._errHandler.recover(this, re);
|
8552 | } else {
|
8553 | throw re;
|
8554 | }
|
8555 | } finally {
|
8556 | this.exitRule();
|
8557 | }
|
8558 | return localctx;
|
8559 | };
|
8560 |
|
8561 | function Update_valueContext(parser, parent, invokingState) {
|
8562 | if(parent===undefined) {
|
8563 | parent = null;
|
8564 | }
|
8565 | if(invokingState===undefined || invokingState===null) {
|
8566 | invokingState = -1;
|
8567 | }
|
8568 | antlr4.ParserRuleContext.call(this, parent, invokingState);
|
8569 | this.parser = parser;
|
8570 | this.ruleIndex = SOQLParser.RULE_update_value;
|
8571 | return this;
|
8572 | }
|
8573 |
|
8574 | Update_valueContext.prototype = Object.create(antlr4.ParserRuleContext.prototype);
|
8575 | Update_valueContext.prototype.constructor = Update_valueContext;
|
8576 |
|
8577 | Update_valueContext.prototype.TRACKING = function() {
|
8578 | return this.getToken(SOQLParser.TRACKING, 0);
|
8579 | };
|
8580 |
|
8581 | Update_valueContext.prototype.VIEWSTAT = function() {
|
8582 | return this.getToken(SOQLParser.VIEWSTAT, 0);
|
8583 | };
|
8584 |
|
8585 | Update_valueContext.prototype.enterRule = function(listener) {
|
8586 | if(listener instanceof SOQLListener ) {
|
8587 | listener.enterUpdate_value(this);
|
8588 | }
|
8589 | };
|
8590 |
|
8591 | Update_valueContext.prototype.exitRule = function(listener) {
|
8592 | if(listener instanceof SOQLListener ) {
|
8593 | listener.exitUpdate_value(this);
|
8594 | }
|
8595 | };
|
8596 |
|
8597 |
|
8598 |
|
8599 |
|
8600 | SOQLParser.Update_valueContext = Update_valueContext;
|
8601 |
|
8602 | SOQLParser.prototype.update_value = function() {
|
8603 |
|
8604 | var localctx = new Update_valueContext(this, this._ctx, this.state);
|
8605 | this.enterRule(localctx, 172, SOQLParser.RULE_update_value);
|
8606 | var _la = 0;
|
8607 | try {
|
8608 | this.enterOuterAlt(localctx, 1);
|
8609 | this.state = 639;
|
8610 | _la = this._input.LA(1);
|
8611 | if(!(_la===SOQLParser.TRACKING || _la===SOQLParser.VIEWSTAT)) {
|
8612 | this._errHandler.recoverInline(this);
|
8613 | }
|
8614 | else {
|
8615 | this._errHandler.reportMatch(this);
|
8616 | this.consume();
|
8617 | }
|
8618 | } catch (re) {
|
8619 | if(re instanceof antlr4.error.RecognitionException) {
|
8620 | localctx.exception = re;
|
8621 | this._errHandler.reportError(this, re);
|
8622 | this._errHandler.recover(this, re);
|
8623 | } else {
|
8624 | throw re;
|
8625 | }
|
8626 | } finally {
|
8627 | this.exitRule();
|
8628 | }
|
8629 | return localctx;
|
8630 | };
|
8631 |
|
8632 |
|
8633 | exports.SOQLParser = SOQLParser;
|