Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ElementIdentityConstraints()

void System.Xml.Schema.XsdValidator.ElementIdentityConstraints ( )
inlineprivate

Definition at line 855 of file XsdValidator.cs.

856 {
857 for (int i = _startIDConstraint; i < _validationStack.Length; i++)
858 {
859 if (((ValidationState)_validationStack[i]).Constr == null)
860 {
861 continue;
862 }
863 ConstraintStruct[] constr = ((ValidationState)_validationStack[i]).Constr;
864 for (int j = 0; j < constr.Length; j++)
865 {
866 if (constr[j].axisSelector.MoveToStartElement(reader.LocalName, reader.NamespaceURI))
867 {
868 constr[j].axisSelector.PushKS(base.PositionInfo.LineNumber, base.PositionInfo.LinePosition);
869 }
870 for (int k = 0; k < constr[j].axisFields.Count; k++)
871 {
872 LocatedActiveAxis locatedActiveAxis = (LocatedActiveAxis)constr[j].axisFields[k];
873 if (locatedActiveAxis.MoveToStartElement(reader.LocalName, reader.NamespaceURI) && context.ElementDecl != null)
874 {
875 if (context.ElementDecl.Datatype == null)
876 {
878 }
879 else
880 {
882 }
883 }
884 }
885 }
886 }
887 }
static string Sch_FieldSimpleTypeExpected
Definition SR.cs:738
Definition SR.cs:7
void SendValidationEvent(string code)
XmlValidatingReaderImpl reader

References System.Xml.Schema.XsdValidator._startIDConstraint, System.Xml.Schema.XsdValidator._validationStack, System.Xml.Schema.ConstraintStruct.axisSelector, System.Xml.Schema.BaseValidator.context, System.Xml.Schema.SchemaDeclBase.Datatype, System.Xml.Dictionary, System.Xml.Schema.ValidationState.ElementDecl, System.Xml.HWStack.Length, System.Xml.XmlValidatingReaderImpl.LocalName, System.Xml.XmlValidatingReaderImpl.NamespaceURI, System.Xml.Schema.SelectorActiveAxis.PushKS(), System.Xml.Schema.BaseValidator.reader, System.SR.Sch_FieldSimpleTypeExpected, and System.Xml.Schema.BaseValidator.SendValidationEvent().

Referenced by System.Xml.Schema.XsdValidator.ValidateStartElementIdentityConstraints().