1 instantiation of SrgsRule
System.Speech (1)
Recognition\SrgsGrammar\SrgsGrammar.cs (1)
196
SrgsRule rule =
new
(id);
31 references to SrgsRule
System.Speech (31)
Internal\SrgsCompiler\AppDomainGrammarProxy.cs (2)
19
internal
SrgsRule
[]? OnInit(string method, object[]? parameters, string? onInitParameters, out Exception? exceptionThrown)
50
return (
SrgsRule
[]?)onInit?.Invoke(_grammar, parameters);
Internal\SrgsParser\SrgsDocumentParser.cs (2)
72
foreach (
SrgsRule
srgsRule in source.Rules)
94
private IRule ParseRule(IGrammar grammar,
SrgsRule
srgsRule)
Recognition\Grammar.cs (6)
616
SrgsRule
[]? extraRules = RunOnInit(IsStg); // list of extra rule to append to the current CFG
943
private static MemoryStream CombineCfg(string? rule, Stream stream,
SrgsRule
[] extraRules)
950
foreach (
SrgsRule
srgsRule in extraRules)
983
private
SrgsRule
[]? RunOnInit(bool stg)
985
SrgsRule
[]? extraRules = null;
1019
extraRules = (
SrgsRule
[]?)onInit.Invoke(this, _parameters);
Recognition\SrgsGrammar\SrgsDocument.cs (2)
66
public SrgsDocument(
SrgsRule
grammarRootRule) : this()
133
public
SrgsRule
? Root
Recognition\SrgsGrammar\SrgsElementFactory.cs (2)
151
SrgsRule
rule = srgsGrammar.Rules[sRule];
180
((
SrgsRule
)rule).Elements.Add((SrgsElement)value);
Recognition\SrgsGrammar\SrgsGrammar.cs (8)
120
foreach (
SrgsRule
rule in _rules)
147
foreach (
SrgsRule
rule in _rules)
196
SrgsRule
rule = new(id);
211
foreach (
SrgsRule
rule in Rules)
230
SrgsRule
rule = Rules[script._name];
344
public
SrgsRule
? Root
620
foreach (
SrgsRule
rule in _rules)
656
private
SrgsRule
? _root;
Recognition\SrgsGrammar\SrgsRule.cs (2)
429
public SrgsRuleDebugDisplay(
SrgsRule
rule)
519
private
SrgsRule
_rule;
Recognition\SrgsGrammar\SrgsRuleRef.cs (4)
41
public SrgsRuleRef(
SrgsRule
rule)
47
public SrgsRuleRef(
SrgsRule
rule, string semanticKey)
54
public SrgsRuleRef(
SrgsRule
rule, string semanticKey, string parameters)
198
foreach (
SrgsRule
rule in grammar.Rules)
Recognition\SrgsGrammar\SrgsRulesCollection.cs (3)
10
public sealed class SrgsRulesCollection : KeyedCollection<string,
SrgsRule
>
12
public void Add(params
SrgsRule
[] rules)
25
protected override string GetKeyForItem(
SrgsRule
rule)