internal bool ChildDefSupported(ElementDef def) { if (childDefs == null) { throw new Exception($"{name} does not support child elements."); } return(childDefs.Contains(def)); }
internal int GetInternalOrder(ElementDef childDef) { var index = memberDefs.IndexOf(childDef); if (index == -1) { throw new Exception($"Element {childDef.name} is not supported."); } return(index); }
internal int GetInternalOrder(ElementDef childDef) { var index = elementDefs.IndexOf(childDef); if (index == -1) { throw new Exception($"Element {childDef.name} is not supported."); } return(elementMap != null ? elementMap[index] : index); }
public ElementDef(ElementDef other) : base(other) { name = other.name; required = other.required; }