-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNMF.AnyText.Rules.Rule.yml
More file actions
2803 lines (2801 loc) · 106 KB
/
NMF.AnyText.Rules.Rule.yml
File metadata and controls
2803 lines (2801 loc) · 106 KB
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
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
### YamlMime:ManagedReference
items:
- uid: NMF.AnyText.Rules.Rule
commentId: T:NMF.AnyText.Rules.Rule
id: Rule
parent: NMF.AnyText.Rules
children:
- NMF.AnyText.Rules.Rule.AddLeftRecursionRules(System.Collections.Generic.List{NMF.AnyText.Rules.Rule},System.Collections.Generic.List{NMF.AnyText.Rules.RecursiveContinuation})
- NMF.AnyText.Rules.Rule.CanStartWith(NMF.AnyText.Rules.Rule)
- NMF.AnyText.Rules.Rule.CanStartWith(NMF.AnyText.Rules.Rule,System.Collections.Generic.List{NMF.AnyText.Rules.Rule})
- NMF.AnyText.Rules.Rule.CanSynthesize(System.Object,NMF.AnyText.ParseContext)
- NMF.AnyText.Rules.Rule.CanSynthesize(System.Object,NMF.AnyText.ParseContext,NMF.AnyText.SynthesisPlan)
- NMF.AnyText.Rules.Rule.Continuations
- NMF.AnyText.Rules.Rule.CreateEpsilonRuleApplication(NMF.AnyText.Rules.RuleApplication)
- NMF.AnyText.Rules.Rule.CreateSynthesisRequirements
- NMF.AnyText.Rules.Rule.GetHoverText(NMF.AnyText.Rules.RuleApplication,NMF.AnyText.Parser,NMF.AnyText.ParsePosition)
- NMF.AnyText.Rules.Rule.GetInlayHintText(NMF.AnyText.Rules.RuleApplication,NMF.AnyText.ParseContext)
- NMF.AnyText.Rules.Rule.HasFoldingKind(System.String@)
- NMF.AnyText.Rules.Rule.Initialize(NMF.AnyText.Grammars.GrammarContext)
- NMF.AnyText.Rules.Rule.Invalidate(NMF.AnyText.Rules.RuleApplication,NMF.AnyText.ParseContext)
- NMF.AnyText.Rules.Rule.IsComment
- NMF.AnyText.Rules.Rule.IsDefinition
- NMF.AnyText.Rules.Rule.IsEpsilonAllowed
- NMF.AnyText.Rules.Rule.IsEpsilonAllowed(System.Collections.Generic.List{NMF.AnyText.Rules.Rule})
- NMF.AnyText.Rules.Rule.IsFoldable
- NMF.AnyText.Rules.Rule.IsIdentifier
- NMF.AnyText.Rules.Rule.IsImports
- NMF.AnyText.Rules.Rule.IsLeftRecursive
- NMF.AnyText.Rules.Rule.IsLiteral
- NMF.AnyText.Rules.Rule.IsReference
- NMF.AnyText.Rules.Rule.Match(NMF.AnyText.ParseContext,NMF.AnyText.RecursionContext,NMF.AnyText.ParsePosition@)
- NMF.AnyText.Rules.Rule.Name
- NMF.AnyText.Rules.Rule.OnActivate(NMF.AnyText.Rules.RuleApplication,NMF.AnyText.ParseContext,System.Boolean)
- NMF.AnyText.Rules.Rule.OnDeactivate(NMF.AnyText.Rules.RuleApplication,NMF.AnyText.ParseContext)
- NMF.AnyText.Rules.Rule.OnValueChange(NMF.AnyText.Rules.RuleApplication,NMF.AnyText.ParseContext,NMF.AnyText.Rules.RuleApplication)
- NMF.AnyText.Rules.Rule.PassAlongDocumentSymbols
- NMF.AnyText.Rules.Rule.PostInitialize(NMF.AnyText.Grammars.GrammarContext)
- NMF.AnyText.Rules.Rule.Recover(NMF.AnyText.Rules.RuleApplication,NMF.AnyText.Rules.RuleApplication,NMF.AnyText.Rules.RuleApplication,NMF.AnyText.ParseContext,NMF.AnyText.ParsePosition@)
- NMF.AnyText.Rules.Rule.RegisterSymbolKind(System.Collections.Generic.Dictionary{System.Type,NMF.AnyText.SymbolKind})
- NMF.AnyText.Rules.Rule.SuggestCompletions(NMF.AnyText.ParseContext,NMF.AnyText.Rules.RuleApplication,System.String,NMF.AnyText.ParsePosition)
- NMF.AnyText.Rules.Rule.SymbolKind
- NMF.AnyText.Rules.Rule.SymbolTags(NMF.AnyText.Rules.RuleApplication)
- NMF.AnyText.Rules.Rule.Synthesize(System.Object,NMF.AnyText.ParseContext,System.IO.TextWriter,System.String)
- NMF.AnyText.Rules.Rule.Synthesize(System.Object,NMF.AnyText.ParseContext,System.String)
- NMF.AnyText.Rules.Rule.Synthesize(System.Object,NMF.AnyText.ParsePosition,NMF.AnyText.ParseContext)
- NMF.AnyText.Rules.Rule.ToString
- NMF.AnyText.Rules.Rule.TokenModifierIndex
- NMF.AnyText.Rules.Rule.TokenModifiers
- NMF.AnyText.Rules.Rule.TokenType
- NMF.AnyText.Rules.Rule.TokenTypeIndex
- NMF.AnyText.Rules.Rule.TrailingWhitespaces
langs:
- csharp
- vb
name: Rule
nameWithType: Rule
fullName: NMF.AnyText.Rules.Rule
type: Class
source:
remote:
path: AnyText/AnyText.Core/Rules/Rule.cs
branch: main
repo: https://github.com/NMFCode/NMF.git
id: Rule
path: src/AnyText/AnyText.Core/Rules/Rule.cs
startLine: 12
assemblies:
- NMF.AnyText.Core
namespace: NMF.AnyText.Rules
summary: Denotes a rule for parsing rules
example: []
syntax:
content: public abstract class Rule
content.vb: Public MustInherit Class Rule
inheritance:
- System.Object
derivedClasses:
- NMF.AnyText.Rules.ChoiceRule
- NMF.AnyText.Rules.CommentRule
- NMF.AnyText.Rules.LiteralRule
- NMF.AnyText.Rules.NegativeLookaheadRule
- NMF.AnyText.Rules.OneOrMoreRule
- NMF.AnyText.Rules.PositiveLookaheadRule
- NMF.AnyText.Rules.QuoteRule
- NMF.AnyText.Rules.RegexRule
- NMF.AnyText.Rules.SequenceRule
- NMF.AnyText.Rules.ZeroOrMoreRule
- NMF.AnyText.Rules.ZeroOrOneRule
inheritedMembers:
- System.Object.Equals(System.Object)
- System.Object.Equals(System.Object,System.Object)
- System.Object.GetHashCode
- System.Object.GetType
- System.Object.MemberwiseClone
- System.Object.ReferenceEquals(System.Object,System.Object)
- uid: NMF.AnyText.Rules.Rule.Name
commentId: P:NMF.AnyText.Rules.Rule.Name
id: Name
parent: NMF.AnyText.Rules.Rule
langs:
- csharp
- vb
name: Name
nameWithType: Rule.Name
fullName: NMF.AnyText.Rules.Rule.Name
type: Property
source:
remote:
path: AnyText/AnyText.Core/Rules/Rule.cs
branch: main
repo: https://github.com/NMFCode/NMF.git
id: Name
path: src/AnyText/AnyText.Core/Rules/Rule.cs
startLine: 17
assemblies:
- NMF.AnyText.Core
namespace: NMF.AnyText.Rules
summary: Gets or sets the name of this rule
example: []
syntax:
content: public string Name { get; set; }
parameters: []
return:
type: System.String
content.vb: Public Property Name As String
overload: NMF.AnyText.Rules.Rule.Name*
- uid: NMF.AnyText.Rules.Rule.ToString
commentId: M:NMF.AnyText.Rules.Rule.ToString
id: ToString
parent: NMF.AnyText.Rules.Rule
langs:
- csharp
- vb
name: ToString()
nameWithType: Rule.ToString()
fullName: NMF.AnyText.Rules.Rule.ToString()
type: Method
source:
remote:
path: AnyText/AnyText.Core/Rules/Rule.cs
branch: main
repo: https://github.com/NMFCode/NMF.git
id: ToString
path: src/AnyText/AnyText.Core/Rules/Rule.cs
startLine: 20
assemblies:
- NMF.AnyText.Core
namespace: NMF.AnyText.Rules
summary: Returns a string that represents the current object.
example: []
syntax:
content: public override string ToString()
return:
type: System.String
description: A string that represents the current object.
content.vb: Public Overrides Function ToString() As String
overridden: System.Object.ToString
overload: NMF.AnyText.Rules.Rule.ToString*
- uid: NMF.AnyText.Rules.Rule.Match(NMF.AnyText.ParseContext,NMF.AnyText.RecursionContext,NMF.AnyText.ParsePosition@)
commentId: M:NMF.AnyText.Rules.Rule.Match(NMF.AnyText.ParseContext,NMF.AnyText.RecursionContext,NMF.AnyText.ParsePosition@)
id: Match(NMF.AnyText.ParseContext,NMF.AnyText.RecursionContext,NMF.AnyText.ParsePosition@)
parent: NMF.AnyText.Rules.Rule
langs:
- csharp
- vb
name: Match(ParseContext, RecursionContext, ref ParsePosition)
nameWithType: Rule.Match(ParseContext, RecursionContext, ref ParsePosition)
fullName: NMF.AnyText.Rules.Rule.Match(NMF.AnyText.ParseContext, NMF.AnyText.RecursionContext, ref NMF.AnyText.ParsePosition)
type: Method
source:
remote:
path: AnyText/AnyText.Core/Rules/Rule.cs
branch: main
repo: https://github.com/NMFCode/NMF.git
id: Match
path: src/AnyText/AnyText.Core/Rules/Rule.cs
startLine: 36
assemblies:
- NMF.AnyText.Core
namespace: NMF.AnyText.Rules
summary: Matches the the context at the provided position
example: []
syntax:
content: public abstract RuleApplication Match(ParseContext context, RecursionContext recursionContext, ref ParsePosition position)
parameters:
- id: context
type: NMF.AnyText.ParseContext
description: the context in which the rule is matched
- id: recursionContext
type: NMF.AnyText.RecursionContext
description: the recursion context of the matching
- id: position
type: NMF.AnyText.ParsePosition
description: the position in the input
return:
type: NMF.AnyText.Rules.RuleApplication
description: the rule application for the provided position
content.vb: Public MustOverride Function Match(context As ParseContext, recursionContext As RecursionContext, position As ParsePosition) As RuleApplication
overload: NMF.AnyText.Rules.Rule.Match*
nameWithType.vb: Rule.Match(ParseContext, RecursionContext, ParsePosition)
fullName.vb: NMF.AnyText.Rules.Rule.Match(NMF.AnyText.ParseContext, NMF.AnyText.RecursionContext, NMF.AnyText.ParsePosition)
name.vb: Match(ParseContext, RecursionContext, ParsePosition)
- uid: NMF.AnyText.Rules.Rule.OnActivate(NMF.AnyText.Rules.RuleApplication,NMF.AnyText.ParseContext,System.Boolean)
commentId: M:NMF.AnyText.Rules.Rule.OnActivate(NMF.AnyText.Rules.RuleApplication,NMF.AnyText.ParseContext,System.Boolean)
id: OnActivate(NMF.AnyText.Rules.RuleApplication,NMF.AnyText.ParseContext,System.Boolean)
parent: NMF.AnyText.Rules.Rule
langs:
- csharp
- vb
name: OnActivate(RuleApplication, ParseContext, bool)
nameWithType: Rule.OnActivate(RuleApplication, ParseContext, bool)
fullName: NMF.AnyText.Rules.Rule.OnActivate(NMF.AnyText.Rules.RuleApplication, NMF.AnyText.ParseContext, bool)
type: Method
source:
remote:
path: AnyText/AnyText.Core/Rules/Rule.cs
branch: main
repo: https://github.com/NMFCode/NMF.git
id: OnActivate
path: src/AnyText/AnyText.Core/Rules/Rule.cs
startLine: 49
assemblies:
- NMF.AnyText.Core
namespace: NMF.AnyText.Rules
summary: Gets called when a rule application is activated
example: []
syntax:
content: protected virtual void OnActivate(RuleApplication application, ParseContext context, bool initial)
parameters:
- id: application
type: NMF.AnyText.Rules.RuleApplication
description: the rule application that is activated
- id: context
type: NMF.AnyText.ParseContext
description: the context in which the rule application is activated
- id: initial
type: System.Boolean
description: flag indicating whether the activation happened due to initial parse
content.vb: Protected Overridable Sub OnActivate(application As RuleApplication, context As ParseContext, initial As Boolean)
overload: NMF.AnyText.Rules.Rule.OnActivate*
nameWithType.vb: Rule.OnActivate(RuleApplication, ParseContext, Boolean)
fullName.vb: NMF.AnyText.Rules.Rule.OnActivate(NMF.AnyText.Rules.RuleApplication, NMF.AnyText.ParseContext, Boolean)
name.vb: OnActivate(RuleApplication, ParseContext, Boolean)
- uid: NMF.AnyText.Rules.Rule.OnDeactivate(NMF.AnyText.Rules.RuleApplication,NMF.AnyText.ParseContext)
commentId: M:NMF.AnyText.Rules.Rule.OnDeactivate(NMF.AnyText.Rules.RuleApplication,NMF.AnyText.ParseContext)
id: OnDeactivate(NMF.AnyText.Rules.RuleApplication,NMF.AnyText.ParseContext)
parent: NMF.AnyText.Rules.Rule
langs:
- csharp
- vb
name: OnDeactivate(RuleApplication, ParseContext)
nameWithType: Rule.OnDeactivate(RuleApplication, ParseContext)
fullName: NMF.AnyText.Rules.Rule.OnDeactivate(NMF.AnyText.Rules.RuleApplication, NMF.AnyText.ParseContext)
type: Method
source:
remote:
path: AnyText/AnyText.Core/Rules/Rule.cs
branch: main
repo: https://github.com/NMFCode/NMF.git
id: OnDeactivate
path: src/AnyText/AnyText.Core/Rules/Rule.cs
startLine: 56
assemblies:
- NMF.AnyText.Core
namespace: NMF.AnyText.Rules
summary: Gets called when a rule application is deactivated
example: []
syntax:
content: protected virtual void OnDeactivate(RuleApplication application, ParseContext context)
parameters:
- id: application
type: NMF.AnyText.Rules.RuleApplication
description: the rule application that is deactivated
- id: context
type: NMF.AnyText.ParseContext
description: the context in which the rule application is deactivated
content.vb: Protected Overridable Sub OnDeactivate(application As RuleApplication, context As ParseContext)
overload: NMF.AnyText.Rules.Rule.OnDeactivate*
- uid: NMF.AnyText.Rules.Rule.Recover(NMF.AnyText.Rules.RuleApplication,NMF.AnyText.Rules.RuleApplication,NMF.AnyText.Rules.RuleApplication,NMF.AnyText.ParseContext,NMF.AnyText.ParsePosition@)
commentId: M:NMF.AnyText.Rules.Rule.Recover(NMF.AnyText.Rules.RuleApplication,NMF.AnyText.Rules.RuleApplication,NMF.AnyText.Rules.RuleApplication,NMF.AnyText.ParseContext,NMF.AnyText.ParsePosition@)
id: Recover(NMF.AnyText.Rules.RuleApplication,NMF.AnyText.Rules.RuleApplication,NMF.AnyText.Rules.RuleApplication,NMF.AnyText.ParseContext,NMF.AnyText.ParsePosition@)
parent: NMF.AnyText.Rules.Rule
langs:
- csharp
- vb
name: Recover(RuleApplication, RuleApplication, RuleApplication, ParseContext, out ParsePosition)
nameWithType: Rule.Recover(RuleApplication, RuleApplication, RuleApplication, ParseContext, out ParsePosition)
fullName: NMF.AnyText.Rules.Rule.Recover(NMF.AnyText.Rules.RuleApplication, NMF.AnyText.Rules.RuleApplication, NMF.AnyText.Rules.RuleApplication, NMF.AnyText.ParseContext, out NMF.AnyText.ParsePosition)
type: Method
source:
remote:
path: AnyText/AnyText.Core/Rules/Rule.cs
branch: main
repo: https://github.com/NMFCode/NMF.git
id: Recover
path: src/AnyText/AnyText.Core/Rules/Rule.cs
startLine: 67
assemblies:
- NMF.AnyText.Core
namespace: NMF.AnyText.Rules
summary: Recovers from the given inner failed rule application
example: []
syntax:
content: protected virtual RuleApplication Recover(RuleApplication ruleApplication, RuleApplication failedRuleApplication, RuleApplication currentRoot, ParseContext context, out ParsePosition position)
parameters:
- id: ruleApplication
type: NMF.AnyText.Rules.RuleApplication
description: the rule application that should be recovered
- id: failedRuleApplication
type: NMF.AnyText.Rules.RuleApplication
description: the inner rule application that caused the failure
- id: currentRoot
type: NMF.AnyText.Rules.RuleApplication
description: the current root rule application
- id: context
type: NMF.AnyText.ParseContext
description: the parse context in which the rule application is recovered
- id: position
type: NMF.AnyText.ParsePosition
description: the position after the recovery
return:
type: NMF.AnyText.Rules.RuleApplication
description: the recovered rule application if the recovery was successful or the old rule application if not
content.vb: Protected Overridable Function Recover(ruleApplication As RuleApplication, failedRuleApplication As RuleApplication, currentRoot As RuleApplication, context As ParseContext, position As ParsePosition) As RuleApplication
overload: NMF.AnyText.Rules.Rule.Recover*
nameWithType.vb: Rule.Recover(RuleApplication, RuleApplication, RuleApplication, ParseContext, ParsePosition)
fullName.vb: NMF.AnyText.Rules.Rule.Recover(NMF.AnyText.Rules.RuleApplication, NMF.AnyText.Rules.RuleApplication, NMF.AnyText.Rules.RuleApplication, NMF.AnyText.ParseContext, NMF.AnyText.ParsePosition)
name.vb: Recover(RuleApplication, RuleApplication, RuleApplication, ParseContext, ParsePosition)
- uid: NMF.AnyText.Rules.Rule.OnValueChange(NMF.AnyText.Rules.RuleApplication,NMF.AnyText.ParseContext,NMF.AnyText.Rules.RuleApplication)
commentId: M:NMF.AnyText.Rules.Rule.OnValueChange(NMF.AnyText.Rules.RuleApplication,NMF.AnyText.ParseContext,NMF.AnyText.Rules.RuleApplication)
id: OnValueChange(NMF.AnyText.Rules.RuleApplication,NMF.AnyText.ParseContext,NMF.AnyText.Rules.RuleApplication)
parent: NMF.AnyText.Rules.Rule
langs:
- csharp
- vb
name: OnValueChange(RuleApplication, ParseContext, RuleApplication)
nameWithType: Rule.OnValueChange(RuleApplication, ParseContext, RuleApplication)
fullName: NMF.AnyText.Rules.Rule.OnValueChange(NMF.AnyText.Rules.RuleApplication, NMF.AnyText.ParseContext, NMF.AnyText.Rules.RuleApplication)
type: Method
source:
remote:
path: AnyText/AnyText.Core/Rules/Rule.cs
branch: main
repo: https://github.com/NMFCode/NMF.git
id: OnValueChange
path: src/AnyText/AnyText.Core/Rules/Rule.cs
startLine: 80
assemblies:
- NMF.AnyText.Core
namespace: NMF.AnyText.Rules
summary: Gets called when the value of a rule application changes
example: []
syntax:
content: protected virtual bool OnValueChange(RuleApplication application, ParseContext context, RuleApplication oldRuleApplication)
parameters:
- id: application
type: NMF.AnyText.Rules.RuleApplication
description: the rule application for which the value changed
- id: context
type: NMF.AnyText.ParseContext
description: the context in which the value changed
- id: oldRuleApplication
type: NMF.AnyText.Rules.RuleApplication
description: the old rule application
return:
type: System.Boolean
description: true, if the rule processed the value change, otherwise false (in which case the value change is propagated)
content.vb: Protected Overridable Function OnValueChange(application As RuleApplication, context As ParseContext, oldRuleApplication As RuleApplication) As Boolean
overload: NMF.AnyText.Rules.Rule.OnValueChange*
- uid: NMF.AnyText.Rules.Rule.IsLiteral
commentId: P:NMF.AnyText.Rules.Rule.IsLiteral
id: IsLiteral
parent: NMF.AnyText.Rules.Rule
langs:
- csharp
- vb
name: IsLiteral
nameWithType: Rule.IsLiteral
fullName: NMF.AnyText.Rules.Rule.IsLiteral
type: Property
source:
remote:
path: AnyText/AnyText.Core/Rules/Rule.cs
branch: main
repo: https://github.com/NMFCode/NMF.git
id: IsLiteral
path: src/AnyText/AnyText.Core/Rules/Rule.cs
startLine: 85
assemblies:
- NMF.AnyText.Core
namespace: NMF.AnyText.Rules
summary: True, if the rule contributes characters, otherwise false
example: []
syntax:
content: public virtual bool IsLiteral { get; }
parameters: []
return:
type: System.Boolean
content.vb: Public Overridable ReadOnly Property IsLiteral As Boolean
overload: NMF.AnyText.Rules.Rule.IsLiteral*
- uid: NMF.AnyText.Rules.Rule.IsComment
commentId: P:NMF.AnyText.Rules.Rule.IsComment
id: IsComment
parent: NMF.AnyText.Rules.Rule
langs:
- csharp
- vb
name: IsComment
nameWithType: Rule.IsComment
fullName: NMF.AnyText.Rules.Rule.IsComment
type: Property
source:
remote:
path: AnyText/AnyText.Core/Rules/Rule.cs
branch: main
repo: https://github.com/NMFCode/NMF.git
id: IsComment
path: src/AnyText/AnyText.Core/Rules/Rule.cs
startLine: 90
assemblies:
- NMF.AnyText.Core
namespace: NMF.AnyText.Rules
summary: True, if the rule is ignored in the parse tree, otherwise false
example: []
syntax:
content: public virtual bool IsComment { get; }
parameters: []
return:
type: System.Boolean
content.vb: Public Overridable ReadOnly Property IsComment As Boolean
overload: NMF.AnyText.Rules.Rule.IsComment*
- uid: NMF.AnyText.Rules.Rule.IsFoldable
commentId: M:NMF.AnyText.Rules.Rule.IsFoldable
id: IsFoldable
parent: NMF.AnyText.Rules.Rule
langs:
- csharp
- vb
name: IsFoldable()
nameWithType: Rule.IsFoldable()
fullName: NMF.AnyText.Rules.Rule.IsFoldable()
type: Method
source:
remote:
path: AnyText/AnyText.Core/Rules/Rule.cs
branch: main
repo: https://github.com/NMFCode/NMF.git
id: IsFoldable
path: src/AnyText/AnyText.Core/Rules/Rule.cs
startLine: 95
assemblies:
- NMF.AnyText.Core
namespace: NMF.AnyText.Rules
summary: True, if the application of this rule can be folded away (hidden)
example: []
syntax:
content: public virtual bool IsFoldable()
return:
type: System.Boolean
content.vb: Public Overridable Function IsFoldable() As Boolean
overload: NMF.AnyText.Rules.Rule.IsFoldable*
- uid: NMF.AnyText.Rules.Rule.IsImports
commentId: M:NMF.AnyText.Rules.Rule.IsImports
id: IsImports
parent: NMF.AnyText.Rules.Rule
langs:
- csharp
- vb
name: IsImports()
nameWithType: Rule.IsImports()
fullName: NMF.AnyText.Rules.Rule.IsImports()
type: Method
source:
remote:
path: AnyText/AnyText.Core/Rules/Rule.cs
branch: main
repo: https://github.com/NMFCode/NMF.git
id: IsImports
path: src/AnyText/AnyText.Core/Rules/Rule.cs
startLine: 100
assemblies:
- NMF.AnyText.Core
namespace: NMF.AnyText.Rules
summary: True, if the rule is used to define imports
example: []
syntax:
content: public virtual bool IsImports()
return:
type: System.Boolean
content.vb: Public Overridable Function IsImports() As Boolean
overload: NMF.AnyText.Rules.Rule.IsImports*
- uid: NMF.AnyText.Rules.Rule.HasFoldingKind(System.String@)
commentId: M:NMF.AnyText.Rules.Rule.HasFoldingKind(System.String@)
id: HasFoldingKind(System.String@)
parent: NMF.AnyText.Rules.Rule
langs:
- csharp
- vb
name: HasFoldingKind(out string)
nameWithType: Rule.HasFoldingKind(out string)
fullName: NMF.AnyText.Rules.Rule.HasFoldingKind(out string)
type: Method
source:
remote:
path: AnyText/AnyText.Core/Rules/Rule.cs
branch: main
repo: https://github.com/NMFCode/NMF.git
id: HasFoldingKind
path: src/AnyText/AnyText.Core/Rules/Rule.cs
startLine: 107
assemblies:
- NMF.AnyText.Core
namespace: NMF.AnyText.Rules
summary: Returns the folding kind for a rule if one is defined for the rule
example: []
syntax:
content: public virtual bool HasFoldingKind(out string kind)
parameters:
- id: kind
type: System.String
description: The folding kind of the rule
return:
type: System.Boolean
description: True, if a folding kind is defined for the rule
content.vb: Public Overridable Function HasFoldingKind(kind As String) As Boolean
overload: NMF.AnyText.Rules.Rule.HasFoldingKind*
nameWithType.vb: Rule.HasFoldingKind(String)
fullName.vb: NMF.AnyText.Rules.Rule.HasFoldingKind(String)
name.vb: HasFoldingKind(String)
- uid: NMF.AnyText.Rules.Rule.TrailingWhitespaces
commentId: P:NMF.AnyText.Rules.Rule.TrailingWhitespaces
id: TrailingWhitespaces
parent: NMF.AnyText.Rules.Rule
langs:
- csharp
- vb
name: TrailingWhitespaces
nameWithType: Rule.TrailingWhitespaces
fullName: NMF.AnyText.Rules.Rule.TrailingWhitespaces
type: Property
source:
remote:
path: AnyText/AnyText.Core/Rules/Rule.cs
branch: main
repo: https://github.com/NMFCode/NMF.git
id: TrailingWhitespaces
path: src/AnyText/AnyText.Core/Rules/Rule.cs
startLine: 116
assemblies:
- NMF.AnyText.Core
namespace: NMF.AnyText.Rules
summary: True, if the rule permits trailing whitespaces, otherwise false
example: []
syntax:
content: public bool TrailingWhitespaces { get; protected set; }
parameters: []
return:
type: System.Boolean
content.vb: Public Property TrailingWhitespaces As Boolean
overload: NMF.AnyText.Rules.Rule.TrailingWhitespaces*
- uid: NMF.AnyText.Rules.Rule.Initialize(NMF.AnyText.Grammars.GrammarContext)
commentId: M:NMF.AnyText.Rules.Rule.Initialize(NMF.AnyText.Grammars.GrammarContext)
id: Initialize(NMF.AnyText.Grammars.GrammarContext)
parent: NMF.AnyText.Rules.Rule
langs:
- csharp
- vb
name: Initialize(GrammarContext)
nameWithType: Rule.Initialize(GrammarContext)
fullName: NMF.AnyText.Rules.Rule.Initialize(NMF.AnyText.Grammars.GrammarContext)
type: Method
source:
remote:
path: AnyText/AnyText.Core/Rules/Rule.cs
branch: main
repo: https://github.com/NMFCode/NMF.git
id: Initialize
path: src/AnyText/AnyText.Core/Rules/Rule.cs
startLine: 122
assemblies:
- NMF.AnyText.Core
namespace: NMF.AnyText.Rules
summary: Initializes the rule based on the provided grammar context
example: []
syntax:
content: public virtual void Initialize(GrammarContext context)
parameters:
- id: context
type: NMF.AnyText.Grammars.GrammarContext
description: the grammar context
content.vb: Public Overridable Sub Initialize(context As GrammarContext)
overload: NMF.AnyText.Rules.Rule.Initialize*
- uid: NMF.AnyText.Rules.Rule.PostInitialize(NMF.AnyText.Grammars.GrammarContext)
commentId: M:NMF.AnyText.Rules.Rule.PostInitialize(NMF.AnyText.Grammars.GrammarContext)
id: PostInitialize(NMF.AnyText.Grammars.GrammarContext)
parent: NMF.AnyText.Rules.Rule
langs:
- csharp
- vb
name: PostInitialize(GrammarContext)
nameWithType: Rule.PostInitialize(GrammarContext)
fullName: NMF.AnyText.Rules.Rule.PostInitialize(NMF.AnyText.Grammars.GrammarContext)
type: Method
source:
remote:
path: AnyText/AnyText.Core/Rules/Rule.cs
branch: main
repo: https://github.com/NMFCode/NMF.git
id: PostInitialize
path: src/AnyText/AnyText.Core/Rules/Rule.cs
startLine: 128
assemblies:
- NMF.AnyText.Core
namespace: NMF.AnyText.Rules
summary: Initializes the rule based on the provided grammar context
example: []
syntax:
content: protected virtual void PostInitialize(GrammarContext context)
parameters:
- id: context
type: NMF.AnyText.Grammars.GrammarContext
description: the grammar context
content.vb: Protected Overridable Sub PostInitialize(context As GrammarContext)
overload: NMF.AnyText.Rules.Rule.PostInitialize*
- uid: NMF.AnyText.Rules.Rule.TokenType
commentId: P:NMF.AnyText.Rules.Rule.TokenType
id: TokenType
parent: NMF.AnyText.Rules.Rule
langs:
- csharp
- vb
name: TokenType
nameWithType: Rule.TokenType
fullName: NMF.AnyText.Rules.Rule.TokenType
type: Property
source:
remote:
path: AnyText/AnyText.Core/Rules/Rule.cs
branch: main
repo: https://github.com/NMFCode/NMF.git
id: TokenType
path: src/AnyText/AnyText.Core/Rules/Rule.cs
startLine: 133
assemblies:
- NMF.AnyText.Core
namespace: NMF.AnyText.Rules
summary: Gets the token type of tokens created for this rule
example: []
syntax:
content: public virtual string TokenType { get; }
parameters: []
return:
type: System.String
content.vb: Public Overridable ReadOnly Property TokenType As String
overload: NMF.AnyText.Rules.Rule.TokenType*
- uid: NMF.AnyText.Rules.Rule.IsDefinition
commentId: P:NMF.AnyText.Rules.Rule.IsDefinition
id: IsDefinition
parent: NMF.AnyText.Rules.Rule
langs:
- csharp
- vb
name: IsDefinition
nameWithType: Rule.IsDefinition
fullName: NMF.AnyText.Rules.Rule.IsDefinition
type: Property
source:
remote:
path: AnyText/AnyText.Core/Rules/Rule.cs
branch: main
repo: https://github.com/NMFCode/NMF.git
id: IsDefinition
path: src/AnyText/AnyText.Core/Rules/Rule.cs
startLine: 139
assemblies:
- NMF.AnyText.Core
namespace: NMF.AnyText.Rules
summary: True, if the application of this rule denotes a definition
example: []
syntax:
content: public virtual bool IsDefinition { get; }
parameters: []
return:
type: System.Boolean
content.vb: Public Overridable ReadOnly Property IsDefinition As Boolean
overload: NMF.AnyText.Rules.Rule.IsDefinition*
- uid: NMF.AnyText.Rules.Rule.IsReference
commentId: P:NMF.AnyText.Rules.Rule.IsReference
id: IsReference
parent: NMF.AnyText.Rules.Rule
langs:
- csharp
- vb
name: IsReference
nameWithType: Rule.IsReference
fullName: NMF.AnyText.Rules.Rule.IsReference
type: Property
source:
remote:
path: AnyText/AnyText.Core/Rules/Rule.cs
branch: main
repo: https://github.com/NMFCode/NMF.git
id: IsReference
path: src/AnyText/AnyText.Core/Rules/Rule.cs
startLine: 144
assemblies:
- NMF.AnyText.Core
namespace: NMF.AnyText.Rules
summary: True, if the application of this rule denotes a reference
example: []
syntax:
content: public virtual bool IsReference { get; }
parameters: []
return:
type: System.Boolean
content.vb: Public Overridable ReadOnly Property IsReference As Boolean
overload: NMF.AnyText.Rules.Rule.IsReference*
- uid: NMF.AnyText.Rules.Rule.IsIdentifier
commentId: P:NMF.AnyText.Rules.Rule.IsIdentifier
id: IsIdentifier
parent: NMF.AnyText.Rules.Rule
langs:
- csharp
- vb
name: IsIdentifier
nameWithType: Rule.IsIdentifier
fullName: NMF.AnyText.Rules.Rule.IsIdentifier
type: Property
source:
remote:
path: AnyText/AnyText.Core/Rules/Rule.cs
branch: main
repo: https://github.com/NMFCode/NMF.git
id: IsIdentifier
path: src/AnyText/AnyText.Core/Rules/Rule.cs
startLine: 149
assemblies:
- NMF.AnyText.Core
namespace: NMF.AnyText.Rules
summary: True, if the rule application of this rule denotes an identifier
example: []
syntax:
content: public virtual bool IsIdentifier { get; }
parameters: []
return:
type: System.Boolean
content.vb: Public Overridable ReadOnly Property IsIdentifier As Boolean
overload: NMF.AnyText.Rules.Rule.IsIdentifier*
- uid: NMF.AnyText.Rules.Rule.SymbolKind
commentId: P:NMF.AnyText.Rules.Rule.SymbolKind
id: SymbolKind
parent: NMF.AnyText.Rules.Rule
langs:
- csharp
- vb
name: SymbolKind
nameWithType: Rule.SymbolKind
fullName: NMF.AnyText.Rules.Rule.SymbolKind
type: Property
source:
remote:
path: AnyText/AnyText.Core/Rules/Rule.cs
branch: main
repo: https://github.com/NMFCode/NMF.git
id: SymbolKind
path: src/AnyText/AnyText.Core/Rules/Rule.cs
startLine: 154
assemblies:
- NMF.AnyText.Core
namespace: NMF.AnyText.Rules
summary: Gets the kind of document symbol to be used for this rule
example: []
syntax:
content: public virtual SymbolKind SymbolKind { get; }
parameters: []
return:
type: NMF.AnyText.SymbolKind
content.vb: Public Overridable ReadOnly Property SymbolKind As SymbolKind
overload: NMF.AnyText.Rules.Rule.SymbolKind*
- uid: NMF.AnyText.Rules.Rule.SymbolTags(NMF.AnyText.Rules.RuleApplication)
commentId: M:NMF.AnyText.Rules.Rule.SymbolTags(NMF.AnyText.Rules.RuleApplication)
id: SymbolTags(NMF.AnyText.Rules.RuleApplication)
parent: NMF.AnyText.Rules.Rule
langs:
- csharp
- vb
name: SymbolTags(RuleApplication)
nameWithType: Rule.SymbolTags(RuleApplication)
fullName: NMF.AnyText.Rules.Rule.SymbolTags(NMF.AnyText.Rules.RuleApplication)
type: Method
source:
remote:
path: AnyText/AnyText.Core/Rules/Rule.cs
branch: main
repo: https://github.com/NMFCode/NMF.git
id: SymbolTags
path: src/AnyText/AnyText.Core/Rules/Rule.cs
startLine: 159
assemblies:
- NMF.AnyText.Core
namespace: NMF.AnyText.Rules
summary: Gets the kind of document symbol to be used for this rule
example: []
syntax:
content: public virtual SymbolTag[] SymbolTags(RuleApplication ruleApplication)
parameters:
- id: ruleApplication
type: NMF.AnyText.Rules.RuleApplication
return:
type: NMF.AnyText.SymbolTag[]
content.vb: Public Overridable Function SymbolTags(ruleApplication As RuleApplication) As SymbolTag()
overload: NMF.AnyText.Rules.Rule.SymbolTags*
- uid: NMF.AnyText.Rules.Rule.PassAlongDocumentSymbols
commentId: P:NMF.AnyText.Rules.Rule.PassAlongDocumentSymbols
id: PassAlongDocumentSymbols
parent: NMF.AnyText.Rules.Rule
langs:
- csharp
- vb
name: PassAlongDocumentSymbols
nameWithType: Rule.PassAlongDocumentSymbols
fullName: NMF.AnyText.Rules.Rule.PassAlongDocumentSymbols
type: Property
source:
remote:
path: AnyText/AnyText.Core/Rules/Rule.cs
branch: main
repo: https://github.com/NMFCode/NMF.git
id: PassAlongDocumentSymbols
path: src/AnyText/AnyText.Core/Rules/Rule.cs
startLine: 166
assemblies:
- NMF.AnyText.Core
namespace: NMF.AnyText.Rules
summary: >-
True, if inner document symbols should be passed on to be handled separately,
e.g. if the inner elements of the corresponding rule application should be
visible in the outline, but not the rule application itself
example: []
syntax:
content: public bool PassAlongDocumentSymbols { get; }
parameters: []
return:
type: System.Boolean
content.vb: Public ReadOnly Property PassAlongDocumentSymbols As Boolean
overload: NMF.AnyText.Rules.Rule.PassAlongDocumentSymbols*
- uid: NMF.AnyText.Rules.Rule.Invalidate(NMF.AnyText.Rules.RuleApplication,NMF.AnyText.ParseContext)
commentId: M:NMF.AnyText.Rules.Rule.Invalidate(NMF.AnyText.Rules.RuleApplication,NMF.AnyText.ParseContext)
id: Invalidate(NMF.AnyText.Rules.RuleApplication,NMF.AnyText.ParseContext)
parent: NMF.AnyText.Rules.Rule
langs:
- csharp
- vb
name: Invalidate(RuleApplication, ParseContext)
nameWithType: Rule.Invalidate(RuleApplication, ParseContext)
fullName: NMF.AnyText.Rules.Rule.Invalidate(NMF.AnyText.Rules.RuleApplication, NMF.AnyText.ParseContext)
type: Method
source:
remote:
path: AnyText/AnyText.Core/Rules/Rule.cs
branch: main
repo: https://github.com/NMFCode/NMF.git
id: Invalidate
path: src/AnyText/AnyText.Core/Rules/Rule.cs
startLine: 173
assemblies:
- NMF.AnyText.Core
namespace: NMF.AnyText.Rules
summary: Invalidates the given rule application, checking for potential errors
example: []
syntax:
content: public virtual void Invalidate(RuleApplication ruleApplication, ParseContext context)
parameters:
- id: ruleApplication
type: NMF.AnyText.Rules.RuleApplication
description: the rule application to invalidate
- id: context
type: NMF.AnyText.ParseContext
description: the parse context in which the rule application is invalidated
content.vb: Public Overridable Sub Invalidate(ruleApplication As RuleApplication, context As ParseContext)
overload: NMF.AnyText.Rules.Rule.Invalidate*
- uid: NMF.AnyText.Rules.Rule.IsLeftRecursive
commentId: P:NMF.AnyText.Rules.Rule.IsLeftRecursive
id: IsLeftRecursive
parent: NMF.AnyText.Rules.Rule
langs:
- csharp
- vb
name: IsLeftRecursive
nameWithType: Rule.IsLeftRecursive
fullName: NMF.AnyText.Rules.Rule.IsLeftRecursive
type: Property
source:
remote:
path: AnyText/AnyText.Core/Rules/Rule.cs
branch: main
repo: https://github.com/NMFCode/NMF.git
id: IsLeftRecursive
path: src/AnyText/AnyText.Core/Rules/Rule.cs
startLine: 178
assemblies:
- NMF.AnyText.Core
namespace: NMF.AnyText.Rules
summary: Indicates whether the rule is recursive
example: []
syntax:
content: public bool IsLeftRecursive { get; }
parameters: []
return:
type: System.Boolean
content.vb: Public Property IsLeftRecursive As Boolean
overload: NMF.AnyText.Rules.Rule.IsLeftRecursive*
- uid: NMF.AnyText.Rules.Rule.Continuations
commentId: P:NMF.AnyText.Rules.Rule.Continuations
id: Continuations
parent: NMF.AnyText.Rules.Rule
langs:
- csharp
- vb
name: Continuations
nameWithType: Rule.Continuations
fullName: NMF.AnyText.Rules.Rule.Continuations
type: Property
source:
remote:
path: AnyText/AnyText.Core/Rules/Rule.cs
branch: main
repo: https://github.com/NMFCode/NMF.git
id: Continuations
path: src/AnyText/AnyText.Core/Rules/Rule.cs
startLine: 183
assemblies:
- NMF.AnyText.Core
namespace: NMF.AnyText.Rules
summary: Gets a collection of recursive continuations for this rule
example: []
syntax:
content: public IReadOnlyCollection<RecursiveContinuation> Continuations { get; }
parameters: []
return:
type: System.Collections.Generic.IReadOnlyCollection{NMF.AnyText.Rules.RecursiveContinuation}
content.vb: Public Property Continuations As IReadOnlyCollection(Of RecursiveContinuation)
overload: NMF.AnyText.Rules.Rule.Continuations*
- uid: NMF.AnyText.Rules.Rule.CanSynthesize(System.Object,NMF.AnyText.ParseContext)
commentId: M:NMF.AnyText.Rules.Rule.CanSynthesize(System.Object,NMF.AnyText.ParseContext)
id: CanSynthesize(System.Object,NMF.AnyText.ParseContext)
parent: NMF.AnyText.Rules.Rule
langs:
- csharp
- vb
name: CanSynthesize(object, ParseContext)
nameWithType: Rule.CanSynthesize(object, ParseContext)
fullName: NMF.AnyText.Rules.Rule.CanSynthesize(object, NMF.AnyText.ParseContext)
type: Method
source:
remote:
path: AnyText/AnyText.Core/Rules/Rule.cs
branch: main
repo: https://github.com/NMFCode/NMF.git
id: CanSynthesize
path: src/AnyText/AnyText.Core/Rules/Rule.cs
startLine: 191
assemblies:
- NMF.AnyText.Core
namespace: NMF.AnyText.Rules
summary: Determines whether the current rule can synthesize rule applications for the given semantic element
example: []
syntax:
content: public bool CanSynthesize(object semanticElement, ParseContext context)
parameters:
- id: semanticElement
type: System.Object
description: the semantic element
- id: context
type: NMF.AnyText.ParseContext
description: the context in which the rule is synthesized
return:
type: System.Boolean
description: true, if a rule application can be synthesized, otherwise false
content.vb: Public Function CanSynthesize(semanticElement As Object, context As ParseContext) As Boolean
overload: NMF.AnyText.Rules.Rule.CanSynthesize*
nameWithType.vb: Rule.CanSynthesize(Object, ParseContext)
fullName.vb: NMF.AnyText.Rules.Rule.CanSynthesize(Object, NMF.AnyText.ParseContext)
name.vb: CanSynthesize(Object, ParseContext)
- uid: NMF.AnyText.Rules.Rule.CanSynthesize(System.Object,NMF.AnyText.ParseContext,NMF.AnyText.SynthesisPlan)
commentId: M:NMF.AnyText.Rules.Rule.CanSynthesize(System.Object,NMF.AnyText.ParseContext,NMF.AnyText.SynthesisPlan)
id: CanSynthesize(System.Object,NMF.AnyText.ParseContext,NMF.AnyText.SynthesisPlan)
parent: NMF.AnyText.Rules.Rule
langs:
- csharp
- vb
name: CanSynthesize(object, ParseContext, SynthesisPlan)
nameWithType: Rule.CanSynthesize(object, ParseContext, SynthesisPlan)
fullName: NMF.AnyText.Rules.Rule.CanSynthesize(object, NMF.AnyText.ParseContext, NMF.AnyText.SynthesisPlan)
type: Method
source:
remote:
path: AnyText/AnyText.Core/Rules/Rule.cs