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

◆ CompileSimpleContentExtension()

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

Definition at line 813 of file Compiler.cs.

814 {
815 XmlSchemaComplexType xmlSchemaComplexType = null;
816 if (complexType.Redefined != null && simpleExtension.BaseTypeName == complexType.Redefined.QualifiedName)
817 {
818 xmlSchemaComplexType = (XmlSchemaComplexType)complexType.Redefined;
820 complexType.SetBaseSchemaType(xmlSchemaComplexType);
821 complexType.SetDatatype(xmlSchemaComplexType.Datatype);
822 }
823 else
824 {
825 XmlSchemaType anySchemaType = GetAnySchemaType(simpleExtension.BaseTypeName);
826 if (anySchemaType == null)
827 {
829 }
830 else
831 {
832 complexType.SetBaseSchemaType(anySchemaType);
833 complexType.SetDatatype(anySchemaType.Datatype);
834 }
835 xmlSchemaComplexType = anySchemaType as XmlSchemaComplexType;
836 }
837 if (xmlSchemaComplexType != null)
838 {
839 if ((xmlSchemaComplexType.FinalResolved & XmlSchemaDerivationMethod.Extension) != 0)
840 {
842 }
843 if (xmlSchemaComplexType.ContentType != 0)
844 {
846 }
847 }
848 complexType.SetDerivedBy(XmlSchemaDerivationMethod.Extension);
849 CompileLocalAttributes(xmlSchemaComplexType, complexType, simpleExtension.Attributes, simpleExtension.AnyAttribute, XmlSchemaDerivationMethod.Extension);
850 }
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)
XmlSchemaType GetAnySchemaType(XmlQualifiedName name)
Definition Compiler.cs:2740
void CompileLocalAttributes(XmlSchemaComplexType baseType, XmlSchemaComplexType derivedType, XmlSchemaObjectCollection attributes, XmlSchemaAnyAttribute anyAttribute, XmlSchemaDerivationMethod derivedBy)
Definition Compiler.cs:1907
void CompileComplexType(XmlSchemaComplexType complexType)
Definition Compiler.cs:730

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

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