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

◆ ElementIdentityConstraints()

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

Definition at line 2086 of file XmlSchemaValidator.cs.

2087 {
2088 SchemaElementDecl elementDecl = _context.ElementDecl;
2089 string localName = _context.LocalName;
2090 string @namespace = _context.Namespace;
2091 for (int i = _startIDConstraint; i < _validationStack.Length; i++)
2092 {
2093 if (((ValidationState)_validationStack[i]).Constr == null)
2094 {
2095 continue;
2096 }
2097 ConstraintStruct[] constr = ((ValidationState)_validationStack[i]).Constr;
2098 for (int j = 0; j < constr.Length; j++)
2099 {
2100 if (constr[j].axisSelector.MoveToStartElement(localName, @namespace))
2101 {
2102 constr[j].axisSelector.PushKS(_positionInfo.LineNumber, _positionInfo.LinePosition);
2103 }
2104 for (int k = 0; k < constr[j].axisFields.Count; k++)
2105 {
2106 LocatedActiveAxis locatedActiveAxis = (LocatedActiveAxis)constr[j].axisFields[k];
2107 if (locatedActiveAxis.MoveToStartElement(localName, @namespace) && elementDecl != null)
2108 {
2109 if (elementDecl.Datatype == null || elementDecl.ContentValidator.ContentType == XmlSchemaContentType.Mixed)
2110 {
2111 SendValidationEvent(System.SR.Sch_FieldSimpleTypeExpected, localName);
2112 }
2113 else
2114 {
2115 locatedActiveAxis.isMatched = true;
2116 }
2117 }
2118 }
2119 }
2120 }
2121 }
static string Sch_FieldSimpleTypeExpected
Definition SR.cs:738
Definition SR.cs:7

References System.Xml.Schema.XmlSchemaValidator._context, System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Xml.Dictionary, System.Xml.Schema.ValidationState.ElementDecl, System.Xml.HWStack.Length, System.Xml.IXmlLineInfo.LineNumber, System.Xml.IXmlLineInfo.LinePosition, System.Xml.Schema.ValidationState.LocalName, and System.SR.Sch_FieldSimpleTypeExpected.

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