2 implementations of IRule
System.Speech (2)
Internal\SrgsCompiler\Rule.cs (1)
14internal sealed class Rule : ParseElementCollection, IRule, IComparable<Rule>
Recognition\SrgsGrammar\SrgsRule.cs (1)
17public class SrgsRule : IRule
50 references to IRule
System.Speech (50)
Internal\GrammarBuilding\BuilderElements.cs (2)
154internal void CreateChildrenElements(IElementFactory elementFactory, IRule parent, IdentifierCollection ruleIds) 167internal void CreateChildrenElements(IElementFactory elementFactory, IItem parent, IRule rule, IdentifierCollection ruleIds)
Internal\GrammarBuilding\GrammarBuilderBase.cs (1)
15internal abstract IElement? CreateElement(IElementFactory elementFactory, IElement parent, IRule rule, IdentifierCollection ruleIds);
Internal\GrammarBuilding\GrammarBuilderDictation.cs (1)
49internal override IElement CreateElement(IElementFactory elementFactory, IElement parent, IRule rule, IdentifierCollection ruleIds)
Internal\GrammarBuilding\GrammarBuilderPhrase.cs (1)
80internal override IElement? CreateElement(IElementFactory elementFactory, IElement parent, IRule rule, IdentifierCollection ruleIds)
Internal\GrammarBuilding\GrammarBuilderRuleRef.cs (1)
49internal override IElement CreateElement(IElementFactory elementFactory, IElement parent, IRule? rule, IdentifierCollection ruleIds)
Internal\GrammarBuilding\GrammarBuilderWildcard.cs (1)
39internal override IElement CreateElement(IElementFactory elementFactory, IElement parent, IRule? rule, IdentifierCollection ruleIds)
Internal\GrammarBuilding\ItemElement.cs (1)
86internal override IElement CreateElement(IElementFactory elementFactory, IElement parent, IRule rule, IdentifierCollection ruleIds)
Internal\GrammarBuilding\OneOfElement.cs (1)
30internal override IElement CreateElement(IElementFactory elementFactory, IElement parent, IRule rule, IdentifierCollection ruleIds)
Internal\GrammarBuilding\RuleElement.cs (2)
57internal override IElement CreateElement(IElementFactory elementFactory, IElement parent, IRule? rule, IdentifierCollection ruleIds) 117private IRule? _rule;
Internal\GrammarBuilding\RuleRefElement.cs (1)
62internal override IElement CreateElement(IElementFactory elementFactory, IElement parent, IRule? rule, IdentifierCollection ruleIds)
Internal\GrammarBuilding\SemanticKeyElement.cs (1)
70internal override IElement CreateElement(IElementFactory elementFactory, IElement parent, IRule? rule, IdentifierCollection ruleIds)
Internal\GrammarBuilding\TagElement.cs (1)
67internal override IElement CreateElement(IElementFactory elementFactory, IElement parent, IRule rule, IdentifierCollection ruleIds)
Internal\SrgsCompiler\GrammarElement.cs (1)
38IRule IGrammar.CreateRule(string id, RulePublic publicRule, RuleDynamic dynamic, bool hasScript)
Internal\SrgsCompiler\Rule.cs (2)
184void IRule.CreateScript(IGrammar grammar, string rule, string method, RuleMethodScript type) 201string? IRule.BaseClass
Internal\SrgsCompiler\RuleRef.cs (1)
112((IRule)rule).PostParse(parent);
Internal\SrgsCompiler\SrgsElementCompilerFactory.cs (3)
55IItem IElementFactory.CreateItem(IElement? parent, IRule rule, int minRepeat, int maxRepeat, float repeatProbability, float weight) 75IOneOf IElementFactory.CreateOneOf(IElement? parent, IRule rule) 147void IElementFactory.AddElement(IRule rule, IElement value)
Internal\SrgsParser\IElementFactory.cs (3)
18IItem CreateItem(IElement? parent, IRule rule, int minRepeat, int maxRepeat, float repeatProbability, float weight); 22IOneOf CreateOneOf(IElement parent, IRule rule); 36void AddElement(IRule rule, IElement value);
Internal\SrgsParser\IGrammar.cs (1)
14IRule CreateRule(string id, RulePublic publicRule, RuleDynamic dynamic, bool hasSCript);
Internal\SrgsParser\SrgsDocumentParser.cs (8)
74IRule rule = ParseRule(grammar, srgsRule); 94private IRule ParseRule(IGrammar grammar, SrgsRule srgsRule) 98IRule rule = grammar.CreateRule(id, srgsRule.Scope == SrgsRuleScope.Public ? RulePublic.True : RulePublic.False, srgsRule.Dynamic, hasScript); 174private IOneOf ParseOneOf(SrgsOneOf srgsOneOf, IElement parent, IRule rule) 190private IItem ParseItem(SrgsItem srgsItem, IElement parent, IRule rule) 284private void ProcessChildNodes(SrgsElement srgsElement, IElement parent, IRule rule) 288IRule? parentRule = parent as IRule;
Internal\SrgsParser\XmlParser.cs (10)
497private IRule ParseRule(IGrammar grammar, XmlReader reader) 625IRule rule = grammar.CreateRule(id, publicRule, ruleDynamic, hasScript); 776private IOneOf ParseOneOf(IElement parent, IRule rule, XmlReader reader) 804private IItem ParseItem(IElement parent, IRule rule, XmlReader reader) 1289private bool ProcessChildNodes(XmlReader reader, IElement? parent, IRule rule, string parentName) 1320if (!(parent is IRule) || !fFirstElement) 1369if ((parent is IRule) || (parent is IItem)) 1446if (parent is IRule parentRule) 1486if (parent is IRule parentRule) 1555IRule rule = ParseRule(grammar, reader);
Recognition\GrammarBuilder.cs (2)
476internal override IElement? CreateElement(IElementFactory elementFactory, IElement? parent, IRule? rule, IdentifierCollection ruleIds) 495IRule root = elementFactory.Grammar.CreateRule(rootId, RulePublic.False, RuleDynamic.NotSet, false);
Recognition\SrgsGrammar\SrgsElementFactory.cs (3)
92IItem IElementFactory.CreateItem(IElement? parent, IRule? rule, int minRepeat, int maxRepeat, float repeatProbability, float weight) 114IOneOf IElementFactory.CreateOneOf(IElement? parent, IRule? rule) 178void IElementFactory.AddElement(IRule rule, IElement value)
Recognition\SrgsGrammar\SrgsGrammar.cs (1)
194IRule IGrammar.CreateRule(string id, RulePublic publicRule, RuleDynamic dynamic, bool hasScript)
Recognition\SrgsGrammar\SrgsRule.cs (1)
317void IRule.CreateScript(IGrammar grammar, string rule, string method, RuleMethodScript type)