3 writes to
System.Private.Xml (3)
System\Xml\Schema\XmlSchemaComplexType.cs (3)
427
newAttributes
[
i] = newAttGroupRef;
434
newAttributes
[
i] = att.Clone();
450
newParticles
[
i] = CloneParticle(p, parentSchema);
212 references to
System.Private.DataContractSerialization (4)
System\Runtime\Serialization\SchemaImporter.cs (4)
596
if (items
[
i] is XmlSchemaElement element && element.RefName != null &&
684
XmlSchemaElement? element = rootSequence.Items
[
memberIndex] as XmlSchemaElement;
877
o = attributes
[
i];
1376
XmlSchemaObject o = attributes
[
i];
System.Private.Xml (208)
System\Xml\Schema\CompiledidEntityConstraint.cs (2)
67
_fields[idxField] = new Asttree(((XmlSchemaXPath)fields
[
idxField]).XPath!, true, nsmgr);
71
e.SetSource(constraint.Fields
[
idxField]);
System\Xml\Schema\FacetChecker.cs (1)
899
XmlSchemaFacet facet = (XmlSchemaFacet)facets
[
i];
System\Xml\Schema\Inference\Infer.cs (14)
452
XmlSchemaImport? import = parentSchema.Includes
[
i] as XmlSchemaImport;
557
XmlSchemaImport? import = parentSchema.Includes
[
i] as XmlSchemaImport;
971
if (((XmlSchemaSequence)ct.Particle).Items
[
lastUsedSeqItem].GetType() != typeof(XmlSchemaElement))
973
XmlSchemaElement subElement = (XmlSchemaElement)((XmlSchemaSequence)ct.Particle).Items
[
lastUsedSeqItem];
1059
XmlSchemaElement? el = xsch.Items
[
i] as XmlSchemaElement;
1086
XmlSchemaParticle? particle = xss.Items
[
iSeqItem] as XmlSchemaParticle;
1116
particle = xss.Items
[
iSeqItem] as XmlSchemaParticle;
1127
((XmlSchemaElement)minOccursCandidates
[
i]).MinOccurs = decimal.Zero;
1138
((XmlSchemaElement)minOccursCandidates
[
i]).MinOccurs = decimal.Zero;
1177
xsc.Items.Add(CreateNewElementforChoice((XmlSchemaElement)xss.Items
[
i]));
1286
ct.Attributes.Add(scExtension.Attributes
[
i]);
1350
XmlSchemaElement? xse = elements
[
i] as XmlSchemaElement;
1384
XmlSchemaElement? xse = elements
[
i] as XmlSchemaElement;
1418
XmlSchemaAttribute? attr = attributes
[
i] as XmlSchemaAttribute;
System\Xml\Schema\Preprocessor.cs (45)
249
XmlSchemaExternal ext = (XmlSchemaExternal)schema.Includes
[
i];
270
XmlSchemaExternal include = (XmlSchemaExternal)schema.Includes
[
i];
486
XmlSchemaExternal include = (XmlSchemaExternal)schema.Includes
[
i];
559
XmlSchemaExternal include = (XmlSchemaExternal)schema.Includes
[
i];
659
external = (XmlSchemaExternal)schema.Includes
[
i];
715
if (!(redefine.Items
[
j] is XmlSchemaAnnotation))
731
SetParent(schemaItems
[
i], schema);
732
if (schemaItems
[
i] is XmlSchemaAttribute attribute)
737
else if (schemaItems
[
i] is XmlSchemaAttributeGroup attributeGroup)
742
else if (schemaItems
[
i] is XmlSchemaComplexType complexType)
747
else if (schemaItems
[
i] is XmlSchemaSimpleType simpleType)
752
else if (schemaItems
[
i] is XmlSchemaElement element)
757
else if (schemaItems
[
i] is XmlSchemaGroup group)
762
else if (schemaItems
[
i] is XmlSchemaNotation notation)
767
else if (schemaItems
[
i] is XmlSchemaAnnotation schemaAnnotation)
773
SendValidationEvent(SR.Sch_InvalidCollection, (XmlSchemaObject)schemaItems
[
i]);
774
removeItemsList.Add(schemaItems
[
i]);
841
SetParent(items
[
i], redefine);
842
XmlSchemaGroup? group = items
[
i] as XmlSchemaGroup;
868
else if (items
[
i] is XmlSchemaAttributeGroup attributeGroup)
893
else if (items
[
i] is XmlSchemaComplexType complexType)
922
else if (items
[
i] is XmlSchemaSimpleType simpleType)
963
XmlSchemaExternal external = (XmlSchemaExternal)schema.Includes
[
i];
1038
XmlSchemaGroupRef? groupRef = items
[
i] as XmlSchemaGroupRef;
1051
else if (items
[
i] is XmlSchemaGroupBase)
1053
count += CountGroupSelfReference(((XmlSchemaGroupBase)items
[
i]).Items, name, redefined);
1082
XmlSchemaAttributeGroupRef? attrGroupRef = attributeGroup.Attributes
[
i] as XmlSchemaAttributeGroupRef;
1428
XmlSchemaIdentityConstraint identityConstraint = (XmlSchemaIdentityConstraint)element.Constraints
[
i];
1492
SetParent(constraint.Fields
[
i], constraint);
1493
ValidateIdAttribute(constraint.Fields
[
i]);
1554
SetParent(restriction.Facets
[
i], restriction);
1627
XmlSchemaSimpleType type = (XmlSchemaSimpleType)union1.BaseTypes
[
i];
1923
XmlSchemaElement element = (XmlSchemaElement)items
[
i];
1945
SetParent(items
[
i], particle);
1946
XmlSchemaElement? element = items
[
i] as XmlSchemaElement;
1953
PreprocessParticle((XmlSchemaParticle)items
[
i]);
1962
SetParent(items
[
i], particle);
1963
XmlSchemaElement? element = items
[
i] as XmlSchemaElement;
1970
PreprocessParticle((XmlSchemaParticle)items
[
i]);
2005
SetParent(attributes
[
i], parent);
2006
XmlSchemaAttribute? attr = attributes
[
i] as XmlSchemaAttribute;
2013
XmlSchemaAttributeGroupRef attributeGroupRef = (XmlSchemaAttributeGroupRef)attributes
[
i];
2022
PreprocessAnnotation(attributes
[
i]); //set parent of annotation child of attributeGroupRef
2023
ValidateIdAttribute(attributes
[
i]);
2179
annotation.Items
[
i].Parent = annotation; //Can be documentation or appInfo
System\Xml\Schema\SchemaCollectionCompiler.cs (40)
99
XmlSchemaExternal include = (XmlSchemaExternal)schema.Includes
[
i];
113
object? item = rdef.Items
[
j];
151
object item = schema.Items
[
i];
163
else if ((attrgroup = schema.Items
[
i] as XmlSchemaAttributeGroup) != null)
167
else if ((complextype = schema.Items
[
i] as XmlSchemaComplexType) != null)
171
else if ((simpletype = schema.Items
[
i] as XmlSchemaSimpleType) != null)
175
else if ((element = schema.Items
[
i] as XmlSchemaElement) != null)
179
else if ((group = schema.Items
[
i] as XmlSchemaGroup) != null)
394
((XmlSchemaIdentityConstraint)element.Constraints
[
i]).CompiledConstraint = null;
403
XmlSchemaAttribute? attribute = attributes
[
i] as XmlSchemaAttribute;
428
CleanupParticle((XmlSchemaParticle)particles
[
i]);
465
substitutionGroup.Choice.Items.Add(g.Choice.Items
[
j]);
672
XmlSchemaSimpleType st = (XmlSchemaSimpleType)mainBaseTypes
[
i];
1178
groupRefBase.Items.Add((XmlSchemaParticle)groupBase.Items
[
i]);
1196
XmlSchemaParticle p = CanonicalizeParticle((XmlSchemaElement)all.Items
[
i], false, substitution);
1241
XmlSchemaParticle p1 = CanonicalizeParticle((XmlSchemaParticle)choice.Items
[
i], false, substitution);
1249
newChoice.Items.Add(particleChoice.Items
[
j]);
1287
XmlSchemaParticle p1 = CanonicalizeParticle((XmlSchemaParticle)sequence.Items
[
i], false, substitution);
1295
newSequence.Items.Add(particleSequence.Items
[
j]);
1446
if (!IsValidRestriction((XmlSchemaParticle)derivedGroupBase.Items
[
i], baseAny))
1461
XmlSchemaParticle baseParticle = (XmlSchemaParticle)baseGroupBase.Items
[
i];
1495
XmlSchemaParticle baseParticle = (XmlSchemaParticle)baseGroupBase.Items
[
i];
1496
if ((count < derivedGroupBase.Items.Count) && IsValidRestriction((XmlSchemaParticle)derivedGroupBase.Items
[
count], baseParticle))
1521
int i = GetMappingParticle((XmlSchemaParticle)derivedSequence.Items
[
j], baseAll.Items);
1540
if (!map[i] && !IsParticleEmptiable((XmlSchemaParticle)baseAll.Items
[
i]))
1558
if (GetMappingParticle((XmlSchemaParticle)derivedSequence.Items
[
i], baseChoice.Items) < 0)
1569
XmlSchemaParticle p = (XmlSchemaParticle)sequence.Items
[
i];
1602
if (IsValidRestriction(particle, (XmlSchemaParticle)collection
[
i]))
1636
CalculateEffectiveTotalRange((XmlSchemaParticle)choice.Items
[
i], out min, out max);
1670
CalculateEffectiveTotalRange((XmlSchemaParticle)collection
[
i], out min, out max);
1729
XmlSchemaAttribute? attribute = attributeGroup.Attributes
[
i] as XmlSchemaAttribute;
1747
XmlSchemaAttributeGroupRef attributeGroupRef = (XmlSchemaAttributeGroupRef)attributeGroup.Attributes
[
i];
1789
XmlSchemaAttribute? attribute = attributes
[
i] as XmlSchemaAttribute;
1815
XmlSchemaAttributeGroupRef attributeGroupRef = (XmlSchemaAttributeGroupRef)attributes
[
i];
2318
XmlSchemaIdentityConstraint constraint = (XmlSchemaIdentityConstraint)constraints
[
i];
2371
XmlSchemaElement localElement = (XmlSchemaElement)all.Items
[
i];
2448
XmlSchemaElement localElement = (XmlSchemaElement)all.Items
[
i];
2480
DumpContentModelTo(sb, (XmlSchemaParticle)gb.Items
[
i]);
2530
XmlSchemaParticle p = (XmlSchemaParticle)particles
[
i];
2597
CompileParticleElements(complexType, (XmlSchemaParticle)particles
[
i]);
System\Xml\Schema\SchemaCollectionpreProcessor.cs (48)
73
XmlSchemaExternal include = (XmlSchemaExternal)schema.Includes
[
i];
93
XmlSchemaExternal include = (XmlSchemaExternal)schema.Includes
[
i];
140
XmlSchemaExternal include = (XmlSchemaExternal)schema.Includes
[
i];
180
XmlSchemaExternal subInc = (XmlSchemaExternal)include.Schema.Includes
[
j];
273
import = schema.Includes
[
i] as XmlSchemaImport;
361
XmlSchemaExternal include = (XmlSchemaExternal)schema.Includes
[
i];
479
XmlSchemaExternal include = (XmlSchemaExternal)schema.Includes
[
i];
490
if (!(redefine.Items
[
j] is XmlSchemaAnnotation))
537
SetParent(schema.Items
[
i], schema);
538
XmlSchemaAttribute? attribute = schema.Items
[
i] as XmlSchemaAttribute;
544
else if (schema.Items
[
i] is XmlSchemaAttributeGroup attributeGroup)
549
else if (schema.Items
[
i] is XmlSchemaComplexType complexType)
554
else if (schema.Items
[
i] is XmlSchemaSimpleType simpleType)
559
else if (schema.Items
[
i] is XmlSchemaElement element)
564
else if (schema.Items
[
i] is XmlSchemaGroup group)
569
else if (schema.Items
[
i] is XmlSchemaNotation notation)
574
else if (!(schema.Items
[
i] is XmlSchemaAnnotation))
576
SendValidationEvent(SR.Sch_InvalidCollection, schema.Items
[
i]);
577
removeItemsList.Add(schema.Items
[
i]);
592
SetParent(redefine.Items
[
i], redefine);
593
XmlSchemaGroup? group = redefine.Items
[
i] as XmlSchemaGroup;
615
else if (redefine.Items
[
i] is XmlSchemaAttributeGroup attributeGroup)
636
else if (redefine.Items
[
i] is XmlSchemaComplexType complexType)
665
else if (redefine.Items
[
i] is XmlSchemaSimpleType simpleType)
717
XmlSchemaGroupRef? groupRef = items
[
i] as XmlSchemaGroupRef;
729
else if (items
[
i] is XmlSchemaGroupBase)
731
count += CountGroupSelfReference(((XmlSchemaGroupBase)items
[
i]).Items, name);
759
XmlSchemaAttributeGroupRef? groupRef = attributeGroup.Attributes
[
i] as XmlSchemaAttributeGroupRef;
1100
SetParent(element.Constraints
[
i], element);
1101
PreprocessIdentityConstraint((XmlSchemaIdentityConstraint)element.Constraints
[
i]);
1159
SetParent(constraint.Fields
[
i], constraint);
1160
ValidateIdAttribute(constraint.Fields
[
i]);
1221
SetParent(restriction.Facets
[
i], restriction);
1293
SetParent(union1.BaseTypes
[
i], union1);
1294
PreprocessSimpleType((XmlSchemaSimpleType)union1.BaseTypes
[
i], true);
1590
XmlSchemaElement element = (XmlSchemaElement)schemaAll.Items
[
i];
1613
SetParent(choices
[
i], particle);
1614
XmlSchemaElement? element = choices
[
i] as XmlSchemaElement;
1621
PreprocessParticle((XmlSchemaParticle)choices
[
i]);
1630
SetParent(sequences
[
i], particle);
1631
XmlSchemaElement? element = sequences
[
i] as XmlSchemaElement;
1638
PreprocessParticle((XmlSchemaParticle)sequences
[
i]);
1673
SetParent(attributes
[
i], parent);
1674
XmlSchemaAttribute? attribute = attributes
[
i] as XmlSchemaAttribute;
1681
XmlSchemaAttributeGroupRef attributeGroupRef = (XmlSchemaAttributeGroupRef)attributes
[
i];
1690
PreprocessAnnotation(attributes
[
i]); //set parent of annotation child of attributeGroupRef
1691
ValidateIdAttribute(attributes
[
i]);
1788
annotated.Annotation.Items
[
i].Parent = annotated.Annotation; //Can be documentation or appInfo
System\Xml\Schema\SchemaSetCompiler.cs (30)
399
((XmlSchemaIdentityConstraint)element.Constraints
[
i]).CompiledConstraint = null;
409
XmlSchemaAttribute? attribute = attributes
[
i] as XmlSchemaAttribute;
442
CleanupParticle((XmlSchemaParticle)groupBase.Items
[
i]);
762
XmlSchemaSimpleType st = (XmlSchemaSimpleType)mainBaseTypes
[
i];
1323
groupRefBase.Items.Add(groupBase.Items
[
i]);
1340
XmlSchemaParticle p = CanonicalizeParticle((XmlSchemaElement)all.Items
[
i], false);
1374
XmlSchemaParticle p1 = CanonicalizeParticle((XmlSchemaParticle)choice.Items
[
i], false);
1382
newChoice.Items.Add(p1Choice.Items
[
j]);
1421
XmlSchemaParticle p1 = CanonicalizeParticle((XmlSchemaParticle)sequence.Items
[
i], false);
1429
newSequence.Items.Add(p1Sequence.Items
[
j]);
1730
if (!IsValidRestriction((XmlSchemaParticle)derivedGroupBase.Items
[
i], baseAny))
1835
if (GetMappingParticle((XmlSchemaParticle)derivedChoice.Items
[
i], baseChoice.Items) < 0)
1858
XmlSchemaParticle baseParticle = (XmlSchemaParticle)baseGroupBase.Items
[
i];
1860
&& IsValidRestriction((XmlSchemaParticle)derivedGroupBase.Items
[
count], baseParticle))
1887
int i = GetMappingParticle((XmlSchemaParticle)derivedSequence.Items
[
j], baseAll.Items);
1906
if (!map[i] && !IsParticleEmptiable((XmlSchemaParticle)baseAll.Items
[
i]))
1932
if (GetMappingParticle((XmlSchemaParticle)derivedSequence.Items
[
i], baseChoice.Items) < 0)
1952
if (IsValidRestriction(particle, (XmlSchemaParticle)collection
[
i]))
1987
CalculateEffectiveTotalRange((XmlSchemaParticle)choice.Items
[
i], out min, out max);
2021
CalculateEffectiveTotalRange((XmlSchemaParticle)collection
[
i], out min, out max);
2083
XmlSchemaAttribute? attr = attributeGroup.Attributes
[
i] as XmlSchemaAttribute;
2102
XmlSchemaAttributeGroupRef attributeGroupRef = (XmlSchemaAttributeGroupRef)attributeGroup.Attributes
[
i];
2149
XmlSchemaAttribute? attr = attributes
[
i] as XmlSchemaAttribute;
2175
XmlSchemaAttributeGroupRef attributeGroupRef = (XmlSchemaAttributeGroupRef)attributes
[
i];
2788
XmlSchemaIdentityConstraint constraint = (XmlSchemaIdentityConstraint)constraints
[
i];
2840
XmlSchemaElement localElement = (XmlSchemaElement)all.Items
[
i];
2912
Debug.Assert(!((XmlSchemaParticle)particles
[
i]).IsEmpty);
2925
hasWildCard = BuildParticleContentModel(contentValidator, (XmlSchemaParticle)particles
[
i]);
2979
CompileParticleElements(complexType, (XmlSchemaParticle)particles
[
i]);
2995
CompileParticleElements((XmlSchemaParticle)particles
[
i]);
System\Xml\Schema\XmlSchema.cs (6)
468
if ((complexType = _items
[
i] as XmlSchemaComplexType) != null)
472
else if ((element = _items
[
i] as XmlSchemaElement) != null)
476
else if ((group = _items
[
i] as XmlSchemaGroup) != null)
482
newItem = _items
[
i].Clone();
490
XmlSchemaExternal newInclude = (XmlSchemaExternal)_includes
[
i].Clone();
537
XmlSchemaExternal ext = (XmlSchemaExternal)schema.Includes
[
i];
System\Xml\Schema\XmlSchemaComplexType.cs (5)
421
xso = attributes
[
i];
449
XmlSchemaParticle p = (XmlSchemaParticle)groupBaseParticles
[
i];
519
XmlSchemaParticle p = (XmlSchemaParticle)groupBase.Items
[
i++];
555
if (attributes
[
i] is XmlSchemaAttributeGroupRef)
561
XmlSchemaAttribute attribute = (attributes
[
i] as XmlSchemaAttribute)!;
System\Xml\Serialization\ImportContext.cs (1)
359
Depends(attributes
[
i], refs);
System\Xml\Serialization\SchemaObjectWriter.cs (8)
133
list.Add(NameOf(items
[
i]));
288
list.Add(items
[
i]);
502
XmlSchemaObject ai = (XmlSchemaObject)a
[
ia];
656
a.Add(facets
[
i]);
1044
Write49_XmlSchemaXPath(@"field", (XmlSchemaXPath)a
[
ia]);
1101
Write49_XmlSchemaXPath(@"field", (XmlSchemaXPath)a
[
ia]);
1123
Write49_XmlSchemaXPath("field", (XmlSchemaXPath)a
[
ia]);
1174
XmlSchemaObject ai = (XmlSchemaObject)a
[
ia];
System\Xml\Serialization\XmlSchemaImporter.cs (6)
665
object item = items.Attributes
[
i];
937
object item = group.Items
[
i];
1041
object item = group.Items
[
i];
1075
object item = schema.Items
[
j];
1577
object item = group.Attributes
[
i];
1757
object facet = restriction.Facets
[
i];
System\Xml\Serialization\XmlSchemas.cs (2)
411
XmlSchemaObject o = schema.Items
[
i];
430
destination.Items.Add(schema.Items
[
i]);