private static EMElement CreateItem(Match match, EMDocument doc, EMElementOrigin origin, EMElement parent, TransformationData data) { var item = new EMDefinitionListItem(doc, origin, parent); item.Parse(doc, match, data); return(item); }
private static IParser GetParserByType(EMListType type) { switch (type) { case EMListType.Ordered: return(EMListItem.GetOrderedParser()); case EMListType.Unordered: return(EMListItem.GetUnorderedParser()); case EMListType.Definition: return(EMDefinitionListItem.GetParser()); default: throw new NotSupportedException("List type not supported."); } }