pickle-jar 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/dist/src/feature-file-visitor.d.ts +23 -0
- package/dist/src/feature-file-visitor.js +172 -0
- package/dist/src/feature-file-visitor.js.map +1 -0
- package/dist/src/get-call-sites.d.ts +2 -0
- package/dist/src/get-call-sites.js +12 -0
- package/dist/src/get-call-sites.js.map +1 -0
- package/dist/src/grammar/GherkinLexer.d.ts +45 -0
- package/dist/src/grammar/GherkinLexer.js +239 -0
- package/dist/src/grammar/GherkinLexer.js.map +1 -0
- package/dist/src/grammar/GherkinParser.d.ts +268 -0
- package/dist/src/grammar/GherkinParser.js +1795 -0
- package/dist/src/grammar/GherkinParser.js.map +1 -0
- package/dist/src/grammar/GherkinParserVisitor.d.ts +150 -0
- package/dist/src/grammar/GherkinParserVisitor.js +4 -0
- package/dist/src/grammar/GherkinParserVisitor.js.map +1 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/step-definition.d.ts +5 -0
- package/dist/src/step-definition.js +3 -0
- package/dist/src/step-definition.js.map +1 -0
- package/dist/src/step.d.ts +1 -0
- package/dist/src/step.js +3 -0
- package/dist/src/step.js.map +1 -0
- package/dist/src/test-runner.d.ts +2 -0
- package/dist/src/test-runner.js +33 -0
- package/dist/src/test-runner.js.map +1 -0
- package/package.json +5 -2
- package/.eslintignore +0 -4
- package/.eslintrc +0 -12
- package/.idea/modules.xml +0 -8
- package/.idea/pickle-jar.iml +0 -12
- package/.idea/vcs.xml +0 -6
- package/Makefile +0 -43
|
@@ -0,0 +1,1795 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
// Generated from ./src/grammar/GherkinParser.g4 by ANTLR 4.9.0-SNAPSHOT
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.ContentTextContext = exports.TagsContext = exports.DocStringContext = exports.ButStepContext = exports.AndStepContext = exports.ThenStepContext = exports.AndWhenStepContext = exports.WhenStepContext = exports.AndGivenStepContext = exports.GivenStepContext = exports.StepContext = exports.CellContext = exports.TableRowContext = exports.TableHeaderContext = exports.ExamplesBlockContext = exports.ScenarioOutlineContext = exports.ScenarioContext = exports.BackgroundContext = exports.FeatureContext = exports.FeatureFileContext = exports.GherkinParser = void 0;
|
|
6
|
+
const tslib_1 = require("tslib");
|
|
7
|
+
const ATN_1 = require("antlr4ts/atn/ATN");
|
|
8
|
+
const ATNDeserializer_1 = require("antlr4ts/atn/ATNDeserializer");
|
|
9
|
+
const FailedPredicateException_1 = require("antlr4ts/FailedPredicateException");
|
|
10
|
+
const NoViableAltException_1 = require("antlr4ts/NoViableAltException");
|
|
11
|
+
const Parser_1 = require("antlr4ts/Parser");
|
|
12
|
+
const ParserRuleContext_1 = require("antlr4ts/ParserRuleContext");
|
|
13
|
+
const ParserATNSimulator_1 = require("antlr4ts/atn/ParserATNSimulator");
|
|
14
|
+
const RecognitionException_1 = require("antlr4ts/RecognitionException");
|
|
15
|
+
const VocabularyImpl_1 = require("antlr4ts/VocabularyImpl");
|
|
16
|
+
const Utils = tslib_1.__importStar(require("antlr4ts/misc/Utils"));
|
|
17
|
+
class GherkinParser extends Parser_1.Parser {
|
|
18
|
+
// @Override
|
|
19
|
+
// @NotNull
|
|
20
|
+
get vocabulary() {
|
|
21
|
+
return GherkinParser.VOCABULARY;
|
|
22
|
+
}
|
|
23
|
+
// tslint:enable:no-trailing-whitespace
|
|
24
|
+
// @Override
|
|
25
|
+
get grammarFileName() { return "GherkinParser.g4"; }
|
|
26
|
+
// @Override
|
|
27
|
+
get ruleNames() { return GherkinParser.ruleNames; }
|
|
28
|
+
// @Override
|
|
29
|
+
get serializedATN() { return GherkinParser._serializedATN; }
|
|
30
|
+
createFailedPredicateException(predicate, message) {
|
|
31
|
+
return new FailedPredicateException_1.FailedPredicateException(this, predicate, message);
|
|
32
|
+
}
|
|
33
|
+
constructor(input) {
|
|
34
|
+
super(input);
|
|
35
|
+
this._interp = new ParserATNSimulator_1.ParserATNSimulator(GherkinParser._ATN, this);
|
|
36
|
+
}
|
|
37
|
+
// @RuleVersion(0)
|
|
38
|
+
featureFile() {
|
|
39
|
+
let _localctx = new FeatureFileContext(this._ctx, this.state);
|
|
40
|
+
this.enterRule(_localctx, 0, GherkinParser.RULE_featureFile);
|
|
41
|
+
let _la;
|
|
42
|
+
try {
|
|
43
|
+
this.enterOuterAlt(_localctx, 1);
|
|
44
|
+
{
|
|
45
|
+
this.state = 43;
|
|
46
|
+
this._errHandler.sync(this);
|
|
47
|
+
_la = this._input.LA(1);
|
|
48
|
+
while (_la === GherkinParser.FEATURE) {
|
|
49
|
+
{
|
|
50
|
+
{
|
|
51
|
+
this.state = 40;
|
|
52
|
+
this.feature();
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
this.state = 45;
|
|
56
|
+
this._errHandler.sync(this);
|
|
57
|
+
_la = this._input.LA(1);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
catch (re) {
|
|
62
|
+
if (re instanceof RecognitionException_1.RecognitionException) {
|
|
63
|
+
_localctx.exception = re;
|
|
64
|
+
this._errHandler.reportError(this, re);
|
|
65
|
+
this._errHandler.recover(this, re);
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
throw re;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
finally {
|
|
72
|
+
this.exitRule();
|
|
73
|
+
}
|
|
74
|
+
return _localctx;
|
|
75
|
+
}
|
|
76
|
+
// @RuleVersion(0)
|
|
77
|
+
feature() {
|
|
78
|
+
let _localctx = new FeatureContext(this._ctx, this.state);
|
|
79
|
+
this.enterRule(_localctx, 2, GherkinParser.RULE_feature);
|
|
80
|
+
let _la;
|
|
81
|
+
try {
|
|
82
|
+
this.enterOuterAlt(_localctx, 1);
|
|
83
|
+
{
|
|
84
|
+
this.state = 46;
|
|
85
|
+
this.match(GherkinParser.FEATURE);
|
|
86
|
+
this.state = 47;
|
|
87
|
+
this.contentText();
|
|
88
|
+
this.state = 58;
|
|
89
|
+
this._errHandler.sync(this);
|
|
90
|
+
switch (this.interpreter.adaptivePredict(this._input, 4, this._ctx)) {
|
|
91
|
+
case 1:
|
|
92
|
+
{
|
|
93
|
+
this.state = 49;
|
|
94
|
+
this._errHandler.sync(this);
|
|
95
|
+
_la = this._input.LA(1);
|
|
96
|
+
if (_la === GherkinParser.BACKGROUND || _la === GherkinParser.TAG) {
|
|
97
|
+
{
|
|
98
|
+
this.state = 48;
|
|
99
|
+
this.background();
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
break;
|
|
104
|
+
case 2:
|
|
105
|
+
{
|
|
106
|
+
this.state = 55;
|
|
107
|
+
this._errHandler.sync(this);
|
|
108
|
+
_la = this._input.LA(1);
|
|
109
|
+
while ((((_la) & ~0x1F) === 0 && ((1 << _la) & ((1 << GherkinParser.SCENARIO) | (1 << GherkinParser.SCENARIO_OUTLINE) | (1 << GherkinParser.TAG))) !== 0)) {
|
|
110
|
+
{
|
|
111
|
+
this.state = 53;
|
|
112
|
+
this._errHandler.sync(this);
|
|
113
|
+
switch (this.interpreter.adaptivePredict(this._input, 2, this._ctx)) {
|
|
114
|
+
case 1:
|
|
115
|
+
{
|
|
116
|
+
this.state = 51;
|
|
117
|
+
this.scenario();
|
|
118
|
+
}
|
|
119
|
+
break;
|
|
120
|
+
case 2:
|
|
121
|
+
{
|
|
122
|
+
this.state = 52;
|
|
123
|
+
this.scenarioOutline();
|
|
124
|
+
}
|
|
125
|
+
break;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
this.state = 57;
|
|
129
|
+
this._errHandler.sync(this);
|
|
130
|
+
_la = this._input.LA(1);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
break;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
catch (re) {
|
|
138
|
+
if (re instanceof RecognitionException_1.RecognitionException) {
|
|
139
|
+
_localctx.exception = re;
|
|
140
|
+
this._errHandler.reportError(this, re);
|
|
141
|
+
this._errHandler.recover(this, re);
|
|
142
|
+
}
|
|
143
|
+
else {
|
|
144
|
+
throw re;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
finally {
|
|
148
|
+
this.exitRule();
|
|
149
|
+
}
|
|
150
|
+
return _localctx;
|
|
151
|
+
}
|
|
152
|
+
// @RuleVersion(0)
|
|
153
|
+
background() {
|
|
154
|
+
let _localctx = new BackgroundContext(this._ctx, this.state);
|
|
155
|
+
this.enterRule(_localctx, 4, GherkinParser.RULE_background);
|
|
156
|
+
let _la;
|
|
157
|
+
try {
|
|
158
|
+
let _alt;
|
|
159
|
+
this.enterOuterAlt(_localctx, 1);
|
|
160
|
+
{
|
|
161
|
+
this.state = 61;
|
|
162
|
+
this._errHandler.sync(this);
|
|
163
|
+
_la = this._input.LA(1);
|
|
164
|
+
if (_la === GherkinParser.TAG) {
|
|
165
|
+
{
|
|
166
|
+
this.state = 60;
|
|
167
|
+
this.tags();
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
this.state = 63;
|
|
171
|
+
this.match(GherkinParser.BACKGROUND);
|
|
172
|
+
this.state = 64;
|
|
173
|
+
this.contentText();
|
|
174
|
+
this.state = 65;
|
|
175
|
+
this.givenStep();
|
|
176
|
+
this.state = 69;
|
|
177
|
+
this._errHandler.sync(this);
|
|
178
|
+
_alt = this.interpreter.adaptivePredict(this._input, 6, this._ctx);
|
|
179
|
+
while (_alt !== 2 && _alt !== ATN_1.ATN.INVALID_ALT_NUMBER) {
|
|
180
|
+
if (_alt === 1) {
|
|
181
|
+
{
|
|
182
|
+
{
|
|
183
|
+
this.state = 66;
|
|
184
|
+
this.andGivenStep();
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
this.state = 71;
|
|
189
|
+
this._errHandler.sync(this);
|
|
190
|
+
_alt = this.interpreter.adaptivePredict(this._input, 6, this._ctx);
|
|
191
|
+
}
|
|
192
|
+
this.state = 76;
|
|
193
|
+
this._errHandler.sync(this);
|
|
194
|
+
_la = this._input.LA(1);
|
|
195
|
+
while ((((_la) & ~0x1F) === 0 && ((1 << _la) & ((1 << GherkinParser.SCENARIO) | (1 << GherkinParser.SCENARIO_OUTLINE) | (1 << GherkinParser.TAG))) !== 0)) {
|
|
196
|
+
{
|
|
197
|
+
this.state = 74;
|
|
198
|
+
this._errHandler.sync(this);
|
|
199
|
+
switch (this.interpreter.adaptivePredict(this._input, 7, this._ctx)) {
|
|
200
|
+
case 1:
|
|
201
|
+
{
|
|
202
|
+
this.state = 72;
|
|
203
|
+
this.scenario();
|
|
204
|
+
}
|
|
205
|
+
break;
|
|
206
|
+
case 2:
|
|
207
|
+
{
|
|
208
|
+
this.state = 73;
|
|
209
|
+
this.scenarioOutline();
|
|
210
|
+
}
|
|
211
|
+
break;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
this.state = 78;
|
|
215
|
+
this._errHandler.sync(this);
|
|
216
|
+
_la = this._input.LA(1);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
catch (re) {
|
|
221
|
+
if (re instanceof RecognitionException_1.RecognitionException) {
|
|
222
|
+
_localctx.exception = re;
|
|
223
|
+
this._errHandler.reportError(this, re);
|
|
224
|
+
this._errHandler.recover(this, re);
|
|
225
|
+
}
|
|
226
|
+
else {
|
|
227
|
+
throw re;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
finally {
|
|
231
|
+
this.exitRule();
|
|
232
|
+
}
|
|
233
|
+
return _localctx;
|
|
234
|
+
}
|
|
235
|
+
// @RuleVersion(0)
|
|
236
|
+
scenario() {
|
|
237
|
+
let _localctx = new ScenarioContext(this._ctx, this.state);
|
|
238
|
+
this.enterRule(_localctx, 6, GherkinParser.RULE_scenario);
|
|
239
|
+
let _la;
|
|
240
|
+
try {
|
|
241
|
+
this.enterOuterAlt(_localctx, 1);
|
|
242
|
+
{
|
|
243
|
+
this.state = 80;
|
|
244
|
+
this._errHandler.sync(this);
|
|
245
|
+
_la = this._input.LA(1);
|
|
246
|
+
if (_la === GherkinParser.TAG) {
|
|
247
|
+
{
|
|
248
|
+
this.state = 79;
|
|
249
|
+
this.tags();
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
this.state = 82;
|
|
253
|
+
this.match(GherkinParser.SCENARIO);
|
|
254
|
+
this.state = 83;
|
|
255
|
+
this.contentText();
|
|
256
|
+
this.state = 84;
|
|
257
|
+
this.step();
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
catch (re) {
|
|
261
|
+
if (re instanceof RecognitionException_1.RecognitionException) {
|
|
262
|
+
_localctx.exception = re;
|
|
263
|
+
this._errHandler.reportError(this, re);
|
|
264
|
+
this._errHandler.recover(this, re);
|
|
265
|
+
}
|
|
266
|
+
else {
|
|
267
|
+
throw re;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
finally {
|
|
271
|
+
this.exitRule();
|
|
272
|
+
}
|
|
273
|
+
return _localctx;
|
|
274
|
+
}
|
|
275
|
+
// @RuleVersion(0)
|
|
276
|
+
scenarioOutline() {
|
|
277
|
+
let _localctx = new ScenarioOutlineContext(this._ctx, this.state);
|
|
278
|
+
this.enterRule(_localctx, 8, GherkinParser.RULE_scenarioOutline);
|
|
279
|
+
let _la;
|
|
280
|
+
try {
|
|
281
|
+
this.enterOuterAlt(_localctx, 1);
|
|
282
|
+
{
|
|
283
|
+
this.state = 87;
|
|
284
|
+
this._errHandler.sync(this);
|
|
285
|
+
_la = this._input.LA(1);
|
|
286
|
+
if (_la === GherkinParser.TAG) {
|
|
287
|
+
{
|
|
288
|
+
this.state = 86;
|
|
289
|
+
this.tags();
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
this.state = 89;
|
|
293
|
+
this.match(GherkinParser.SCENARIO_OUTLINE);
|
|
294
|
+
this.state = 90;
|
|
295
|
+
this.contentText();
|
|
296
|
+
this.state = 91;
|
|
297
|
+
this.step();
|
|
298
|
+
this.state = 92;
|
|
299
|
+
this.examplesBlock();
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
catch (re) {
|
|
303
|
+
if (re instanceof RecognitionException_1.RecognitionException) {
|
|
304
|
+
_localctx.exception = re;
|
|
305
|
+
this._errHandler.reportError(this, re);
|
|
306
|
+
this._errHandler.recover(this, re);
|
|
307
|
+
}
|
|
308
|
+
else {
|
|
309
|
+
throw re;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
finally {
|
|
313
|
+
this.exitRule();
|
|
314
|
+
}
|
|
315
|
+
return _localctx;
|
|
316
|
+
}
|
|
317
|
+
// @RuleVersion(0)
|
|
318
|
+
examplesBlock() {
|
|
319
|
+
let _localctx = new ExamplesBlockContext(this._ctx, this.state);
|
|
320
|
+
this.enterRule(_localctx, 10, GherkinParser.RULE_examplesBlock);
|
|
321
|
+
let _la;
|
|
322
|
+
try {
|
|
323
|
+
this.enterOuterAlt(_localctx, 1);
|
|
324
|
+
{
|
|
325
|
+
this.state = 94;
|
|
326
|
+
this.match(GherkinParser.EXAMPLES);
|
|
327
|
+
this.state = 95;
|
|
328
|
+
this.tableHeader();
|
|
329
|
+
this.state = 97;
|
|
330
|
+
this._errHandler.sync(this);
|
|
331
|
+
_la = this._input.LA(1);
|
|
332
|
+
do {
|
|
333
|
+
{
|
|
334
|
+
{
|
|
335
|
+
this.state = 96;
|
|
336
|
+
this.tableRow();
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
this.state = 99;
|
|
340
|
+
this._errHandler.sync(this);
|
|
341
|
+
_la = this._input.LA(1);
|
|
342
|
+
} while (_la === GherkinParser.PIPE);
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
catch (re) {
|
|
346
|
+
if (re instanceof RecognitionException_1.RecognitionException) {
|
|
347
|
+
_localctx.exception = re;
|
|
348
|
+
this._errHandler.reportError(this, re);
|
|
349
|
+
this._errHandler.recover(this, re);
|
|
350
|
+
}
|
|
351
|
+
else {
|
|
352
|
+
throw re;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
finally {
|
|
356
|
+
this.exitRule();
|
|
357
|
+
}
|
|
358
|
+
return _localctx;
|
|
359
|
+
}
|
|
360
|
+
// @RuleVersion(0)
|
|
361
|
+
tableHeader() {
|
|
362
|
+
let _localctx = new TableHeaderContext(this._ctx, this.state);
|
|
363
|
+
this.enterRule(_localctx, 12, GherkinParser.RULE_tableHeader);
|
|
364
|
+
try {
|
|
365
|
+
this.enterOuterAlt(_localctx, 1);
|
|
366
|
+
{
|
|
367
|
+
this.state = 101;
|
|
368
|
+
this.tableRow();
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
catch (re) {
|
|
372
|
+
if (re instanceof RecognitionException_1.RecognitionException) {
|
|
373
|
+
_localctx.exception = re;
|
|
374
|
+
this._errHandler.reportError(this, re);
|
|
375
|
+
this._errHandler.recover(this, re);
|
|
376
|
+
}
|
|
377
|
+
else {
|
|
378
|
+
throw re;
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
finally {
|
|
382
|
+
this.exitRule();
|
|
383
|
+
}
|
|
384
|
+
return _localctx;
|
|
385
|
+
}
|
|
386
|
+
// @RuleVersion(0)
|
|
387
|
+
tableRow() {
|
|
388
|
+
let _localctx = new TableRowContext(this._ctx, this.state);
|
|
389
|
+
this.enterRule(_localctx, 14, GherkinParser.RULE_tableRow);
|
|
390
|
+
let _la;
|
|
391
|
+
try {
|
|
392
|
+
let _alt;
|
|
393
|
+
this.enterOuterAlt(_localctx, 1);
|
|
394
|
+
{
|
|
395
|
+
this.state = 103;
|
|
396
|
+
this.match(GherkinParser.PIPE);
|
|
397
|
+
this.state = 105;
|
|
398
|
+
this._errHandler.sync(this);
|
|
399
|
+
_la = this._input.LA(1);
|
|
400
|
+
do {
|
|
401
|
+
{
|
|
402
|
+
{
|
|
403
|
+
this.state = 104;
|
|
404
|
+
this.cell();
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
this.state = 107;
|
|
408
|
+
this._errHandler.sync(this);
|
|
409
|
+
_la = this._input.LA(1);
|
|
410
|
+
} while (_la === GherkinParser.TEXT_CHARACTER);
|
|
411
|
+
this.state = 117;
|
|
412
|
+
this._errHandler.sync(this);
|
|
413
|
+
_alt = this.interpreter.adaptivePredict(this._input, 14, this._ctx);
|
|
414
|
+
while (_alt !== 2 && _alt !== ATN_1.ATN.INVALID_ALT_NUMBER) {
|
|
415
|
+
if (_alt === 1) {
|
|
416
|
+
{
|
|
417
|
+
{
|
|
418
|
+
this.state = 109;
|
|
419
|
+
this.match(GherkinParser.PIPE);
|
|
420
|
+
this.state = 111;
|
|
421
|
+
this._errHandler.sync(this);
|
|
422
|
+
_la = this._input.LA(1);
|
|
423
|
+
do {
|
|
424
|
+
{
|
|
425
|
+
{
|
|
426
|
+
this.state = 110;
|
|
427
|
+
this.cell();
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
this.state = 113;
|
|
431
|
+
this._errHandler.sync(this);
|
|
432
|
+
_la = this._input.LA(1);
|
|
433
|
+
} while (_la === GherkinParser.TEXT_CHARACTER);
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
this.state = 119;
|
|
438
|
+
this._errHandler.sync(this);
|
|
439
|
+
_alt = this.interpreter.adaptivePredict(this._input, 14, this._ctx);
|
|
440
|
+
}
|
|
441
|
+
this.state = 120;
|
|
442
|
+
this.match(GherkinParser.PIPE);
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
catch (re) {
|
|
446
|
+
if (re instanceof RecognitionException_1.RecognitionException) {
|
|
447
|
+
_localctx.exception = re;
|
|
448
|
+
this._errHandler.reportError(this, re);
|
|
449
|
+
this._errHandler.recover(this, re);
|
|
450
|
+
}
|
|
451
|
+
else {
|
|
452
|
+
throw re;
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
finally {
|
|
456
|
+
this.exitRule();
|
|
457
|
+
}
|
|
458
|
+
return _localctx;
|
|
459
|
+
}
|
|
460
|
+
// @RuleVersion(0)
|
|
461
|
+
cell() {
|
|
462
|
+
let _localctx = new CellContext(this._ctx, this.state);
|
|
463
|
+
this.enterRule(_localctx, 16, GherkinParser.RULE_cell);
|
|
464
|
+
try {
|
|
465
|
+
this.enterOuterAlt(_localctx, 1);
|
|
466
|
+
{
|
|
467
|
+
this.state = 122;
|
|
468
|
+
this.contentText();
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
catch (re) {
|
|
472
|
+
if (re instanceof RecognitionException_1.RecognitionException) {
|
|
473
|
+
_localctx.exception = re;
|
|
474
|
+
this._errHandler.reportError(this, re);
|
|
475
|
+
this._errHandler.recover(this, re);
|
|
476
|
+
}
|
|
477
|
+
else {
|
|
478
|
+
throw re;
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
finally {
|
|
482
|
+
this.exitRule();
|
|
483
|
+
}
|
|
484
|
+
return _localctx;
|
|
485
|
+
}
|
|
486
|
+
// @RuleVersion(0)
|
|
487
|
+
step() {
|
|
488
|
+
let _localctx = new StepContext(this._ctx, this.state);
|
|
489
|
+
this.enterRule(_localctx, 18, GherkinParser.RULE_step);
|
|
490
|
+
try {
|
|
491
|
+
let _alt;
|
|
492
|
+
this.enterOuterAlt(_localctx, 1);
|
|
493
|
+
{
|
|
494
|
+
this.state = 124;
|
|
495
|
+
this.givenStep();
|
|
496
|
+
this.state = 128;
|
|
497
|
+
this._errHandler.sync(this);
|
|
498
|
+
_alt = this.interpreter.adaptivePredict(this._input, 15, this._ctx);
|
|
499
|
+
while (_alt !== 2 && _alt !== ATN_1.ATN.INVALID_ALT_NUMBER) {
|
|
500
|
+
if (_alt === 1) {
|
|
501
|
+
{
|
|
502
|
+
{
|
|
503
|
+
this.state = 125;
|
|
504
|
+
this.andGivenStep();
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
this.state = 130;
|
|
509
|
+
this._errHandler.sync(this);
|
|
510
|
+
_alt = this.interpreter.adaptivePredict(this._input, 15, this._ctx);
|
|
511
|
+
}
|
|
512
|
+
this.state = 131;
|
|
513
|
+
this.whenStep();
|
|
514
|
+
this.state = 135;
|
|
515
|
+
this._errHandler.sync(this);
|
|
516
|
+
_alt = this.interpreter.adaptivePredict(this._input, 16, this._ctx);
|
|
517
|
+
while (_alt !== 2 && _alt !== ATN_1.ATN.INVALID_ALT_NUMBER) {
|
|
518
|
+
if (_alt === 1) {
|
|
519
|
+
{
|
|
520
|
+
{
|
|
521
|
+
this.state = 132;
|
|
522
|
+
this.andWhenStep();
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
this.state = 137;
|
|
527
|
+
this._errHandler.sync(this);
|
|
528
|
+
_alt = this.interpreter.adaptivePredict(this._input, 16, this._ctx);
|
|
529
|
+
}
|
|
530
|
+
this.state = 138;
|
|
531
|
+
this.thenStep();
|
|
532
|
+
this.state = 142;
|
|
533
|
+
this._errHandler.sync(this);
|
|
534
|
+
_alt = this.interpreter.adaptivePredict(this._input, 17, this._ctx);
|
|
535
|
+
while (_alt !== 2 && _alt !== ATN_1.ATN.INVALID_ALT_NUMBER) {
|
|
536
|
+
if (_alt === 1) {
|
|
537
|
+
{
|
|
538
|
+
{
|
|
539
|
+
this.state = 139;
|
|
540
|
+
this.andStep();
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
this.state = 144;
|
|
545
|
+
this._errHandler.sync(this);
|
|
546
|
+
_alt = this.interpreter.adaptivePredict(this._input, 17, this._ctx);
|
|
547
|
+
}
|
|
548
|
+
this.state = 148;
|
|
549
|
+
this._errHandler.sync(this);
|
|
550
|
+
_alt = this.interpreter.adaptivePredict(this._input, 18, this._ctx);
|
|
551
|
+
while (_alt !== 2 && _alt !== ATN_1.ATN.INVALID_ALT_NUMBER) {
|
|
552
|
+
if (_alt === 1) {
|
|
553
|
+
{
|
|
554
|
+
{
|
|
555
|
+
this.state = 145;
|
|
556
|
+
this.butStep();
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
this.state = 150;
|
|
561
|
+
this._errHandler.sync(this);
|
|
562
|
+
_alt = this.interpreter.adaptivePredict(this._input, 18, this._ctx);
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
catch (re) {
|
|
567
|
+
if (re instanceof RecognitionException_1.RecognitionException) {
|
|
568
|
+
_localctx.exception = re;
|
|
569
|
+
this._errHandler.reportError(this, re);
|
|
570
|
+
this._errHandler.recover(this, re);
|
|
571
|
+
}
|
|
572
|
+
else {
|
|
573
|
+
throw re;
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
finally {
|
|
577
|
+
this.exitRule();
|
|
578
|
+
}
|
|
579
|
+
return _localctx;
|
|
580
|
+
}
|
|
581
|
+
// @RuleVersion(0)
|
|
582
|
+
givenStep() {
|
|
583
|
+
let _localctx = new GivenStepContext(this._ctx, this.state);
|
|
584
|
+
this.enterRule(_localctx, 20, GherkinParser.RULE_givenStep);
|
|
585
|
+
let _la;
|
|
586
|
+
try {
|
|
587
|
+
this.enterOuterAlt(_localctx, 1);
|
|
588
|
+
{
|
|
589
|
+
this.state = 152;
|
|
590
|
+
this._errHandler.sync(this);
|
|
591
|
+
_la = this._input.LA(1);
|
|
592
|
+
if (_la === GherkinParser.TAG) {
|
|
593
|
+
{
|
|
594
|
+
this.state = 151;
|
|
595
|
+
this.tags();
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
this.state = 154;
|
|
599
|
+
this.match(GherkinParser.GIVEN);
|
|
600
|
+
this.state = 155;
|
|
601
|
+
this.contentText();
|
|
602
|
+
this.state = 157;
|
|
603
|
+
this._errHandler.sync(this);
|
|
604
|
+
_la = this._input.LA(1);
|
|
605
|
+
if (_la === GherkinParser.DOC_STRING_QUOT) {
|
|
606
|
+
{
|
|
607
|
+
this.state = 156;
|
|
608
|
+
this.docString();
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
catch (re) {
|
|
614
|
+
if (re instanceof RecognitionException_1.RecognitionException) {
|
|
615
|
+
_localctx.exception = re;
|
|
616
|
+
this._errHandler.reportError(this, re);
|
|
617
|
+
this._errHandler.recover(this, re);
|
|
618
|
+
}
|
|
619
|
+
else {
|
|
620
|
+
throw re;
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
finally {
|
|
624
|
+
this.exitRule();
|
|
625
|
+
}
|
|
626
|
+
return _localctx;
|
|
627
|
+
}
|
|
628
|
+
// @RuleVersion(0)
|
|
629
|
+
andGivenStep() {
|
|
630
|
+
let _localctx = new AndGivenStepContext(this._ctx, this.state);
|
|
631
|
+
this.enterRule(_localctx, 22, GherkinParser.RULE_andGivenStep);
|
|
632
|
+
let _la;
|
|
633
|
+
try {
|
|
634
|
+
this.enterOuterAlt(_localctx, 1);
|
|
635
|
+
{
|
|
636
|
+
this.state = 160;
|
|
637
|
+
this._errHandler.sync(this);
|
|
638
|
+
_la = this._input.LA(1);
|
|
639
|
+
if (_la === GherkinParser.TAG) {
|
|
640
|
+
{
|
|
641
|
+
this.state = 159;
|
|
642
|
+
this.tags();
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
this.state = 162;
|
|
646
|
+
this.match(GherkinParser.AND_GIVEN);
|
|
647
|
+
this.state = 163;
|
|
648
|
+
this.contentText();
|
|
649
|
+
this.state = 165;
|
|
650
|
+
this._errHandler.sync(this);
|
|
651
|
+
_la = this._input.LA(1);
|
|
652
|
+
if (_la === GherkinParser.DOC_STRING_QUOT) {
|
|
653
|
+
{
|
|
654
|
+
this.state = 164;
|
|
655
|
+
this.docString();
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
catch (re) {
|
|
661
|
+
if (re instanceof RecognitionException_1.RecognitionException) {
|
|
662
|
+
_localctx.exception = re;
|
|
663
|
+
this._errHandler.reportError(this, re);
|
|
664
|
+
this._errHandler.recover(this, re);
|
|
665
|
+
}
|
|
666
|
+
else {
|
|
667
|
+
throw re;
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
finally {
|
|
671
|
+
this.exitRule();
|
|
672
|
+
}
|
|
673
|
+
return _localctx;
|
|
674
|
+
}
|
|
675
|
+
// @RuleVersion(0)
|
|
676
|
+
whenStep() {
|
|
677
|
+
let _localctx = new WhenStepContext(this._ctx, this.state);
|
|
678
|
+
this.enterRule(_localctx, 24, GherkinParser.RULE_whenStep);
|
|
679
|
+
let _la;
|
|
680
|
+
try {
|
|
681
|
+
this.enterOuterAlt(_localctx, 1);
|
|
682
|
+
{
|
|
683
|
+
this.state = 168;
|
|
684
|
+
this._errHandler.sync(this);
|
|
685
|
+
_la = this._input.LA(1);
|
|
686
|
+
if (_la === GherkinParser.TAG) {
|
|
687
|
+
{
|
|
688
|
+
this.state = 167;
|
|
689
|
+
this.tags();
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
this.state = 170;
|
|
693
|
+
this.match(GherkinParser.WHEN);
|
|
694
|
+
this.state = 171;
|
|
695
|
+
this.contentText();
|
|
696
|
+
this.state = 173;
|
|
697
|
+
this._errHandler.sync(this);
|
|
698
|
+
_la = this._input.LA(1);
|
|
699
|
+
if (_la === GherkinParser.DOC_STRING_QUOT) {
|
|
700
|
+
{
|
|
701
|
+
this.state = 172;
|
|
702
|
+
this.docString();
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
catch (re) {
|
|
708
|
+
if (re instanceof RecognitionException_1.RecognitionException) {
|
|
709
|
+
_localctx.exception = re;
|
|
710
|
+
this._errHandler.reportError(this, re);
|
|
711
|
+
this._errHandler.recover(this, re);
|
|
712
|
+
}
|
|
713
|
+
else {
|
|
714
|
+
throw re;
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
finally {
|
|
718
|
+
this.exitRule();
|
|
719
|
+
}
|
|
720
|
+
return _localctx;
|
|
721
|
+
}
|
|
722
|
+
// @RuleVersion(0)
|
|
723
|
+
andWhenStep() {
|
|
724
|
+
let _localctx = new AndWhenStepContext(this._ctx, this.state);
|
|
725
|
+
this.enterRule(_localctx, 26, GherkinParser.RULE_andWhenStep);
|
|
726
|
+
let _la;
|
|
727
|
+
try {
|
|
728
|
+
this.enterOuterAlt(_localctx, 1);
|
|
729
|
+
{
|
|
730
|
+
this.state = 176;
|
|
731
|
+
this._errHandler.sync(this);
|
|
732
|
+
_la = this._input.LA(1);
|
|
733
|
+
if (_la === GherkinParser.TAG) {
|
|
734
|
+
{
|
|
735
|
+
this.state = 175;
|
|
736
|
+
this.tags();
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
this.state = 178;
|
|
740
|
+
this.match(GherkinParser.AND_WHEN);
|
|
741
|
+
this.state = 179;
|
|
742
|
+
this.contentText();
|
|
743
|
+
this.state = 181;
|
|
744
|
+
this._errHandler.sync(this);
|
|
745
|
+
_la = this._input.LA(1);
|
|
746
|
+
if (_la === GherkinParser.DOC_STRING_QUOT) {
|
|
747
|
+
{
|
|
748
|
+
this.state = 180;
|
|
749
|
+
this.docString();
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
catch (re) {
|
|
755
|
+
if (re instanceof RecognitionException_1.RecognitionException) {
|
|
756
|
+
_localctx.exception = re;
|
|
757
|
+
this._errHandler.reportError(this, re);
|
|
758
|
+
this._errHandler.recover(this, re);
|
|
759
|
+
}
|
|
760
|
+
else {
|
|
761
|
+
throw re;
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
finally {
|
|
765
|
+
this.exitRule();
|
|
766
|
+
}
|
|
767
|
+
return _localctx;
|
|
768
|
+
}
|
|
769
|
+
// @RuleVersion(0)
|
|
770
|
+
thenStep() {
|
|
771
|
+
let _localctx = new ThenStepContext(this._ctx, this.state);
|
|
772
|
+
this.enterRule(_localctx, 28, GherkinParser.RULE_thenStep);
|
|
773
|
+
let _la;
|
|
774
|
+
try {
|
|
775
|
+
this.enterOuterAlt(_localctx, 1);
|
|
776
|
+
{
|
|
777
|
+
this.state = 184;
|
|
778
|
+
this._errHandler.sync(this);
|
|
779
|
+
_la = this._input.LA(1);
|
|
780
|
+
if (_la === GherkinParser.TAG) {
|
|
781
|
+
{
|
|
782
|
+
this.state = 183;
|
|
783
|
+
this.tags();
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
this.state = 186;
|
|
787
|
+
this.match(GherkinParser.THEN);
|
|
788
|
+
this.state = 187;
|
|
789
|
+
this.contentText();
|
|
790
|
+
this.state = 189;
|
|
791
|
+
this._errHandler.sync(this);
|
|
792
|
+
_la = this._input.LA(1);
|
|
793
|
+
if (_la === GherkinParser.DOC_STRING_QUOT) {
|
|
794
|
+
{
|
|
795
|
+
this.state = 188;
|
|
796
|
+
this.docString();
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
catch (re) {
|
|
802
|
+
if (re instanceof RecognitionException_1.RecognitionException) {
|
|
803
|
+
_localctx.exception = re;
|
|
804
|
+
this._errHandler.reportError(this, re);
|
|
805
|
+
this._errHandler.recover(this, re);
|
|
806
|
+
}
|
|
807
|
+
else {
|
|
808
|
+
throw re;
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
finally {
|
|
812
|
+
this.exitRule();
|
|
813
|
+
}
|
|
814
|
+
return _localctx;
|
|
815
|
+
}
|
|
816
|
+
// @RuleVersion(0)
|
|
817
|
+
andStep() {
|
|
818
|
+
let _localctx = new AndStepContext(this._ctx, this.state);
|
|
819
|
+
this.enterRule(_localctx, 30, GherkinParser.RULE_andStep);
|
|
820
|
+
let _la;
|
|
821
|
+
try {
|
|
822
|
+
this.enterOuterAlt(_localctx, 1);
|
|
823
|
+
{
|
|
824
|
+
this.state = 192;
|
|
825
|
+
this._errHandler.sync(this);
|
|
826
|
+
_la = this._input.LA(1);
|
|
827
|
+
if (_la === GherkinParser.TAG) {
|
|
828
|
+
{
|
|
829
|
+
this.state = 191;
|
|
830
|
+
this.tags();
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
this.state = 194;
|
|
834
|
+
this.match(GherkinParser.AND);
|
|
835
|
+
this.state = 195;
|
|
836
|
+
this.contentText();
|
|
837
|
+
this.state = 197;
|
|
838
|
+
this._errHandler.sync(this);
|
|
839
|
+
_la = this._input.LA(1);
|
|
840
|
+
if (_la === GherkinParser.DOC_STRING_QUOT) {
|
|
841
|
+
{
|
|
842
|
+
this.state = 196;
|
|
843
|
+
this.docString();
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
catch (re) {
|
|
849
|
+
if (re instanceof RecognitionException_1.RecognitionException) {
|
|
850
|
+
_localctx.exception = re;
|
|
851
|
+
this._errHandler.reportError(this, re);
|
|
852
|
+
this._errHandler.recover(this, re);
|
|
853
|
+
}
|
|
854
|
+
else {
|
|
855
|
+
throw re;
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
finally {
|
|
859
|
+
this.exitRule();
|
|
860
|
+
}
|
|
861
|
+
return _localctx;
|
|
862
|
+
}
|
|
863
|
+
// @RuleVersion(0)
|
|
864
|
+
butStep() {
|
|
865
|
+
let _localctx = new ButStepContext(this._ctx, this.state);
|
|
866
|
+
this.enterRule(_localctx, 32, GherkinParser.RULE_butStep);
|
|
867
|
+
let _la;
|
|
868
|
+
try {
|
|
869
|
+
this.enterOuterAlt(_localctx, 1);
|
|
870
|
+
{
|
|
871
|
+
this.state = 200;
|
|
872
|
+
this._errHandler.sync(this);
|
|
873
|
+
_la = this._input.LA(1);
|
|
874
|
+
if (_la === GherkinParser.TAG) {
|
|
875
|
+
{
|
|
876
|
+
this.state = 199;
|
|
877
|
+
this.tags();
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
this.state = 202;
|
|
881
|
+
this.match(GherkinParser.BUT);
|
|
882
|
+
this.state = 203;
|
|
883
|
+
this.contentText();
|
|
884
|
+
this.state = 205;
|
|
885
|
+
this._errHandler.sync(this);
|
|
886
|
+
_la = this._input.LA(1);
|
|
887
|
+
if (_la === GherkinParser.DOC_STRING_QUOT) {
|
|
888
|
+
{
|
|
889
|
+
this.state = 204;
|
|
890
|
+
this.docString();
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
catch (re) {
|
|
896
|
+
if (re instanceof RecognitionException_1.RecognitionException) {
|
|
897
|
+
_localctx.exception = re;
|
|
898
|
+
this._errHandler.reportError(this, re);
|
|
899
|
+
this._errHandler.recover(this, re);
|
|
900
|
+
}
|
|
901
|
+
else {
|
|
902
|
+
throw re;
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
finally {
|
|
906
|
+
this.exitRule();
|
|
907
|
+
}
|
|
908
|
+
return _localctx;
|
|
909
|
+
}
|
|
910
|
+
// @RuleVersion(0)
|
|
911
|
+
docString() {
|
|
912
|
+
let _localctx = new DocStringContext(this._ctx, this.state);
|
|
913
|
+
this.enterRule(_localctx, 34, GherkinParser.RULE_docString);
|
|
914
|
+
let _la;
|
|
915
|
+
try {
|
|
916
|
+
this.enterOuterAlt(_localctx, 1);
|
|
917
|
+
{
|
|
918
|
+
this.state = 207;
|
|
919
|
+
this.match(GherkinParser.DOC_STRING_QUOT);
|
|
920
|
+
this.state = 209;
|
|
921
|
+
this._errHandler.sync(this);
|
|
922
|
+
_la = this._input.LA(1);
|
|
923
|
+
if (_la === GherkinParser.DOC_STRING_TEXT) {
|
|
924
|
+
{
|
|
925
|
+
this.state = 208;
|
|
926
|
+
this.match(GherkinParser.DOC_STRING_TEXT);
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
this.state = 211;
|
|
930
|
+
this.match(GherkinParser.DOC_STRING_QUOT);
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
catch (re) {
|
|
934
|
+
if (re instanceof RecognitionException_1.RecognitionException) {
|
|
935
|
+
_localctx.exception = re;
|
|
936
|
+
this._errHandler.reportError(this, re);
|
|
937
|
+
this._errHandler.recover(this, re);
|
|
938
|
+
}
|
|
939
|
+
else {
|
|
940
|
+
throw re;
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
finally {
|
|
944
|
+
this.exitRule();
|
|
945
|
+
}
|
|
946
|
+
return _localctx;
|
|
947
|
+
}
|
|
948
|
+
// @RuleVersion(0)
|
|
949
|
+
tags() {
|
|
950
|
+
let _localctx = new TagsContext(this._ctx, this.state);
|
|
951
|
+
this.enterRule(_localctx, 36, GherkinParser.RULE_tags);
|
|
952
|
+
let _la;
|
|
953
|
+
try {
|
|
954
|
+
this.enterOuterAlt(_localctx, 1);
|
|
955
|
+
{
|
|
956
|
+
this.state = 214;
|
|
957
|
+
this._errHandler.sync(this);
|
|
958
|
+
_la = this._input.LA(1);
|
|
959
|
+
do {
|
|
960
|
+
{
|
|
961
|
+
{
|
|
962
|
+
this.state = 213;
|
|
963
|
+
this.match(GherkinParser.TAG);
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
this.state = 216;
|
|
967
|
+
this._errHandler.sync(this);
|
|
968
|
+
_la = this._input.LA(1);
|
|
969
|
+
} while (_la === GherkinParser.TAG);
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
catch (re) {
|
|
973
|
+
if (re instanceof RecognitionException_1.RecognitionException) {
|
|
974
|
+
_localctx.exception = re;
|
|
975
|
+
this._errHandler.reportError(this, re);
|
|
976
|
+
this._errHandler.recover(this, re);
|
|
977
|
+
}
|
|
978
|
+
else {
|
|
979
|
+
throw re;
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
finally {
|
|
983
|
+
this.exitRule();
|
|
984
|
+
}
|
|
985
|
+
return _localctx;
|
|
986
|
+
}
|
|
987
|
+
// @RuleVersion(0)
|
|
988
|
+
contentText() {
|
|
989
|
+
let _localctx = new ContentTextContext(this._ctx, this.state);
|
|
990
|
+
this.enterRule(_localctx, 38, GherkinParser.RULE_contentText);
|
|
991
|
+
try {
|
|
992
|
+
let _alt;
|
|
993
|
+
this.enterOuterAlt(_localctx, 1);
|
|
994
|
+
{
|
|
995
|
+
this.state = 219;
|
|
996
|
+
this._errHandler.sync(this);
|
|
997
|
+
_alt = 1;
|
|
998
|
+
do {
|
|
999
|
+
switch (_alt) {
|
|
1000
|
+
case 1:
|
|
1001
|
+
{
|
|
1002
|
+
{
|
|
1003
|
+
this.state = 218;
|
|
1004
|
+
this.match(GherkinParser.TEXT_CHARACTER);
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
break;
|
|
1008
|
+
default:
|
|
1009
|
+
throw new NoViableAltException_1.NoViableAltException(this);
|
|
1010
|
+
}
|
|
1011
|
+
this.state = 221;
|
|
1012
|
+
this._errHandler.sync(this);
|
|
1013
|
+
_alt = this.interpreter.adaptivePredict(this._input, 35, this._ctx);
|
|
1014
|
+
} while (_alt !== 2 && _alt !== ATN_1.ATN.INVALID_ALT_NUMBER);
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
catch (re) {
|
|
1018
|
+
if (re instanceof RecognitionException_1.RecognitionException) {
|
|
1019
|
+
_localctx.exception = re;
|
|
1020
|
+
this._errHandler.reportError(this, re);
|
|
1021
|
+
this._errHandler.recover(this, re);
|
|
1022
|
+
}
|
|
1023
|
+
else {
|
|
1024
|
+
throw re;
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
finally {
|
|
1028
|
+
this.exitRule();
|
|
1029
|
+
}
|
|
1030
|
+
return _localctx;
|
|
1031
|
+
}
|
|
1032
|
+
static get _ATN() {
|
|
1033
|
+
if (!GherkinParser.__ATN) {
|
|
1034
|
+
GherkinParser.__ATN = new ATNDeserializer_1.ATNDeserializer().deserialize(Utils.toCharArray(GherkinParser._serializedATN));
|
|
1035
|
+
}
|
|
1036
|
+
return GherkinParser.__ATN;
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
exports.GherkinParser = GherkinParser;
|
|
1040
|
+
GherkinParser.FEATURE = 1;
|
|
1041
|
+
GherkinParser.SCENARIO = 2;
|
|
1042
|
+
GherkinParser.SCENARIO_OUTLINE = 3;
|
|
1043
|
+
GherkinParser.GIVEN = 4;
|
|
1044
|
+
GherkinParser.AND_GIVEN = 5;
|
|
1045
|
+
GherkinParser.WHEN = 6;
|
|
1046
|
+
GherkinParser.AND_WHEN = 7;
|
|
1047
|
+
GherkinParser.THEN = 8;
|
|
1048
|
+
GherkinParser.AND = 9;
|
|
1049
|
+
GherkinParser.BUT = 10;
|
|
1050
|
+
GherkinParser.EXAMPLES = 11;
|
|
1051
|
+
GherkinParser.BACKGROUND = 12;
|
|
1052
|
+
GherkinParser.PIPE = 13;
|
|
1053
|
+
GherkinParser.TAG = 14;
|
|
1054
|
+
GherkinParser.COMMENT = 15;
|
|
1055
|
+
GherkinParser.TEXT_CHARACTER = 16;
|
|
1056
|
+
GherkinParser.WS = 17;
|
|
1057
|
+
GherkinParser.WSS = 18;
|
|
1058
|
+
GherkinParser.DOC_STRING_QUOT = 19;
|
|
1059
|
+
GherkinParser.DOC_STRING_TEXT = 20;
|
|
1060
|
+
GherkinParser.DOC_STRING_WS = 21;
|
|
1061
|
+
GherkinParser.RULE_featureFile = 0;
|
|
1062
|
+
GherkinParser.RULE_feature = 1;
|
|
1063
|
+
GherkinParser.RULE_background = 2;
|
|
1064
|
+
GherkinParser.RULE_scenario = 3;
|
|
1065
|
+
GherkinParser.RULE_scenarioOutline = 4;
|
|
1066
|
+
GherkinParser.RULE_examplesBlock = 5;
|
|
1067
|
+
GherkinParser.RULE_tableHeader = 6;
|
|
1068
|
+
GherkinParser.RULE_tableRow = 7;
|
|
1069
|
+
GherkinParser.RULE_cell = 8;
|
|
1070
|
+
GherkinParser.RULE_step = 9;
|
|
1071
|
+
GherkinParser.RULE_givenStep = 10;
|
|
1072
|
+
GherkinParser.RULE_andGivenStep = 11;
|
|
1073
|
+
GherkinParser.RULE_whenStep = 12;
|
|
1074
|
+
GherkinParser.RULE_andWhenStep = 13;
|
|
1075
|
+
GherkinParser.RULE_thenStep = 14;
|
|
1076
|
+
GherkinParser.RULE_andStep = 15;
|
|
1077
|
+
GherkinParser.RULE_butStep = 16;
|
|
1078
|
+
GherkinParser.RULE_docString = 17;
|
|
1079
|
+
GherkinParser.RULE_tags = 18;
|
|
1080
|
+
GherkinParser.RULE_contentText = 19;
|
|
1081
|
+
// tslint:disable:no-trailing-whitespace
|
|
1082
|
+
GherkinParser.ruleNames = [
|
|
1083
|
+
"featureFile", "feature", "background", "scenario", "scenarioOutline",
|
|
1084
|
+
"examplesBlock", "tableHeader", "tableRow", "cell", "step", "givenStep",
|
|
1085
|
+
"andGivenStep", "whenStep", "andWhenStep", "thenStep", "andStep", "butStep",
|
|
1086
|
+
"docString", "tags", "contentText",
|
|
1087
|
+
];
|
|
1088
|
+
GherkinParser._LITERAL_NAMES = [
|
|
1089
|
+
undefined, undefined, undefined, undefined, undefined, undefined, undefined,
|
|
1090
|
+
undefined, undefined, undefined, undefined, undefined, undefined, "'|'",
|
|
1091
|
+
];
|
|
1092
|
+
GherkinParser._SYMBOLIC_NAMES = [
|
|
1093
|
+
undefined, "FEATURE", "SCENARIO", "SCENARIO_OUTLINE", "GIVEN", "AND_GIVEN",
|
|
1094
|
+
"WHEN", "AND_WHEN", "THEN", "AND", "BUT", "EXAMPLES", "BACKGROUND", "PIPE",
|
|
1095
|
+
"TAG", "COMMENT", "TEXT_CHARACTER", "WS", "WSS", "DOC_STRING_QUOT", "DOC_STRING_TEXT",
|
|
1096
|
+
"DOC_STRING_WS",
|
|
1097
|
+
];
|
|
1098
|
+
GherkinParser.VOCABULARY = new VocabularyImpl_1.VocabularyImpl(GherkinParser._LITERAL_NAMES, GherkinParser._SYMBOLIC_NAMES, []);
|
|
1099
|
+
GherkinParser._serializedATN = "\x03\uC91D\uCABA\u058D\uAFBA\u4F53\u0607\uEA8B\uC241\x03\x17\xE2\x04\x02" +
|
|
1100
|
+
"\t\x02\x04\x03\t\x03\x04\x04\t\x04\x04\x05\t\x05\x04\x06\t\x06\x04\x07" +
|
|
1101
|
+
"\t\x07\x04\b\t\b\x04\t\t\t\x04\n\t\n\x04\v\t\v\x04\f\t\f\x04\r\t\r\x04" +
|
|
1102
|
+
"\x0E\t\x0E\x04\x0F\t\x0F\x04\x10\t\x10\x04\x11\t\x11\x04\x12\t\x12\x04" +
|
|
1103
|
+
"\x13\t\x13\x04\x14\t\x14\x04\x15\t\x15\x03\x02\x07\x02,\n\x02\f\x02\x0E" +
|
|
1104
|
+
"\x02/\v\x02\x03\x03\x03\x03\x03\x03\x05\x034\n\x03\x03\x03\x03\x03\x07" +
|
|
1105
|
+
"\x038\n\x03\f\x03\x0E\x03;\v\x03\x05\x03=\n\x03\x03\x04\x05\x04@\n\x04" +
|
|
1106
|
+
"\x03\x04\x03\x04\x03\x04\x03\x04\x07\x04F\n\x04\f\x04\x0E\x04I\v\x04\x03" +
|
|
1107
|
+
"\x04\x03\x04\x07\x04M\n\x04\f\x04\x0E\x04P\v\x04\x03\x05\x05\x05S\n\x05" +
|
|
1108
|
+
"\x03\x05\x03\x05\x03\x05\x03\x05\x03\x06\x05\x06Z\n\x06\x03\x06\x03\x06" +
|
|
1109
|
+
"\x03\x06\x03\x06\x03\x06\x03\x07\x03\x07\x03\x07\x06\x07d\n\x07\r\x07" +
|
|
1110
|
+
"\x0E\x07e\x03\b\x03\b\x03\t\x03\t\x06\tl\n\t\r\t\x0E\tm\x03\t\x03\t\x06" +
|
|
1111
|
+
"\tr\n\t\r\t\x0E\ts\x07\tv\n\t\f\t\x0E\ty\v\t\x03\t\x03\t\x03\n\x03\n\x03" +
|
|
1112
|
+
"\v\x03\v\x07\v\x81\n\v\f\v\x0E\v\x84\v\v\x03\v\x03\v\x07\v\x88\n\v\f\v" +
|
|
1113
|
+
"\x0E\v\x8B\v\v\x03\v\x03\v\x07\v\x8F\n\v\f\v\x0E\v\x92\v\v\x03\v\x07\v" +
|
|
1114
|
+
"\x95\n\v\f\v\x0E\v\x98\v\v\x03\f\x05\f\x9B\n\f\x03\f\x03\f\x03\f\x05\f" +
|
|
1115
|
+
"\xA0\n\f\x03\r\x05\r\xA3\n\r\x03\r\x03\r\x03\r\x05\r\xA8\n\r\x03\x0E\x05" +
|
|
1116
|
+
"\x0E\xAB\n\x0E\x03\x0E\x03\x0E\x03\x0E\x05\x0E\xB0\n\x0E\x03\x0F\x05\x0F" +
|
|
1117
|
+
"\xB3\n\x0F\x03\x0F\x03\x0F\x03\x0F\x05\x0F\xB8\n\x0F\x03\x10\x05\x10\xBB" +
|
|
1118
|
+
"\n\x10\x03\x10\x03\x10\x03\x10\x05\x10\xC0\n\x10\x03\x11\x05\x11\xC3\n" +
|
|
1119
|
+
"\x11\x03\x11\x03\x11\x03\x11\x05\x11\xC8\n\x11\x03\x12\x05\x12\xCB\n\x12" +
|
|
1120
|
+
"\x03\x12\x03\x12\x03\x12\x05\x12\xD0\n\x12\x03\x13\x03\x13\x05\x13\xD4" +
|
|
1121
|
+
"\n\x13\x03\x13\x03\x13\x03\x14\x06\x14\xD9\n\x14\r\x14\x0E\x14\xDA\x03" +
|
|
1122
|
+
"\x15\x06\x15\xDE\n\x15\r\x15\x0E\x15\xDF\x03\x15\x02\x02\x02\x16\x02\x02" +
|
|
1123
|
+
"\x04\x02\x06\x02\b\x02\n\x02\f\x02\x0E\x02\x10\x02\x12\x02\x14\x02\x16" +
|
|
1124
|
+
"\x02\x18\x02\x1A\x02\x1C\x02\x1E\x02 \x02\"\x02$\x02&\x02(\x02\x02\x02" +
|
|
1125
|
+
"\x02\xF1\x02-\x03\x02\x02\x02\x040\x03\x02\x02\x02\x06?\x03\x02\x02\x02" +
|
|
1126
|
+
"\bR\x03\x02\x02\x02\nY\x03\x02\x02\x02\f`\x03\x02\x02\x02\x0Eg\x03\x02" +
|
|
1127
|
+
"\x02\x02\x10i\x03\x02\x02\x02\x12|\x03\x02\x02\x02\x14~\x03\x02\x02\x02" +
|
|
1128
|
+
"\x16\x9A\x03\x02\x02\x02\x18\xA2\x03\x02\x02\x02\x1A\xAA\x03\x02\x02\x02" +
|
|
1129
|
+
"\x1C\xB2\x03\x02\x02\x02\x1E\xBA\x03\x02\x02\x02 \xC2\x03\x02\x02\x02" +
|
|
1130
|
+
"\"\xCA\x03\x02\x02\x02$\xD1\x03\x02\x02\x02&\xD8\x03\x02\x02\x02(\xDD" +
|
|
1131
|
+
"\x03\x02\x02\x02*,\x05\x04\x03\x02+*\x03\x02\x02\x02,/\x03\x02\x02\x02" +
|
|
1132
|
+
"-+\x03\x02\x02\x02-.\x03\x02\x02\x02.\x03\x03\x02\x02\x02/-\x03\x02\x02" +
|
|
1133
|
+
"\x0201\x07\x03\x02\x021<\x05(\x15\x0224\x05\x06\x04\x0232\x03\x02\x02" +
|
|
1134
|
+
"\x0234\x03\x02\x02\x024=\x03\x02\x02\x0258\x05\b\x05\x0268\x05\n\x06\x02" +
|
|
1135
|
+
"75\x03\x02\x02\x0276\x03\x02\x02\x028;\x03\x02\x02\x0297\x03\x02\x02\x02" +
|
|
1136
|
+
"9:\x03\x02\x02\x02:=\x03\x02\x02\x02;9\x03\x02\x02\x02<3\x03\x02\x02\x02" +
|
|
1137
|
+
"<9\x03\x02\x02\x02=\x05\x03\x02\x02\x02>@\x05&\x14\x02?>\x03\x02\x02\x02" +
|
|
1138
|
+
"?@\x03\x02\x02\x02@A\x03\x02\x02\x02AB\x07\x0E\x02\x02BC\x05(\x15\x02" +
|
|
1139
|
+
"CG\x05\x16\f\x02DF\x05\x18\r\x02ED\x03\x02\x02\x02FI\x03\x02\x02\x02G" +
|
|
1140
|
+
"E\x03\x02\x02\x02GH\x03\x02\x02\x02HN\x03\x02\x02\x02IG\x03\x02\x02\x02" +
|
|
1141
|
+
"JM\x05\b\x05\x02KM\x05\n\x06\x02LJ\x03\x02\x02\x02LK\x03\x02\x02\x02M" +
|
|
1142
|
+
"P\x03\x02\x02\x02NL\x03\x02\x02\x02NO\x03\x02\x02\x02O\x07\x03\x02\x02" +
|
|
1143
|
+
"\x02PN\x03\x02\x02\x02QS\x05&\x14\x02RQ\x03\x02\x02\x02RS\x03\x02\x02" +
|
|
1144
|
+
"\x02ST\x03\x02\x02\x02TU\x07\x04\x02\x02UV\x05(\x15\x02VW\x05\x14\v\x02" +
|
|
1145
|
+
"W\t\x03\x02\x02\x02XZ\x05&\x14\x02YX\x03\x02\x02\x02YZ\x03\x02\x02\x02" +
|
|
1146
|
+
"Z[\x03\x02\x02\x02[\\\x07\x05\x02\x02\\]\x05(\x15\x02]^\x05\x14\v\x02" +
|
|
1147
|
+
"^_\x05\f\x07\x02_\v\x03\x02\x02\x02`a\x07\r\x02\x02ac\x05\x0E\b\x02bd" +
|
|
1148
|
+
"\x05\x10\t\x02cb\x03\x02\x02\x02de\x03\x02\x02\x02ec\x03\x02\x02\x02e" +
|
|
1149
|
+
"f\x03\x02\x02\x02f\r\x03\x02\x02\x02gh\x05\x10\t\x02h\x0F\x03\x02\x02" +
|
|
1150
|
+
"\x02ik\x07\x0F\x02\x02jl\x05\x12\n\x02kj\x03\x02\x02\x02lm\x03\x02\x02" +
|
|
1151
|
+
"\x02mk\x03\x02\x02\x02mn\x03\x02\x02\x02nw\x03\x02\x02\x02oq\x07\x0F\x02" +
|
|
1152
|
+
"\x02pr\x05\x12\n\x02qp\x03\x02\x02\x02rs\x03\x02\x02\x02sq\x03\x02\x02" +
|
|
1153
|
+
"\x02st\x03\x02\x02\x02tv\x03\x02\x02\x02uo\x03\x02\x02\x02vy\x03\x02\x02" +
|
|
1154
|
+
"\x02wu\x03\x02\x02\x02wx\x03\x02\x02\x02xz\x03\x02\x02\x02yw\x03\x02\x02" +
|
|
1155
|
+
"\x02z{\x07\x0F\x02\x02{\x11\x03\x02\x02\x02|}\x05(\x15\x02}\x13\x03\x02" +
|
|
1156
|
+
"\x02\x02~\x82\x05\x16\f\x02\x7F\x81\x05\x18\r\x02\x80\x7F\x03\x02\x02" +
|
|
1157
|
+
"\x02\x81\x84\x03\x02\x02\x02\x82\x80\x03\x02\x02\x02\x82\x83\x03\x02\x02" +
|
|
1158
|
+
"\x02\x83\x85\x03\x02\x02\x02\x84\x82\x03\x02\x02\x02\x85\x89\x05\x1A\x0E" +
|
|
1159
|
+
"\x02\x86\x88\x05\x1C\x0F\x02\x87\x86\x03\x02\x02\x02\x88\x8B\x03\x02\x02" +
|
|
1160
|
+
"\x02\x89\x87\x03\x02\x02\x02\x89\x8A\x03\x02\x02\x02\x8A\x8C\x03\x02\x02" +
|
|
1161
|
+
"\x02\x8B\x89\x03\x02\x02\x02\x8C\x90\x05\x1E\x10\x02\x8D\x8F\x05 \x11" +
|
|
1162
|
+
"\x02\x8E\x8D\x03\x02\x02\x02\x8F\x92\x03\x02\x02\x02\x90\x8E\x03\x02\x02" +
|
|
1163
|
+
"\x02\x90\x91\x03\x02\x02\x02\x91\x96\x03\x02\x02\x02\x92\x90\x03\x02\x02" +
|
|
1164
|
+
"\x02\x93\x95\x05\"\x12\x02\x94\x93\x03\x02\x02\x02\x95\x98\x03\x02\x02" +
|
|
1165
|
+
"\x02\x96\x94\x03\x02\x02\x02\x96\x97\x03\x02\x02\x02\x97\x15\x03\x02\x02" +
|
|
1166
|
+
"\x02\x98\x96\x03\x02\x02\x02\x99\x9B\x05&\x14\x02\x9A\x99\x03\x02\x02" +
|
|
1167
|
+
"\x02\x9A\x9B\x03\x02\x02\x02\x9B\x9C\x03\x02\x02\x02\x9C\x9D\x07\x06\x02" +
|
|
1168
|
+
"\x02\x9D\x9F\x05(\x15\x02\x9E\xA0\x05$\x13\x02\x9F\x9E\x03\x02\x02\x02" +
|
|
1169
|
+
"\x9F\xA0\x03\x02\x02\x02\xA0\x17\x03\x02\x02\x02\xA1\xA3\x05&\x14\x02" +
|
|
1170
|
+
"\xA2\xA1\x03\x02\x02\x02\xA2\xA3\x03\x02\x02\x02\xA3\xA4\x03\x02\x02\x02" +
|
|
1171
|
+
"\xA4\xA5\x07\x07\x02\x02\xA5\xA7\x05(\x15\x02\xA6\xA8\x05$\x13\x02\xA7" +
|
|
1172
|
+
"\xA6\x03\x02\x02\x02\xA7\xA8\x03\x02\x02\x02\xA8\x19\x03\x02\x02\x02\xA9" +
|
|
1173
|
+
"\xAB\x05&\x14\x02\xAA\xA9\x03\x02\x02\x02\xAA\xAB\x03\x02\x02\x02\xAB" +
|
|
1174
|
+
"\xAC\x03\x02\x02\x02\xAC\xAD\x07\b\x02\x02\xAD\xAF\x05(\x15\x02\xAE\xB0" +
|
|
1175
|
+
"\x05$\x13\x02\xAF\xAE\x03\x02\x02\x02\xAF\xB0\x03\x02\x02\x02\xB0\x1B" +
|
|
1176
|
+
"\x03\x02\x02\x02\xB1\xB3\x05&\x14\x02\xB2\xB1\x03\x02\x02\x02\xB2\xB3" +
|
|
1177
|
+
"\x03\x02\x02\x02\xB3\xB4\x03\x02\x02\x02\xB4\xB5\x07\t\x02\x02\xB5\xB7" +
|
|
1178
|
+
"\x05(\x15\x02\xB6\xB8\x05$\x13\x02\xB7\xB6\x03\x02\x02\x02\xB7\xB8\x03" +
|
|
1179
|
+
"\x02\x02\x02\xB8\x1D\x03\x02\x02\x02\xB9\xBB\x05&\x14\x02\xBA\xB9\x03" +
|
|
1180
|
+
"\x02\x02\x02\xBA\xBB\x03\x02\x02\x02\xBB\xBC\x03\x02\x02\x02\xBC\xBD\x07" +
|
|
1181
|
+
"\n\x02\x02\xBD\xBF\x05(\x15\x02\xBE\xC0\x05$\x13\x02\xBF\xBE\x03\x02\x02" +
|
|
1182
|
+
"\x02\xBF\xC0\x03\x02\x02\x02\xC0\x1F\x03\x02\x02\x02\xC1\xC3\x05&\x14" +
|
|
1183
|
+
"\x02\xC2\xC1\x03\x02\x02\x02\xC2\xC3\x03\x02\x02\x02\xC3\xC4\x03\x02\x02" +
|
|
1184
|
+
"\x02\xC4\xC5\x07\v\x02\x02\xC5\xC7\x05(\x15\x02\xC6\xC8\x05$\x13\x02\xC7" +
|
|
1185
|
+
"\xC6\x03\x02\x02\x02\xC7\xC8\x03\x02\x02\x02\xC8!\x03\x02\x02\x02\xC9" +
|
|
1186
|
+
"\xCB\x05&\x14\x02\xCA\xC9\x03\x02\x02\x02\xCA\xCB\x03\x02\x02\x02\xCB" +
|
|
1187
|
+
"\xCC\x03\x02\x02\x02\xCC\xCD\x07\f\x02\x02\xCD\xCF\x05(\x15\x02\xCE\xD0" +
|
|
1188
|
+
"\x05$\x13\x02\xCF\xCE\x03\x02\x02\x02\xCF\xD0\x03\x02\x02\x02\xD0#\x03" +
|
|
1189
|
+
"\x02\x02\x02\xD1\xD3\x07\x15\x02\x02\xD2\xD4\x07\x16\x02\x02\xD3\xD2\x03" +
|
|
1190
|
+
"\x02\x02\x02\xD3\xD4\x03\x02\x02\x02\xD4\xD5\x03\x02\x02\x02\xD5\xD6\x07" +
|
|
1191
|
+
"\x15\x02\x02\xD6%\x03\x02\x02\x02\xD7\xD9\x07\x10\x02\x02\xD8\xD7\x03" +
|
|
1192
|
+
"\x02\x02\x02\xD9\xDA\x03\x02\x02\x02\xDA\xD8\x03\x02\x02\x02\xDA\xDB\x03" +
|
|
1193
|
+
"\x02\x02\x02\xDB\'\x03\x02\x02\x02\xDC\xDE\x07\x12\x02\x02\xDD\xDC\x03" +
|
|
1194
|
+
"\x02\x02\x02\xDE\xDF\x03\x02\x02\x02\xDF\xDD\x03\x02\x02\x02\xDF\xE0\x03" +
|
|
1195
|
+
"\x02\x02\x02\xE0)\x03\x02\x02\x02&-379<?GLNRYemsw\x82\x89\x90\x96\x9A" +
|
|
1196
|
+
"\x9F\xA2\xA7\xAA\xAF\xB2\xB7\xBA\xBF\xC2\xC7\xCA\xCF\xD3\xDA\xDF";
|
|
1197
|
+
class FeatureFileContext extends ParserRuleContext_1.ParserRuleContext {
|
|
1198
|
+
feature(i) {
|
|
1199
|
+
if (i === undefined) {
|
|
1200
|
+
return this.getRuleContexts(FeatureContext);
|
|
1201
|
+
}
|
|
1202
|
+
else {
|
|
1203
|
+
return this.getRuleContext(i, FeatureContext);
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
constructor(parent, invokingState) {
|
|
1207
|
+
super(parent, invokingState);
|
|
1208
|
+
}
|
|
1209
|
+
// @Override
|
|
1210
|
+
get ruleIndex() { return GherkinParser.RULE_featureFile; }
|
|
1211
|
+
// @Override
|
|
1212
|
+
accept(visitor) {
|
|
1213
|
+
if (visitor.visitFeatureFile) {
|
|
1214
|
+
return visitor.visitFeatureFile(this);
|
|
1215
|
+
}
|
|
1216
|
+
else {
|
|
1217
|
+
return visitor.visitChildren(this);
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
}
|
|
1221
|
+
exports.FeatureFileContext = FeatureFileContext;
|
|
1222
|
+
class FeatureContext extends ParserRuleContext_1.ParserRuleContext {
|
|
1223
|
+
FEATURE() { return this.getToken(GherkinParser.FEATURE, 0); }
|
|
1224
|
+
contentText() {
|
|
1225
|
+
return this.getRuleContext(0, ContentTextContext);
|
|
1226
|
+
}
|
|
1227
|
+
background() {
|
|
1228
|
+
return this.tryGetRuleContext(0, BackgroundContext);
|
|
1229
|
+
}
|
|
1230
|
+
scenario(i) {
|
|
1231
|
+
if (i === undefined) {
|
|
1232
|
+
return this.getRuleContexts(ScenarioContext);
|
|
1233
|
+
}
|
|
1234
|
+
else {
|
|
1235
|
+
return this.getRuleContext(i, ScenarioContext);
|
|
1236
|
+
}
|
|
1237
|
+
}
|
|
1238
|
+
scenarioOutline(i) {
|
|
1239
|
+
if (i === undefined) {
|
|
1240
|
+
return this.getRuleContexts(ScenarioOutlineContext);
|
|
1241
|
+
}
|
|
1242
|
+
else {
|
|
1243
|
+
return this.getRuleContext(i, ScenarioOutlineContext);
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1246
|
+
constructor(parent, invokingState) {
|
|
1247
|
+
super(parent, invokingState);
|
|
1248
|
+
}
|
|
1249
|
+
// @Override
|
|
1250
|
+
get ruleIndex() { return GherkinParser.RULE_feature; }
|
|
1251
|
+
// @Override
|
|
1252
|
+
accept(visitor) {
|
|
1253
|
+
if (visitor.visitFeature) {
|
|
1254
|
+
return visitor.visitFeature(this);
|
|
1255
|
+
}
|
|
1256
|
+
else {
|
|
1257
|
+
return visitor.visitChildren(this);
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1261
|
+
exports.FeatureContext = FeatureContext;
|
|
1262
|
+
class BackgroundContext extends ParserRuleContext_1.ParserRuleContext {
|
|
1263
|
+
BACKGROUND() { return this.getToken(GherkinParser.BACKGROUND, 0); }
|
|
1264
|
+
contentText() {
|
|
1265
|
+
return this.getRuleContext(0, ContentTextContext);
|
|
1266
|
+
}
|
|
1267
|
+
givenStep() {
|
|
1268
|
+
return this.getRuleContext(0, GivenStepContext);
|
|
1269
|
+
}
|
|
1270
|
+
tags() {
|
|
1271
|
+
return this.tryGetRuleContext(0, TagsContext);
|
|
1272
|
+
}
|
|
1273
|
+
andGivenStep(i) {
|
|
1274
|
+
if (i === undefined) {
|
|
1275
|
+
return this.getRuleContexts(AndGivenStepContext);
|
|
1276
|
+
}
|
|
1277
|
+
else {
|
|
1278
|
+
return this.getRuleContext(i, AndGivenStepContext);
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
scenario(i) {
|
|
1282
|
+
if (i === undefined) {
|
|
1283
|
+
return this.getRuleContexts(ScenarioContext);
|
|
1284
|
+
}
|
|
1285
|
+
else {
|
|
1286
|
+
return this.getRuleContext(i, ScenarioContext);
|
|
1287
|
+
}
|
|
1288
|
+
}
|
|
1289
|
+
scenarioOutline(i) {
|
|
1290
|
+
if (i === undefined) {
|
|
1291
|
+
return this.getRuleContexts(ScenarioOutlineContext);
|
|
1292
|
+
}
|
|
1293
|
+
else {
|
|
1294
|
+
return this.getRuleContext(i, ScenarioOutlineContext);
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
constructor(parent, invokingState) {
|
|
1298
|
+
super(parent, invokingState);
|
|
1299
|
+
}
|
|
1300
|
+
// @Override
|
|
1301
|
+
get ruleIndex() { return GherkinParser.RULE_background; }
|
|
1302
|
+
// @Override
|
|
1303
|
+
accept(visitor) {
|
|
1304
|
+
if (visitor.visitBackground) {
|
|
1305
|
+
return visitor.visitBackground(this);
|
|
1306
|
+
}
|
|
1307
|
+
else {
|
|
1308
|
+
return visitor.visitChildren(this);
|
|
1309
|
+
}
|
|
1310
|
+
}
|
|
1311
|
+
}
|
|
1312
|
+
exports.BackgroundContext = BackgroundContext;
|
|
1313
|
+
class ScenarioContext extends ParserRuleContext_1.ParserRuleContext {
|
|
1314
|
+
SCENARIO() { return this.getToken(GherkinParser.SCENARIO, 0); }
|
|
1315
|
+
contentText() {
|
|
1316
|
+
return this.getRuleContext(0, ContentTextContext);
|
|
1317
|
+
}
|
|
1318
|
+
step() {
|
|
1319
|
+
return this.getRuleContext(0, StepContext);
|
|
1320
|
+
}
|
|
1321
|
+
tags() {
|
|
1322
|
+
return this.tryGetRuleContext(0, TagsContext);
|
|
1323
|
+
}
|
|
1324
|
+
constructor(parent, invokingState) {
|
|
1325
|
+
super(parent, invokingState);
|
|
1326
|
+
}
|
|
1327
|
+
// @Override
|
|
1328
|
+
get ruleIndex() { return GherkinParser.RULE_scenario; }
|
|
1329
|
+
// @Override
|
|
1330
|
+
accept(visitor) {
|
|
1331
|
+
if (visitor.visitScenario) {
|
|
1332
|
+
return visitor.visitScenario(this);
|
|
1333
|
+
}
|
|
1334
|
+
else {
|
|
1335
|
+
return visitor.visitChildren(this);
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1338
|
+
}
|
|
1339
|
+
exports.ScenarioContext = ScenarioContext;
|
|
1340
|
+
class ScenarioOutlineContext extends ParserRuleContext_1.ParserRuleContext {
|
|
1341
|
+
SCENARIO_OUTLINE() { return this.getToken(GherkinParser.SCENARIO_OUTLINE, 0); }
|
|
1342
|
+
contentText() {
|
|
1343
|
+
return this.getRuleContext(0, ContentTextContext);
|
|
1344
|
+
}
|
|
1345
|
+
step() {
|
|
1346
|
+
return this.getRuleContext(0, StepContext);
|
|
1347
|
+
}
|
|
1348
|
+
examplesBlock() {
|
|
1349
|
+
return this.getRuleContext(0, ExamplesBlockContext);
|
|
1350
|
+
}
|
|
1351
|
+
tags() {
|
|
1352
|
+
return this.tryGetRuleContext(0, TagsContext);
|
|
1353
|
+
}
|
|
1354
|
+
constructor(parent, invokingState) {
|
|
1355
|
+
super(parent, invokingState);
|
|
1356
|
+
}
|
|
1357
|
+
// @Override
|
|
1358
|
+
get ruleIndex() { return GherkinParser.RULE_scenarioOutline; }
|
|
1359
|
+
// @Override
|
|
1360
|
+
accept(visitor) {
|
|
1361
|
+
if (visitor.visitScenarioOutline) {
|
|
1362
|
+
return visitor.visitScenarioOutline(this);
|
|
1363
|
+
}
|
|
1364
|
+
else {
|
|
1365
|
+
return visitor.visitChildren(this);
|
|
1366
|
+
}
|
|
1367
|
+
}
|
|
1368
|
+
}
|
|
1369
|
+
exports.ScenarioOutlineContext = ScenarioOutlineContext;
|
|
1370
|
+
class ExamplesBlockContext extends ParserRuleContext_1.ParserRuleContext {
|
|
1371
|
+
EXAMPLES() { return this.getToken(GherkinParser.EXAMPLES, 0); }
|
|
1372
|
+
tableHeader() {
|
|
1373
|
+
return this.getRuleContext(0, TableHeaderContext);
|
|
1374
|
+
}
|
|
1375
|
+
tableRow(i) {
|
|
1376
|
+
if (i === undefined) {
|
|
1377
|
+
return this.getRuleContexts(TableRowContext);
|
|
1378
|
+
}
|
|
1379
|
+
else {
|
|
1380
|
+
return this.getRuleContext(i, TableRowContext);
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1383
|
+
constructor(parent, invokingState) {
|
|
1384
|
+
super(parent, invokingState);
|
|
1385
|
+
}
|
|
1386
|
+
// @Override
|
|
1387
|
+
get ruleIndex() { return GherkinParser.RULE_examplesBlock; }
|
|
1388
|
+
// @Override
|
|
1389
|
+
accept(visitor) {
|
|
1390
|
+
if (visitor.visitExamplesBlock) {
|
|
1391
|
+
return visitor.visitExamplesBlock(this);
|
|
1392
|
+
}
|
|
1393
|
+
else {
|
|
1394
|
+
return visitor.visitChildren(this);
|
|
1395
|
+
}
|
|
1396
|
+
}
|
|
1397
|
+
}
|
|
1398
|
+
exports.ExamplesBlockContext = ExamplesBlockContext;
|
|
1399
|
+
class TableHeaderContext extends ParserRuleContext_1.ParserRuleContext {
|
|
1400
|
+
tableRow() {
|
|
1401
|
+
return this.getRuleContext(0, TableRowContext);
|
|
1402
|
+
}
|
|
1403
|
+
constructor(parent, invokingState) {
|
|
1404
|
+
super(parent, invokingState);
|
|
1405
|
+
}
|
|
1406
|
+
// @Override
|
|
1407
|
+
get ruleIndex() { return GherkinParser.RULE_tableHeader; }
|
|
1408
|
+
// @Override
|
|
1409
|
+
accept(visitor) {
|
|
1410
|
+
if (visitor.visitTableHeader) {
|
|
1411
|
+
return visitor.visitTableHeader(this);
|
|
1412
|
+
}
|
|
1413
|
+
else {
|
|
1414
|
+
return visitor.visitChildren(this);
|
|
1415
|
+
}
|
|
1416
|
+
}
|
|
1417
|
+
}
|
|
1418
|
+
exports.TableHeaderContext = TableHeaderContext;
|
|
1419
|
+
class TableRowContext extends ParserRuleContext_1.ParserRuleContext {
|
|
1420
|
+
PIPE(i) {
|
|
1421
|
+
if (i === undefined) {
|
|
1422
|
+
return this.getTokens(GherkinParser.PIPE);
|
|
1423
|
+
}
|
|
1424
|
+
else {
|
|
1425
|
+
return this.getToken(GherkinParser.PIPE, i);
|
|
1426
|
+
}
|
|
1427
|
+
}
|
|
1428
|
+
cell(i) {
|
|
1429
|
+
if (i === undefined) {
|
|
1430
|
+
return this.getRuleContexts(CellContext);
|
|
1431
|
+
}
|
|
1432
|
+
else {
|
|
1433
|
+
return this.getRuleContext(i, CellContext);
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1436
|
+
constructor(parent, invokingState) {
|
|
1437
|
+
super(parent, invokingState);
|
|
1438
|
+
}
|
|
1439
|
+
// @Override
|
|
1440
|
+
get ruleIndex() { return GherkinParser.RULE_tableRow; }
|
|
1441
|
+
// @Override
|
|
1442
|
+
accept(visitor) {
|
|
1443
|
+
if (visitor.visitTableRow) {
|
|
1444
|
+
return visitor.visitTableRow(this);
|
|
1445
|
+
}
|
|
1446
|
+
else {
|
|
1447
|
+
return visitor.visitChildren(this);
|
|
1448
|
+
}
|
|
1449
|
+
}
|
|
1450
|
+
}
|
|
1451
|
+
exports.TableRowContext = TableRowContext;
|
|
1452
|
+
class CellContext extends ParserRuleContext_1.ParserRuleContext {
|
|
1453
|
+
contentText() {
|
|
1454
|
+
return this.getRuleContext(0, ContentTextContext);
|
|
1455
|
+
}
|
|
1456
|
+
constructor(parent, invokingState) {
|
|
1457
|
+
super(parent, invokingState);
|
|
1458
|
+
}
|
|
1459
|
+
// @Override
|
|
1460
|
+
get ruleIndex() { return GherkinParser.RULE_cell; }
|
|
1461
|
+
// @Override
|
|
1462
|
+
accept(visitor) {
|
|
1463
|
+
if (visitor.visitCell) {
|
|
1464
|
+
return visitor.visitCell(this);
|
|
1465
|
+
}
|
|
1466
|
+
else {
|
|
1467
|
+
return visitor.visitChildren(this);
|
|
1468
|
+
}
|
|
1469
|
+
}
|
|
1470
|
+
}
|
|
1471
|
+
exports.CellContext = CellContext;
|
|
1472
|
+
class StepContext extends ParserRuleContext_1.ParserRuleContext {
|
|
1473
|
+
givenStep() {
|
|
1474
|
+
return this.getRuleContext(0, GivenStepContext);
|
|
1475
|
+
}
|
|
1476
|
+
whenStep() {
|
|
1477
|
+
return this.getRuleContext(0, WhenStepContext);
|
|
1478
|
+
}
|
|
1479
|
+
thenStep() {
|
|
1480
|
+
return this.getRuleContext(0, ThenStepContext);
|
|
1481
|
+
}
|
|
1482
|
+
andGivenStep(i) {
|
|
1483
|
+
if (i === undefined) {
|
|
1484
|
+
return this.getRuleContexts(AndGivenStepContext);
|
|
1485
|
+
}
|
|
1486
|
+
else {
|
|
1487
|
+
return this.getRuleContext(i, AndGivenStepContext);
|
|
1488
|
+
}
|
|
1489
|
+
}
|
|
1490
|
+
andWhenStep(i) {
|
|
1491
|
+
if (i === undefined) {
|
|
1492
|
+
return this.getRuleContexts(AndWhenStepContext);
|
|
1493
|
+
}
|
|
1494
|
+
else {
|
|
1495
|
+
return this.getRuleContext(i, AndWhenStepContext);
|
|
1496
|
+
}
|
|
1497
|
+
}
|
|
1498
|
+
andStep(i) {
|
|
1499
|
+
if (i === undefined) {
|
|
1500
|
+
return this.getRuleContexts(AndStepContext);
|
|
1501
|
+
}
|
|
1502
|
+
else {
|
|
1503
|
+
return this.getRuleContext(i, AndStepContext);
|
|
1504
|
+
}
|
|
1505
|
+
}
|
|
1506
|
+
butStep(i) {
|
|
1507
|
+
if (i === undefined) {
|
|
1508
|
+
return this.getRuleContexts(ButStepContext);
|
|
1509
|
+
}
|
|
1510
|
+
else {
|
|
1511
|
+
return this.getRuleContext(i, ButStepContext);
|
|
1512
|
+
}
|
|
1513
|
+
}
|
|
1514
|
+
constructor(parent, invokingState) {
|
|
1515
|
+
super(parent, invokingState);
|
|
1516
|
+
}
|
|
1517
|
+
// @Override
|
|
1518
|
+
get ruleIndex() { return GherkinParser.RULE_step; }
|
|
1519
|
+
// @Override
|
|
1520
|
+
accept(visitor) {
|
|
1521
|
+
if (visitor.visitStep) {
|
|
1522
|
+
return visitor.visitStep(this);
|
|
1523
|
+
}
|
|
1524
|
+
else {
|
|
1525
|
+
return visitor.visitChildren(this);
|
|
1526
|
+
}
|
|
1527
|
+
}
|
|
1528
|
+
}
|
|
1529
|
+
exports.StepContext = StepContext;
|
|
1530
|
+
class GivenStepContext extends ParserRuleContext_1.ParserRuleContext {
|
|
1531
|
+
GIVEN() { return this.getToken(GherkinParser.GIVEN, 0); }
|
|
1532
|
+
contentText() {
|
|
1533
|
+
return this.getRuleContext(0, ContentTextContext);
|
|
1534
|
+
}
|
|
1535
|
+
tags() {
|
|
1536
|
+
return this.tryGetRuleContext(0, TagsContext);
|
|
1537
|
+
}
|
|
1538
|
+
docString() {
|
|
1539
|
+
return this.tryGetRuleContext(0, DocStringContext);
|
|
1540
|
+
}
|
|
1541
|
+
constructor(parent, invokingState) {
|
|
1542
|
+
super(parent, invokingState);
|
|
1543
|
+
}
|
|
1544
|
+
// @Override
|
|
1545
|
+
get ruleIndex() { return GherkinParser.RULE_givenStep; }
|
|
1546
|
+
// @Override
|
|
1547
|
+
accept(visitor) {
|
|
1548
|
+
if (visitor.visitGivenStep) {
|
|
1549
|
+
return visitor.visitGivenStep(this);
|
|
1550
|
+
}
|
|
1551
|
+
else {
|
|
1552
|
+
return visitor.visitChildren(this);
|
|
1553
|
+
}
|
|
1554
|
+
}
|
|
1555
|
+
}
|
|
1556
|
+
exports.GivenStepContext = GivenStepContext;
|
|
1557
|
+
class AndGivenStepContext extends ParserRuleContext_1.ParserRuleContext {
|
|
1558
|
+
AND_GIVEN() { return this.getToken(GherkinParser.AND_GIVEN, 0); }
|
|
1559
|
+
contentText() {
|
|
1560
|
+
return this.getRuleContext(0, ContentTextContext);
|
|
1561
|
+
}
|
|
1562
|
+
tags() {
|
|
1563
|
+
return this.tryGetRuleContext(0, TagsContext);
|
|
1564
|
+
}
|
|
1565
|
+
docString() {
|
|
1566
|
+
return this.tryGetRuleContext(0, DocStringContext);
|
|
1567
|
+
}
|
|
1568
|
+
constructor(parent, invokingState) {
|
|
1569
|
+
super(parent, invokingState);
|
|
1570
|
+
}
|
|
1571
|
+
// @Override
|
|
1572
|
+
get ruleIndex() { return GherkinParser.RULE_andGivenStep; }
|
|
1573
|
+
// @Override
|
|
1574
|
+
accept(visitor) {
|
|
1575
|
+
if (visitor.visitAndGivenStep) {
|
|
1576
|
+
return visitor.visitAndGivenStep(this);
|
|
1577
|
+
}
|
|
1578
|
+
else {
|
|
1579
|
+
return visitor.visitChildren(this);
|
|
1580
|
+
}
|
|
1581
|
+
}
|
|
1582
|
+
}
|
|
1583
|
+
exports.AndGivenStepContext = AndGivenStepContext;
|
|
1584
|
+
class WhenStepContext extends ParserRuleContext_1.ParserRuleContext {
|
|
1585
|
+
WHEN() { return this.getToken(GherkinParser.WHEN, 0); }
|
|
1586
|
+
contentText() {
|
|
1587
|
+
return this.getRuleContext(0, ContentTextContext);
|
|
1588
|
+
}
|
|
1589
|
+
tags() {
|
|
1590
|
+
return this.tryGetRuleContext(0, TagsContext);
|
|
1591
|
+
}
|
|
1592
|
+
docString() {
|
|
1593
|
+
return this.tryGetRuleContext(0, DocStringContext);
|
|
1594
|
+
}
|
|
1595
|
+
constructor(parent, invokingState) {
|
|
1596
|
+
super(parent, invokingState);
|
|
1597
|
+
}
|
|
1598
|
+
// @Override
|
|
1599
|
+
get ruleIndex() { return GherkinParser.RULE_whenStep; }
|
|
1600
|
+
// @Override
|
|
1601
|
+
accept(visitor) {
|
|
1602
|
+
if (visitor.visitWhenStep) {
|
|
1603
|
+
return visitor.visitWhenStep(this);
|
|
1604
|
+
}
|
|
1605
|
+
else {
|
|
1606
|
+
return visitor.visitChildren(this);
|
|
1607
|
+
}
|
|
1608
|
+
}
|
|
1609
|
+
}
|
|
1610
|
+
exports.WhenStepContext = WhenStepContext;
|
|
1611
|
+
class AndWhenStepContext extends ParserRuleContext_1.ParserRuleContext {
|
|
1612
|
+
AND_WHEN() { return this.getToken(GherkinParser.AND_WHEN, 0); }
|
|
1613
|
+
contentText() {
|
|
1614
|
+
return this.getRuleContext(0, ContentTextContext);
|
|
1615
|
+
}
|
|
1616
|
+
tags() {
|
|
1617
|
+
return this.tryGetRuleContext(0, TagsContext);
|
|
1618
|
+
}
|
|
1619
|
+
docString() {
|
|
1620
|
+
return this.tryGetRuleContext(0, DocStringContext);
|
|
1621
|
+
}
|
|
1622
|
+
constructor(parent, invokingState) {
|
|
1623
|
+
super(parent, invokingState);
|
|
1624
|
+
}
|
|
1625
|
+
// @Override
|
|
1626
|
+
get ruleIndex() { return GherkinParser.RULE_andWhenStep; }
|
|
1627
|
+
// @Override
|
|
1628
|
+
accept(visitor) {
|
|
1629
|
+
if (visitor.visitAndWhenStep) {
|
|
1630
|
+
return visitor.visitAndWhenStep(this);
|
|
1631
|
+
}
|
|
1632
|
+
else {
|
|
1633
|
+
return visitor.visitChildren(this);
|
|
1634
|
+
}
|
|
1635
|
+
}
|
|
1636
|
+
}
|
|
1637
|
+
exports.AndWhenStepContext = AndWhenStepContext;
|
|
1638
|
+
class ThenStepContext extends ParserRuleContext_1.ParserRuleContext {
|
|
1639
|
+
THEN() { return this.getToken(GherkinParser.THEN, 0); }
|
|
1640
|
+
contentText() {
|
|
1641
|
+
return this.getRuleContext(0, ContentTextContext);
|
|
1642
|
+
}
|
|
1643
|
+
tags() {
|
|
1644
|
+
return this.tryGetRuleContext(0, TagsContext);
|
|
1645
|
+
}
|
|
1646
|
+
docString() {
|
|
1647
|
+
return this.tryGetRuleContext(0, DocStringContext);
|
|
1648
|
+
}
|
|
1649
|
+
constructor(parent, invokingState) {
|
|
1650
|
+
super(parent, invokingState);
|
|
1651
|
+
}
|
|
1652
|
+
// @Override
|
|
1653
|
+
get ruleIndex() { return GherkinParser.RULE_thenStep; }
|
|
1654
|
+
// @Override
|
|
1655
|
+
accept(visitor) {
|
|
1656
|
+
if (visitor.visitThenStep) {
|
|
1657
|
+
return visitor.visitThenStep(this);
|
|
1658
|
+
}
|
|
1659
|
+
else {
|
|
1660
|
+
return visitor.visitChildren(this);
|
|
1661
|
+
}
|
|
1662
|
+
}
|
|
1663
|
+
}
|
|
1664
|
+
exports.ThenStepContext = ThenStepContext;
|
|
1665
|
+
class AndStepContext extends ParserRuleContext_1.ParserRuleContext {
|
|
1666
|
+
AND() { return this.getToken(GherkinParser.AND, 0); }
|
|
1667
|
+
contentText() {
|
|
1668
|
+
return this.getRuleContext(0, ContentTextContext);
|
|
1669
|
+
}
|
|
1670
|
+
tags() {
|
|
1671
|
+
return this.tryGetRuleContext(0, TagsContext);
|
|
1672
|
+
}
|
|
1673
|
+
docString() {
|
|
1674
|
+
return this.tryGetRuleContext(0, DocStringContext);
|
|
1675
|
+
}
|
|
1676
|
+
constructor(parent, invokingState) {
|
|
1677
|
+
super(parent, invokingState);
|
|
1678
|
+
}
|
|
1679
|
+
// @Override
|
|
1680
|
+
get ruleIndex() { return GherkinParser.RULE_andStep; }
|
|
1681
|
+
// @Override
|
|
1682
|
+
accept(visitor) {
|
|
1683
|
+
if (visitor.visitAndStep) {
|
|
1684
|
+
return visitor.visitAndStep(this);
|
|
1685
|
+
}
|
|
1686
|
+
else {
|
|
1687
|
+
return visitor.visitChildren(this);
|
|
1688
|
+
}
|
|
1689
|
+
}
|
|
1690
|
+
}
|
|
1691
|
+
exports.AndStepContext = AndStepContext;
|
|
1692
|
+
class ButStepContext extends ParserRuleContext_1.ParserRuleContext {
|
|
1693
|
+
BUT() { return this.getToken(GherkinParser.BUT, 0); }
|
|
1694
|
+
contentText() {
|
|
1695
|
+
return this.getRuleContext(0, ContentTextContext);
|
|
1696
|
+
}
|
|
1697
|
+
tags() {
|
|
1698
|
+
return this.tryGetRuleContext(0, TagsContext);
|
|
1699
|
+
}
|
|
1700
|
+
docString() {
|
|
1701
|
+
return this.tryGetRuleContext(0, DocStringContext);
|
|
1702
|
+
}
|
|
1703
|
+
constructor(parent, invokingState) {
|
|
1704
|
+
super(parent, invokingState);
|
|
1705
|
+
}
|
|
1706
|
+
// @Override
|
|
1707
|
+
get ruleIndex() { return GherkinParser.RULE_butStep; }
|
|
1708
|
+
// @Override
|
|
1709
|
+
accept(visitor) {
|
|
1710
|
+
if (visitor.visitButStep) {
|
|
1711
|
+
return visitor.visitButStep(this);
|
|
1712
|
+
}
|
|
1713
|
+
else {
|
|
1714
|
+
return visitor.visitChildren(this);
|
|
1715
|
+
}
|
|
1716
|
+
}
|
|
1717
|
+
}
|
|
1718
|
+
exports.ButStepContext = ButStepContext;
|
|
1719
|
+
class DocStringContext extends ParserRuleContext_1.ParserRuleContext {
|
|
1720
|
+
DOC_STRING_QUOT(i) {
|
|
1721
|
+
if (i === undefined) {
|
|
1722
|
+
return this.getTokens(GherkinParser.DOC_STRING_QUOT);
|
|
1723
|
+
}
|
|
1724
|
+
else {
|
|
1725
|
+
return this.getToken(GherkinParser.DOC_STRING_QUOT, i);
|
|
1726
|
+
}
|
|
1727
|
+
}
|
|
1728
|
+
DOC_STRING_TEXT() { return this.tryGetToken(GherkinParser.DOC_STRING_TEXT, 0); }
|
|
1729
|
+
constructor(parent, invokingState) {
|
|
1730
|
+
super(parent, invokingState);
|
|
1731
|
+
}
|
|
1732
|
+
// @Override
|
|
1733
|
+
get ruleIndex() { return GherkinParser.RULE_docString; }
|
|
1734
|
+
// @Override
|
|
1735
|
+
accept(visitor) {
|
|
1736
|
+
if (visitor.visitDocString) {
|
|
1737
|
+
return visitor.visitDocString(this);
|
|
1738
|
+
}
|
|
1739
|
+
else {
|
|
1740
|
+
return visitor.visitChildren(this);
|
|
1741
|
+
}
|
|
1742
|
+
}
|
|
1743
|
+
}
|
|
1744
|
+
exports.DocStringContext = DocStringContext;
|
|
1745
|
+
class TagsContext extends ParserRuleContext_1.ParserRuleContext {
|
|
1746
|
+
TAG(i) {
|
|
1747
|
+
if (i === undefined) {
|
|
1748
|
+
return this.getTokens(GherkinParser.TAG);
|
|
1749
|
+
}
|
|
1750
|
+
else {
|
|
1751
|
+
return this.getToken(GherkinParser.TAG, i);
|
|
1752
|
+
}
|
|
1753
|
+
}
|
|
1754
|
+
constructor(parent, invokingState) {
|
|
1755
|
+
super(parent, invokingState);
|
|
1756
|
+
}
|
|
1757
|
+
// @Override
|
|
1758
|
+
get ruleIndex() { return GherkinParser.RULE_tags; }
|
|
1759
|
+
// @Override
|
|
1760
|
+
accept(visitor) {
|
|
1761
|
+
if (visitor.visitTags) {
|
|
1762
|
+
return visitor.visitTags(this);
|
|
1763
|
+
}
|
|
1764
|
+
else {
|
|
1765
|
+
return visitor.visitChildren(this);
|
|
1766
|
+
}
|
|
1767
|
+
}
|
|
1768
|
+
}
|
|
1769
|
+
exports.TagsContext = TagsContext;
|
|
1770
|
+
class ContentTextContext extends ParserRuleContext_1.ParserRuleContext {
|
|
1771
|
+
TEXT_CHARACTER(i) {
|
|
1772
|
+
if (i === undefined) {
|
|
1773
|
+
return this.getTokens(GherkinParser.TEXT_CHARACTER);
|
|
1774
|
+
}
|
|
1775
|
+
else {
|
|
1776
|
+
return this.getToken(GherkinParser.TEXT_CHARACTER, i);
|
|
1777
|
+
}
|
|
1778
|
+
}
|
|
1779
|
+
constructor(parent, invokingState) {
|
|
1780
|
+
super(parent, invokingState);
|
|
1781
|
+
}
|
|
1782
|
+
// @Override
|
|
1783
|
+
get ruleIndex() { return GherkinParser.RULE_contentText; }
|
|
1784
|
+
// @Override
|
|
1785
|
+
accept(visitor) {
|
|
1786
|
+
if (visitor.visitContentText) {
|
|
1787
|
+
return visitor.visitContentText(this);
|
|
1788
|
+
}
|
|
1789
|
+
else {
|
|
1790
|
+
return visitor.visitChildren(this);
|
|
1791
|
+
}
|
|
1792
|
+
}
|
|
1793
|
+
}
|
|
1794
|
+
exports.ContentTextContext = ContentTextContext;
|
|
1795
|
+
//# sourceMappingURL=GherkinParser.js.map
|