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

◆ CompileSimpleContentExtension()

void System.Xml.Schema.SchemaCollectionCompiler.CompileSimpleContentExtension ( XmlSchemaComplexType complexType,
XmlSchemaSimpleContentExtension simpleExtension )
inlineprivate

Definition at line 735 of file SchemaCollectionCompiler.cs.

736 {
737 XmlSchemaComplexType xmlSchemaComplexType = null;
738 if (complexType.Redefined != null && simpleExtension.BaseTypeName == complexType.Redefined.QualifiedName)
739 {
740 xmlSchemaComplexType = (XmlSchemaComplexType)complexType.Redefined;
742 complexType.SetBaseSchemaType(xmlSchemaComplexType);
743 complexType.SetDatatype(xmlSchemaComplexType.Datatype);
744 }
745 else
746 {
747 XmlSchemaType anySchemaType = GetAnySchemaType(simpleExtension.BaseTypeName);
748 if (anySchemaType == null)
749 {
751 }
752 else
753 {
754 complexType.SetBaseSchemaType(anySchemaType);
755 complexType.SetDatatype(anySchemaType.Datatype);
756 }
757 xmlSchemaComplexType = anySchemaType as XmlSchemaComplexType;
758 }
759 if (xmlSchemaComplexType != null)
760 {
761 if ((xmlSchemaComplexType.FinalResolved & XmlSchemaDerivationMethod.Extension) != 0)
762 {
764 }
765 if (xmlSchemaComplexType.ContentType != 0)
766 {
768 }
769 }
770 complexType.SetDerivedBy(XmlSchemaDerivationMethod.Extension);
771 CompileLocalAttributes(xmlSchemaComplexType, complexType, simpleExtension.Attributes, simpleExtension.AnyAttribute, XmlSchemaDerivationMethod.Extension);
772 }
static string Sch_NotSimpleContent
Definition SR.cs:962
static string Sch_UndeclaredType
Definition SR.cs:558
static string Sch_BaseFinalExtension
Definition SR.cs:960
Definition SR.cs:7
void SendValidationEvent(string code, XmlSchemaObject source)
void CompileLocalAttributes(XmlSchemaComplexType baseType, XmlSchemaComplexType derivedType, XmlSchemaObjectCollection attributes, XmlSchemaAnyAttribute anyAttribute, XmlSchemaDerivationMethod derivedBy)
XmlSchemaType GetAnySchemaType(XmlQualifiedName name)
void CompileComplexType(XmlSchemaComplexType complexType)

References System.Xml.Schema.SchemaCollectionCompiler.CompileComplexType(), System.Xml.Schema.SchemaCollectionCompiler.CompileLocalAttributes(), System.Xml.Schema.SchemaCollectionCompiler.GetAnySchemaType(), System.SR.Sch_BaseFinalExtension, System.SR.Sch_NotSimpleContent, System.SR.Sch_UndeclaredType, and System.Xml.Schema.BaseProcessor.SendValidationEvent().

Referenced by System.Xml.Schema.SchemaCollectionCompiler.CompileComplexType().