2 implementations of IItem
System.Speech (2)
Internal\SrgsCompiler\Item.cs (1)
8internal sealed class Item : ParseElementCollection, IItem
Recognition\SrgsGrammar\SrgsItem.cs (1)
17public class SrgsItem : SrgsElement, IItem
25 references to IItem
System.Speech (25)
Internal\GrammarBuilding\BuilderElements.cs (1)
167internal void CreateChildrenElements(IElementFactory elementFactory, IItem parent, IRule rule, IdentifierCollection ruleIds)
Internal\GrammarBuilding\ItemElement.cs (1)
90IItem item = elementFactory.CreateItem(parent, rule, _minRepeat, _maxRepeat, 0.5f, 1f);
Internal\GrammarBuilding\OneOfElement.cs (2)
38IItem element = (IItem)newItem.CreateElement(elementFactory, oneOf, rule, ruleIds);
Internal\GrammarBuilding\TagElement.cs (1)
70if (parent is IItem item)
Internal\SrgsCompiler\SrgsElementCompilerFactory.cs (3)
55IItem IElementFactory.CreateItem(IElement? parent, IRule rule, int minRepeat, int maxRepeat, float repeatProbability, float weight) 143void IElementFactory.AddItem(IOneOf oneOf, IItem item) 151void IElementFactory.AddElement(IItem item, IElement value)
Internal\SrgsParser\IElementFactory.cs (3)
18IItem CreateItem(IElement? parent, IRule rule, int minRepeat, int maxRepeat, float repeatProbability, float weight); 35void AddItem(IOneOf oneOf, IItem value); 37void AddElement(IItem item, IElement value);
Internal\SrgsParser\SrgsDocumentParser.cs (5)
190private IItem ParseItem(SrgsItem srgsItem, IElement parent, IRule rule) 192IItem item = _parser.CreateItem(parent, rule, srgsItem.MinRepeat, srgsItem.MaxRepeat, srgsItem.RepeatProbability, srgsItem.Weight); 289IItem? parentItem = parent as IItem; 357if (child is IItem childItem)
Internal\SrgsParser\XmlParser.cs (6)
804private IItem ParseItem(IElement parent, IRule rule, XmlReader reader) 849IItem item = _parser.CreateItem(parent, rule, minRepeat, maxRepeat, repeatProbability, weight); 1369if ((parent is IRule) || (parent is IItem)) 1452if (parent is IItem parentItem) 1475if (child is IItem childItem) 1492if (parent is IItem parentItem)
Recognition\SrgsGrammar\SrgsElementFactory.cs (3)
92IItem IElementFactory.CreateItem(IElement? parent, IRule? rule, int minRepeat, int maxRepeat, float repeatProbability, float weight) 173void IElementFactory.AddItem(IOneOf oneOf, IItem value) 183void IElementFactory.AddElement(IItem item, IElement value)