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

◆ CleanupComplexType()

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

Definition at line 285 of file Compiler.cs.

286 {
287 if (complexType.QualifiedName == DatatypeImplementation.QnAnyType)
288 {
289 return;
290 }
291 if (complexType.ContentModel != null)
292 {
293 if (complexType.ContentModel is XmlSchemaSimpleContent)
294 {
295 XmlSchemaSimpleContent xmlSchemaSimpleContent = (XmlSchemaSimpleContent)complexType.ContentModel;
296 if (xmlSchemaSimpleContent.Content is XmlSchemaSimpleContentExtension)
297 {
298 XmlSchemaSimpleContentExtension xmlSchemaSimpleContentExtension = (XmlSchemaSimpleContentExtension)xmlSchemaSimpleContent.Content;
300 }
301 else
302 {
303 XmlSchemaSimpleContentRestriction xmlSchemaSimpleContentRestriction = (XmlSchemaSimpleContentRestriction)xmlSchemaSimpleContent.Content;
305 }
306 }
307 else
308 {
309 XmlSchemaComplexContent xmlSchemaComplexContent = (XmlSchemaComplexContent)complexType.ContentModel;
310 if (xmlSchemaComplexContent.Content is XmlSchemaComplexContentExtension)
311 {
312 XmlSchemaComplexContentExtension xmlSchemaComplexContentExtension = (XmlSchemaComplexContentExtension)xmlSchemaComplexContent.Content;
315 }
316 else
317 {
318 XmlSchemaComplexContentRestriction xmlSchemaComplexContentRestriction = (XmlSchemaComplexContentRestriction)xmlSchemaComplexContent.Content;
321 }
322 }
323 }
324 else
325 {
327 CleanupAttributes(complexType.Attributes);
328 }
329 complexType.LocalElements.Clear();
330 complexType.AttributeUses.Clear();
331 complexType.SetAttributeWildcard(null);
332 complexType.SetContentTypeParticle(XmlSchemaParticle.Empty);
335 if (complexType.Redefined != null)
336 {
337 CleanupComplexType(complexType.Redefined as XmlSchemaComplexType);
338 }
339 }
void CleanupParticle(XmlSchemaParticle particle)
Definition Compiler.cs:395
void CleanupComplexType(XmlSchemaComplexType complexType)
Definition Compiler.cs:285
void CleanupAttributes(XmlSchemaObjectCollection attributes)
Definition Compiler.cs:374

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

Referenced by System.Xml.Schema.Compiler.CleanupComplexType(), System.Xml.Schema.Compiler.CleanupElement(), and System.Xml.Schema.Compiler.Prepare().