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

◆ CleanupComplexType()

static void System.Xml.Schema.SchemaCollectionCompiler.CleanupComplexType ( XmlSchemaComplexType complexType)
inlinestaticprivate

Definition at line 290 of file SchemaCollectionCompiler.cs.

291 {
292 if (complexType.ContentModel != null)
293 {
294 if (complexType.ContentModel is XmlSchemaSimpleContent)
295 {
296 XmlSchemaSimpleContent xmlSchemaSimpleContent = (XmlSchemaSimpleContent)complexType.ContentModel;
297 if (xmlSchemaSimpleContent.Content is XmlSchemaSimpleContentExtension)
298 {
299 XmlSchemaSimpleContentExtension xmlSchemaSimpleContentExtension = (XmlSchemaSimpleContentExtension)xmlSchemaSimpleContent.Content;
301 }
302 else
303 {
304 XmlSchemaSimpleContentRestriction xmlSchemaSimpleContentRestriction = (XmlSchemaSimpleContentRestriction)xmlSchemaSimpleContent.Content;
306 }
307 }
308 else
309 {
310 XmlSchemaComplexContent xmlSchemaComplexContent = (XmlSchemaComplexContent)complexType.ContentModel;
311 if (xmlSchemaComplexContent.Content is XmlSchemaComplexContentExtension)
312 {
313 XmlSchemaComplexContentExtension xmlSchemaComplexContentExtension = (XmlSchemaComplexContentExtension)xmlSchemaComplexContent.Content;
316 }
317 else
318 {
319 XmlSchemaComplexContentRestriction xmlSchemaComplexContentRestriction = (XmlSchemaComplexContentRestriction)xmlSchemaComplexContent.Content;
322 }
323 }
324 }
325 else
326 {
328 CleanupAttributes(complexType.Attributes);
329 }
330 complexType.LocalElements.Clear();
331 complexType.AttributeUses.Clear();
332 complexType.SetAttributeWildcard(null);
333 complexType.SetContentTypeParticle(XmlSchemaParticle.Empty);
335 }
static void CleanupAttributes(XmlSchemaObjectCollection attributes)
static void CleanupParticle(XmlSchemaParticle particle)

References System.Xml.Schema.SchemaCollectionCompiler.CleanupAttributes(), System.Xml.Schema.SchemaCollectionCompiler.CleanupParticle(), System.Collections.Generic.Dictionary< TKey, TValue >.Clear(), System.Xml.Dictionary, and System.Xml.Schema.XmlSchemaParticle.Empty.

Referenced by System.Xml.Schema.SchemaCollectionCompiler.Cleanup(), System.Xml.Schema.SchemaCollectionCompiler.Cleanup(), and System.Xml.Schema.SchemaCollectionCompiler.CleanupElement().