-
Notifications
You must be signed in to change notification settings - Fork 16
/
FileContext.yml
900 lines (888 loc) · 26.7 KB
/
FileContext.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
### YamlMime:TSType
name: FileContext
uid: botbuilder-lg.FileContext
package: botbuilder-lg
summary: ''
fullName: FileContext
remarks: ''
isPreview: false
isDeprecated: false
type: class
constructors:
- name: 'FileContext(ParserRuleContext | undefined, number)'
uid: botbuilder-lg.FileContext.constructor
package: botbuilder-lg
summary: ''
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: >-
new FileContext(parent: ParserRuleContext | undefined, invokingState:
number)
parameters:
- id: parent
type: ParserRuleContext | undefined
description: ''
- id: invokingState
type: number
description: ''
properties:
- name: ruleIndex
uid: botbuilder-lg.FileContext.ruleIndex
package: botbuilder-lg
summary: ''
fullName: ruleIndex
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: number ruleIndex
return:
description: ''
type: number
inheritedProperties:
- name: altNumber
uid: botbuilder-lg.FileContext.altNumber
package: botbuilder-lg
summary: |
Set the outer alternative number for this context node. Default
implementation does nothing to avoid backing field overhead for
trees that don't need it. Create
a subclass of ParserRuleContext with backing field and set
option contextSuperClass.
@since 4.5.3
fullName: altNumber
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'altNumber: number'
return:
description: ''
type: number
inheritanceDescription: <b>Inherited From</b> RuleContext.altNumber
- name: childCount
uid: botbuilder-lg.FileContext.childCount
package: botbuilder-lg
summary: ''
fullName: childCount
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'childCount: number'
return:
description: ''
type: number
inheritanceDescription: <b>Inherited From</b> ParserRuleContext.childCount
- name: children
uid: botbuilder-lg.FileContext.children
package: botbuilder-lg
summary: |-
If we are debugging or building a parse tree for a visitor,
we need to track all of the tokens and rule invocations associated
with this rule's context. This is empty for parsing w/o tree constr.
operation because we don't the need to track the details about
how we parse this rule.
fullName: children
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'children?: ParseTree[]'
return:
description: ''
type: 'ParseTree[]'
inheritanceDescription: <b>Inherited From</b> ParserRuleContext.children
- name: exception
uid: botbuilder-lg.FileContext.exception
package: botbuilder-lg
summary: |-
The exception that forced this rule to return. If the rule successfully
completed, this is `undefined`.
fullName: exception
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'exception?: RecognitionException'
return:
description: ''
type: RecognitionException
inheritanceDescription: <b>Inherited From</b> ParserRuleContext.exception
- name: invokingState
uid: botbuilder-lg.FileContext.invokingState
package: botbuilder-lg
summary: ''
fullName: invokingState
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'invokingState: number'
return:
description: ''
type: number
inheritanceDescription: <b>Inherited From</b> RuleContext.invokingState
- name: isEmpty
uid: botbuilder-lg.FileContext.isEmpty
package: botbuilder-lg
summary: |-
A context is empty if there is no invoking state; meaning nobody called
current context.
fullName: isEmpty
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'isEmpty: boolean'
return:
description: ''
type: boolean
inheritanceDescription: <b>Inherited From</b> RuleContext.isEmpty
- name: parent
uid: botbuilder-lg.FileContext.parent
package: botbuilder-lg
summary: ''
fullName: parent
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'parent: ParserRuleContext | undefined'
return:
description: ''
type: ParserRuleContext | undefined
inheritanceDescription: <b>Inherited From</b> ParserRuleContext.parent
- name: payload
uid: botbuilder-lg.FileContext.payload
package: botbuilder-lg
summary: ''
fullName: payload
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'payload: RuleContext'
return:
description: ''
type: RuleContext
inheritanceDescription: <b>Inherited From</b> RuleContext.payload
- name: ruleContext
uid: botbuilder-lg.FileContext.ruleContext
package: botbuilder-lg
summary: ''
fullName: ruleContext
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'ruleContext: this'
return:
description: ''
type: this
inheritanceDescription: <b>Inherited From</b> ParserRuleContext.ruleContext
- name: sourceInterval
uid: botbuilder-lg.FileContext.sourceInterval
package: botbuilder-lg
summary: ''
fullName: sourceInterval
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'sourceInterval: Interval'
return:
description: ''
type: Interval
inheritanceDescription: <b>Inherited From</b> ParserRuleContext.sourceInterval
- name: start
uid: botbuilder-lg.FileContext.start
package: botbuilder-lg
summary: >-
Get the initial token in this context.
Note that the range from start to stop is inclusive, so for rules that do
not consume anything
(for example, zero length or error productions) this token may exceed
stop.
fullName: start
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'start: Token'
return:
description: ''
type: Token
inheritanceDescription: <b>Inherited From</b> ParserRuleContext.start
- name: stop
uid: botbuilder-lg.FileContext.stop
package: botbuilder-lg
summary: >-
Get the final token in this context.
Note that the range from start to stop is inclusive, so for rules that do
not consume anything
(for example, zero length or error productions) this token may precede
start.
fullName: stop
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'stop: Token | undefined'
return:
description: ''
type: Token | undefined
inheritanceDescription: <b>Inherited From</b> ParserRuleContext.stop
- name: text
uid: botbuilder-lg.FileContext.text
package: botbuilder-lg
summary: |
Return the combined text of all child nodes. This method only considers
tokens which have been added to the parse tree.
Since tokens on hidden channels (e.g. whitespace or comments) are not
added to the parse trees, they will not appear in the output of this
method.
fullName: text
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'text: string'
return:
description: ''
type: string
inheritanceDescription: <b>Inherited From</b> RuleContext.text
inheritedMethods:
- name: addAnyChild<T>(T)
uid: botbuilder-lg.FileContext.addAnyChild
package: botbuilder-lg
summary: |
Add a parse tree node to this as a child. Works for
internal and leaf nodes. Does not set parent link;
other add methods must do that. Other addChild methods
call this.
We cannot set the parent pointer of the incoming node
because the existing interfaces do not have a setParent()
method and I don't want to break backward compatibility for this.
@since 4.7
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function addAnyChild<T>(t: T): T'
parameters:
- id: t
type: T
description: ''
return:
description: ''
type: T
inheritanceDescription: <b>Inherited From</b> ParserRuleContext.addAnyChild
- name: addChild(RuleContext)
uid: botbuilder-lg.FileContext.addChild_1
package: botbuilder-lg
summary: ''
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function addChild(ruleInvocation: RuleContext)'
parameters:
- id: ruleInvocation
type: RuleContext
description: ''
inheritanceDescription: <b>Inherited From</b> ParserRuleContext.addChild
- name: addChild(TerminalNode)
uid: botbuilder-lg.FileContext.addChild
package: botbuilder-lg
summary: Add a token leaf node child and force its parent to be this node.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function addChild(t: TerminalNode)'
parameters:
- id: t
type: TerminalNode
description: ''
inheritanceDescription: <b>Inherited From</b> ParserRuleContext.addChild
- name: addChild(Token)
uid: botbuilder-lg.FileContext.addChild_2
package: botbuilder-lg
summary: >-
Add a child to this node based upon matchedToken. It
creates a TerminalNodeImpl rather than using
[Token)](xref:Parser%23createTerminalNode(ParserRuleContext%2C). I'm
leaving this
in for compatibility but the parser doesn't use this anymore.
remarks: ''
isPreview: false
isDeprecated: true
customDeprecatedMessage: Use another overload instead.
syntax:
content: 'function addChild(matchedToken: Token): TerminalNode'
parameters:
- id: matchedToken
type: Token
description: ''
return:
description: ''
type: TerminalNode
inheritanceDescription: <b>Inherited From</b> ParserRuleContext.addChild
- name: addErrorNode(ErrorNode)
uid: botbuilder-lg.FileContext.addErrorNode
package: botbuilder-lg
summary: Add an error node child and force its parent to be this node.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function addErrorNode(errorNode: ErrorNode): ErrorNode'
parameters:
- id: errorNode
type: ErrorNode
description: ''
return:
description: ''
type: ErrorNode
inheritanceDescription: <b>Inherited From</b> ParserRuleContext.addErrorNode
- name: addErrorNode(Token)
uid: botbuilder-lg.FileContext.addErrorNode_1
package: botbuilder-lg
summary: >-
Add a child to this node based upon badToken. It
creates a ErrorNode rather than using
[Token)](xref:Parser%23createErrorNode(ParserRuleContext%2C). I'm leaving
this
in for compatibility but the parser doesn't use this anymore.
remarks: ''
isPreview: false
isDeprecated: true
customDeprecatedMessage: Use another overload instead.
syntax:
content: 'function addErrorNode(badToken: Token): ErrorNode'
parameters:
- id: badToken
type: Token
description: ''
return:
description: ''
type: ErrorNode
inheritanceDescription: <b>Inherited From</b> ParserRuleContext.addErrorNode
- name: copyFrom(ParserRuleContext)
uid: botbuilder-lg.FileContext.copyFrom
package: botbuilder-lg
summary: |
COPY a ctx (I'm deliberately not using copy constructor) to avoid
confusion with creating node with parent. Does not copy children
(except error leaves).
This is used in the generated parser code to flip a generic XContext
node for rule X to a YContext for alt label Y. In that sense, it is not
really a generic copy function.
If we do an error sync() at start of a rule, we might add error nodes
to the generic XContext so this function must copy those nodes to the
YContext as well else they are lost!
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function copyFrom(ctx: ParserRuleContext)'
parameters:
- id: ctx
type: ParserRuleContext
description: ''
inheritanceDescription: <b>Inherited From</b> ParserRuleContext.copyFrom
- name: depth()
uid: botbuilder-lg.FileContext.depth
package: botbuilder-lg
summary: ''
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function depth(): number'
return:
description: ''
type: number
inheritanceDescription: <b>Inherited From</b> RuleContext.depth
- name: emptyContext()
uid: botbuilder-lg.FileContext.emptyContext
package: botbuilder-lg
summary: ''
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'static function emptyContext(): ParserRuleContext'
return:
description: ''
type: ParserRuleContext
inheritanceDescription: <b>Inherited From</b> ParserRuleContext.emptyContext
- name: getChild(number)
uid: botbuilder-lg.FileContext.getChild
package: botbuilder-lg
summary: ''
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function getChild(i: number): ParseTree'
parameters:
- id: i
type: number
description: ''
return:
description: ''
type: ParseTree
inheritanceDescription: <b>Inherited From</b> ParserRuleContext.getChild
- name: 'getChild<T>(number, { })'
uid: botbuilder-lg.FileContext.getChild_1
package: botbuilder-lg
summary: ''
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function getChild<T>(i: number, ctxType: { }): T'
parameters:
- id: i
type: number
description: ''
- id: ctxType
type: '{ }'
description: ''
return:
description: ''
type: T
inheritanceDescription: <b>Inherited From</b> ParserRuleContext.getChild
- name: 'getChildContext(RuleContext, number)'
uid: botbuilder-lg.FileContext.getChildContext
package: botbuilder-lg
summary: ''
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: >-
static function getChildContext(parent: RuleContext, invokingState:
number): RuleContext
parameters:
- id: parent
type: RuleContext
description: ''
- id: invokingState
type: number
description: ''
return:
description: ''
type: RuleContext
inheritanceDescription: <b>Inherited From</b> RuleContext.getChildContext
- name: 'getRuleContext<T>(number, { })'
uid: botbuilder-lg.FileContext.getRuleContext
package: botbuilder-lg
summary: ''
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function getRuleContext<T>(i: number, ctxType: { }): T'
parameters:
- id: i
type: number
description: ''
- id: ctxType
type: '{ }'
description: ''
return:
description: ''
type: T
inheritanceDescription: <b>Inherited From</b> ParserRuleContext.getRuleContext
- name: 'getRuleContexts<T>({ })'
uid: botbuilder-lg.FileContext.getRuleContexts
package: botbuilder-lg
summary: ''
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function getRuleContexts<T>(ctxType: { }): T[]'
parameters:
- id: ctxType
type: '{ }'
description: ''
return:
description: ''
type: 'T[]'
inheritanceDescription: <b>Inherited From</b> ParserRuleContext.getRuleContexts
- name: 'getToken(number, number)'
uid: botbuilder-lg.FileContext.getToken
package: botbuilder-lg
summary: ''
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function getToken(ttype: number, i: number): TerminalNode'
parameters:
- id: ttype
type: number
description: ''
- id: i
type: number
description: ''
return:
description: ''
type: TerminalNode
inheritanceDescription: <b>Inherited From</b> ParserRuleContext.getToken
- name: getTokens(number)
uid: botbuilder-lg.FileContext.getTokens
package: botbuilder-lg
summary: ''
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function getTokens(ttype: number): TerminalNode[]'
parameters:
- id: ttype
type: number
description: ''
return:
description: ''
type: 'TerminalNode[]'
inheritanceDescription: <b>Inherited From</b> ParserRuleContext.getTokens
- name: removeLastChild()
uid: botbuilder-lg.FileContext.removeLastChild
package: botbuilder-lg
summary: |-
Used by enterOuterAlt to toss out a RuleContext previously added as
we entered a rule. If we have # label, we will need to remove
generic ruleContext object.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: function removeLastChild()
inheritanceDescription: <b>Inherited From</b> ParserRuleContext.removeLastChild
- name: setParent(RuleContext)
uid: botbuilder-lg.FileContext.setParent
package: botbuilder-lg
summary: ''
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function setParent(parent: RuleContext)'
parameters:
- id: parent
type: RuleContext
description: ''
inheritanceDescription: <b>Inherited From</b> RuleContext.setParent
- name: toInfoString(Parser)
uid: botbuilder-lg.FileContext.toInfoString
package: botbuilder-lg
summary: >-
Used for rule context info debugging during parse-time, not so much for
ATN debugging
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function toInfoString(recognizer: Parser): string'
parameters:
- id: recognizer
type: Parser
description: ''
return:
description: ''
type: string
inheritanceDescription: <b>Inherited From</b> ParserRuleContext.toInfoString
- name: toString()
uid: botbuilder-lg.FileContext.toString
package: botbuilder-lg
summary: ''
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function toString(): string'
return:
description: ''
type: string
inheritanceDescription: <b>Inherited From</b> RuleContext.toString
- name: 'toString(Recognizer<any, any> | undefined)'
uid: botbuilder-lg.FileContext.toString_1
package: botbuilder-lg
summary: ''
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function toString(recog: Recognizer<any, any> | undefined): string'
parameters:
- id: recog
type: 'Recognizer<any, any> | undefined'
description: ''
return:
description: ''
type: string
inheritanceDescription: <b>Inherited From</b> RuleContext.toString
- name: 'toString(Recognizer<any, any> | undefined, RuleContext | undefined)'
uid: botbuilder-lg.FileContext.toString_3
package: botbuilder-lg
summary: ''
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: >-
function toString(recog: Recognizer<any, any> | undefined, stop:
RuleContext | undefined): string
parameters:
- id: recog
type: 'Recognizer<any, any> | undefined'
description: ''
- id: stop
type: RuleContext | undefined
description: ''
return:
description: ''
type: string
inheritanceDescription: <b>Inherited From</b> RuleContext.toString
- name: 'toString(string[] | undefined)'
uid: botbuilder-lg.FileContext.toString_2
package: botbuilder-lg
summary: ''
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function toString(ruleNames: string[] | undefined): string'
parameters:
- id: ruleNames
type: 'string[] | undefined'
description: ''
return:
description: ''
type: string
inheritanceDescription: <b>Inherited From</b> RuleContext.toString
- name: 'toString(string[] | undefined, RuleContext | undefined)'
uid: botbuilder-lg.FileContext.toString_4
package: botbuilder-lg
summary: ''
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: >-
function toString(ruleNames: string[] | undefined, stop: RuleContext |
undefined): string
parameters:
- id: ruleNames
type: 'string[] | undefined'
description: ''
- id: stop
type: RuleContext | undefined
description: ''
return:
description: ''
type: string
inheritanceDescription: <b>Inherited From</b> RuleContext.toString
- name: toStringTree()
uid: botbuilder-lg.FileContext.toStringTree_2
package: botbuilder-lg
summary: ''
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function toStringTree(): string'
return:
description: ''
type: string
inheritanceDescription: <b>Inherited From</b> RuleContext.toStringTree
- name: toStringTree(Parser)
uid: botbuilder-lg.FileContext.toStringTree
package: botbuilder-lg
summary: |-
Print out a whole tree, not just a node, in LISP format
(root child1 .. childN). Print just a node if this is a leaf.
We have to know the recognizer so we can get rule names.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function toStringTree(recog: Parser): string'
parameters:
- id: recog
type: Parser
description: ''
return:
description: ''
type: string
inheritanceDescription: <b>Inherited From</b> RuleContext.toStringTree
- name: 'toStringTree(string[] | undefined)'
uid: botbuilder-lg.FileContext.toStringTree_1
package: botbuilder-lg
summary: |-
Print out a whole tree, not just a node, in LISP format
(root child1 .. childN). Print just a node if this is a leaf.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function toStringTree(ruleNames: string[] | undefined): string'
parameters:
- id: ruleNames
type: 'string[] | undefined'
description: ''
return:
description: ''
type: string
inheritanceDescription: <b>Inherited From</b> RuleContext.toStringTree
- name: 'tryGetChild<T>(number, { })'
uid: botbuilder-lg.FileContext.tryGetChild
package: botbuilder-lg
summary: ''
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function tryGetChild<T>(i: number, ctxType: { }): T | undefined'
parameters:
- id: i
type: number
description: ''
- id: ctxType
type: '{ }'
description: ''
return:
description: ''
type: T | undefined
inheritanceDescription: <b>Inherited From</b> ParserRuleContext.tryGetChild
- name: 'tryGetRuleContext<T>(number, { })'
uid: botbuilder-lg.FileContext.tryGetRuleContext
package: botbuilder-lg
summary: ''
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function tryGetRuleContext<T>(i: number, ctxType: { }): T | undefined'
parameters:
- id: i
type: number
description: ''
- id: ctxType
type: '{ }'
description: ''
return:
description: ''
type: T | undefined
inheritanceDescription: <b>Inherited From</b> ParserRuleContext.tryGetRuleContext
- name: 'tryGetToken(number, number)'
uid: botbuilder-lg.FileContext.tryGetToken
package: botbuilder-lg
summary: ''
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function tryGetToken(ttype: number, i: number): TerminalNode | undefined'
parameters:
- id: ttype
type: number
description: ''
- id: i
type: number
description: ''
return:
description: ''
type: TerminalNode | undefined
inheritanceDescription: <b>Inherited From</b> ParserRuleContext.tryGetToken
methods:
- name: accept<Result>(LGFileParserVisitor<Result>)
uid: botbuilder-lg.FileContext.accept
package: botbuilder-lg
summary: ''
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function accept<Result>(visitor: LGFileParserVisitor<Result>): Result'
parameters:
- id: visitor
type: <xref uid="botbuilder-lg.LGFileParserVisitor" /><Result>
description: ''
return:
description: ''
type: Result
- name: enterRule(LGFileParserListener)
uid: botbuilder-lg.FileContext.enterRule
package: botbuilder-lg
summary: ''
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function enterRule(listener: LGFileParserListener)'
parameters:
- id: listener
type: <xref uid="botbuilder-lg.LGFileParserListener" />
description: ''
- name: EOF()
uid: botbuilder-lg.FileContext.EOF
package: botbuilder-lg
summary: ''
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function EOF(): TerminalNode'
return:
description: ''
type: TerminalNode
- name: exitRule(LGFileParserListener)
uid: botbuilder-lg.FileContext.exitRule
package: botbuilder-lg
summary: ''
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function exitRule(listener: LGFileParserListener)'
parameters:
- id: listener
type: <xref uid="botbuilder-lg.LGFileParserListener" />
description: ''
- name: paragraph()
uid: botbuilder-lg.FileContext.paragraph
package: botbuilder-lg
summary: ''
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function paragraph(): ParagraphContext[]'
return:
description: ''
type: '<xref uid="botbuilder-lg.ParagraphContext" />[]'
- name: paragraph(number)
uid: botbuilder-lg.FileContext.paragraph_1
package: botbuilder-lg
summary: ''
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function paragraph(i: number): ParagraphContext'
parameters:
- id: i
type: number
description: ''
return:
description: ''
type: <xref uid="botbuilder-lg.ParagraphContext" />
extends: ParserRuleContext