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

◆ CompileSubstitutionGroup()

void System.Xml.Schema.SchemaCollectionCompiler.CompileSubstitutionGroup ( XmlSchemaSubstitutionGroupV1Compat substitutionGroup)
inlineprivate

Definition at line 395 of file SchemaCollectionCompiler.cs.

396 {
397 if (substitutionGroup.IsProcessing && substitutionGroup.Members.Count > 0)
398 {
400 return;
401 }
402 XmlSchemaElement xmlSchemaElement = (XmlSchemaElement)_schema.Elements[substitutionGroup.Examplar];
404 {
405 return;
406 }
408 if (xmlSchemaElement != null)
409 {
410 if (xmlSchemaElement.FinalResolved == XmlSchemaDerivationMethod.All)
411 {
413 }
414 for (int i = 0; i < substitutionGroup.Members.Count; i++)
415 {
416 XmlSchemaElement xmlSchemaElement2 = (XmlSchemaElement)substitutionGroup.Members[i];
417 XmlSchemaSubstitutionGroupV1Compat xmlSchemaSubstitutionGroupV1Compat = (XmlSchemaSubstitutionGroupV1Compat)_examplars[xmlSchemaElement2.QualifiedName];
419 {
421 for (int j = 0; j < xmlSchemaSubstitutionGroupV1Compat.Choice.Items.Count; j++)
422 {
423 substitutionGroup.Choice.Items.Add(xmlSchemaSubstitutionGroupV1Compat.Choice.Items[j]);
424 }
425 }
426 else
427 {
429 }
430 }
433 }
434 else if (substitutionGroup.Members.Count > 0)
435 {
436 SendValidationEvent(System.SR.Sch_NoExamplar, (XmlSchemaElement)substitutionGroup.Members[0]);
437 }
439 }
bool ICollection< KeyValuePair< TKey, TValue > >. Contains(KeyValuePair< TKey, TValue > keyValuePair)
void Add(TKey key, TValue value)
static string Sch_SubstitutionCircularRef
Definition SR.cs:930
static string Sch_InvalidExamplar
Definition SR.cs:942
static string Sch_NoExamplar
Definition SR.cs:944
Definition SR.cs:7
void SendValidationEvent(string code, XmlSchemaObject source)
void CompileSubstitutionGroup(XmlSchemaSubstitutionGroupV1Compat substitutionGroup)
XmlSchemaObjectTable Elements
Definition XmlSchema.cs:269

References System.Xml.Schema.SchemaCollectionCompiler._examplars, System.Xml.Schema.SchemaCollectionCompiler._schema, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Xml.Schema.SchemaCollectionCompiler.CompileSubstitutionGroup(), System.Collections.Generic.Dictionary< TKey, TValue >.Contains(), System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Xml.Dictionary, System.Xml.Schema.XmlSchema.Elements, System.SR.Sch_InvalidExamplar, System.SR.Sch_NoExamplar, System.SR.Sch_SubstitutionCircularRef, and System.Xml.Schema.BaseProcessor.SendValidationEvent().

Referenced by System.Xml.Schema.SchemaCollectionCompiler.Compile(), and System.Xml.Schema.SchemaCollectionCompiler.CompileSubstitutionGroup().