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

◆ ProcessSubstitutionGroups()

void System.Xml.Schema.Compiler.ProcessSubstitutionGroups ( )
inlineprivate

Definition at line 410 of file Compiler.cs.

411 {
412 foreach (XmlSchemaElement value in _elements.Values)
413 {
414 if (value.SubstitutionGroup.IsEmpty)
415 {
416 continue;
417 }
418 if (!(_elements[value.SubstitutionGroup] is XmlSchemaElement xmlSchemaElement2))
419 {
421 continue;
422 }
423 if (!XmlSchemaType.IsDerivedFrom(value.ElementSchemaType, xmlSchemaElement2.ElementSchemaType, xmlSchemaElement2.FinalResolved))
424 {
425 SendValidationEvent(System.SR.Sch_InvalidSubstitutionMember, value.QualifiedName.ToString(), xmlSchemaElement2.QualifiedName.ToString(), value);
426 }
427 XmlSchemaSubstitutionGroup xmlSchemaSubstitutionGroup = (XmlSchemaSubstitutionGroup)_examplars[value.SubstitutionGroup];
428 if (xmlSchemaSubstitutionGroup == null)
429 {
430 xmlSchemaSubstitutionGroup = new XmlSchemaSubstitutionGroup();
431 xmlSchemaSubstitutionGroup.Examplar = value.SubstitutionGroup;
433 }
435 if (!members.Contains(value))
436 {
438 }
439 }
440 foreach (XmlSchemaSubstitutionGroup value2 in _examplars.Values)
441 {
443 }
444 }
bool ICollection< KeyValuePair< TKey, TValue > >. Contains(KeyValuePair< TKey, TValue > keyValuePair)
void Add(TKey key, TValue value)
static string Sch_InvalidSubstitutionMember
Definition SR.cs:946
static string Sch_NoExamplar
Definition SR.cs:944
Definition SR.cs:7
void SendValidationEvent(string code, XmlSchemaObject source)
readonly XmlSchemaObjectTable _elements
Definition Compiler.cs:16
void CompileSubstitutionGroup(XmlSchemaSubstitutionGroup substitutionGroup)
Definition Compiler.cs:446
readonly XmlSchemaObjectTable _examplars
Definition Compiler.cs:24
void Add(XmlQualifiedName name, XmlSchemaObject value)

References System.Xml.Schema.Compiler._elements, System.Xml.Schema.Compiler._examplars, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Xml.Schema.XmlSchemaObjectTable.Add(), System.Xml.Schema.Compiler.CompileSubstitutionGroup(), System.Collections.Generic.Dictionary< TKey, TValue >.Contains(), System.Xml.Dictionary, System.Xml.Schema.XmlSchemaType.IsDerivedFrom(), System.SR.Sch_InvalidSubstitutionMember, System.SR.Sch_NoExamplar, System.Xml.Schema.BaseProcessor.SendValidationEvent(), System.value, and System.Xml.Schema.XmlSchemaObjectTable.Values.

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