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