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

◆ CheckParticleDerivation() [1/2]

void System.Xml.Schema.Compiler.CheckParticleDerivation ( XmlSchemaComplexType complexType)
inlineprivate

Definition at line 1037 of file Compiler.cs.

1038 {
1039 XmlSchemaComplexType xmlSchemaComplexType = complexType.BaseXmlSchemaType as XmlSchemaComplexType;
1040 _restrictionErrorMsg = null;
1041 if (xmlSchemaComplexType != null && xmlSchemaComplexType != XmlSchemaComplexType.AnyType && complexType.DerivedBy == XmlSchemaDerivationMethod.Restriction)
1042 {
1043 XmlSchemaParticle derivedParticle = CannonicalizePointlessRoot(complexType.ContentTypeParticle);
1044 XmlSchemaParticle baseParticle = CannonicalizePointlessRoot(xmlSchemaComplexType.ContentTypeParticle);
1046 {
1047 if (_restrictionErrorMsg != null)
1048 {
1050 }
1051 else
1052 {
1054 }
1055 }
1056 }
1057 else
1058 {
1059 if (xmlSchemaComplexType != XmlSchemaComplexType.AnyType)
1060 {
1061 return;
1062 }
1063 foreach (XmlSchemaElement value in complexType.LocalElements.Values)
1064 {
1065 if (!value.IsLocalTypeDerivationChecked && value.ElementSchemaType is XmlSchemaComplexType complexType2 && value.SchemaTypeName == XmlQualifiedName.Empty && value.RefName == XmlQualifiedName.Empty)
1066 {
1069 }
1070 }
1071 }
1072 }
static string Sch_InvalidParticleRestriction
Definition SR.cs:988
static string Sch_InvalidParticleRestrictionDetailed
Definition SR.cs:990
Definition SR.cs:7
void SendValidationEvent(string code, XmlSchemaObject source)
void CheckParticleDerivation(XmlSchemaComplexType complexType)
Definition Compiler.cs:1037
bool IsValidRestriction(XmlSchemaParticle derivedParticle, XmlSchemaParticle baseParticle)
Definition Compiler.cs:1368
XmlSchemaParticle CannonicalizePointlessRoot(XmlSchemaParticle particle)
Definition Compiler.cs:1325

References System.Xml.Schema.Compiler._restrictionErrorMsg, System.Xml.Schema.XmlSchemaComplexType.AnyType, System.Xml.Schema.Compiler.CannonicalizePointlessRoot(), System.Xml.Schema.Compiler.CheckParticleDerivation(), System.Xml.Dictionary, System.Xml.XmlQualifiedName.Empty, System.Xml.Schema.Compiler.IsValidRestriction(), System.SR.Sch_InvalidParticleRestriction, System.SR.Sch_InvalidParticleRestrictionDetailed, System.Xml.Schema.BaseProcessor.SendValidationEvent(), System.value, and System.Collections.Generic.Dictionary< TKey, TValue >.Values.

Referenced by System.Xml.Schema.Compiler.CheckParticleDerivation(), System.Xml.Schema.Compiler.Compile(), and System.Xml.Schema.Compiler.RecursivelyCheckRedefinedGroups().