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