3 writes to
dotnet-svcutil-lib (3)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaComplexType.cs (3)
515newAttributes[i] = newAttGroupRef; 522newAttributes[i] = att.Clone(); 538newParticles[i] = CloneParticle(p, parentSchema);
259 references to
dotnet-svcutil-lib (259)
FrameworkFork\Microsoft.Xml\Xml\schema\CompiledIdentityConstraint.cs (2)
72_fields[idxField] = new Asttree(((XmlSchemaXPath)fields[idxField]).XPath, true, nsmgr); 76e.SetSource(constraint.Fields[idxField]);
FrameworkFork\Microsoft.Xml\Xml\schema\FacetChecker.cs (1)
906XmlSchemaFacet facet = (XmlSchemaFacet)facets[i];
FrameworkFork\Microsoft.Xml\Xml\schema\Inference\infer.cs (14)
473XmlSchemaImport import = parentSchema.Includes[i] as XmlSchemaImport; 575XmlSchemaImport import = parentSchema.Includes[i] as XmlSchemaImport; 990if (((XmlSchemaSequence)ct.Particle).Items[lastUsedSeqItem].GetType() != typeof(XmlSchemaElement)) 992XmlSchemaElement subElement = (XmlSchemaElement)((XmlSchemaSequence)ct.Particle).Items[lastUsedSeqItem]; 1082XmlSchemaElement el = xsch.Items[i] as XmlSchemaElement; 1109XmlSchemaParticle particle = xss.Items[iSeqItem] as XmlSchemaParticle; 1139particle = xss.Items[iSeqItem] as XmlSchemaParticle; 1150((XmlSchemaElement)minOccursCandidates[i]).MinOccurs = decimal.Zero; 1161((XmlSchemaElement)minOccursCandidates[i]).MinOccurs = decimal.Zero; 1200xsc.Items.Add(CreateNewElementforChoice((XmlSchemaElement)xss.Items[i])); 1309ct.Attributes.Add(scExtension.Attributes[i]); 1372XmlSchemaElement xse = elements[i] as XmlSchemaElement; 1404XmlSchemaElement xse = elements[i] as XmlSchemaElement; 1437XmlSchemaAttribute attr = attributes[i] as XmlSchemaAttribute;
FrameworkFork\Microsoft.Xml\Xml\schema\Preprocessor.cs (55)
267XmlSchemaExternal ext = (XmlSchemaExternal)schema.Includes[i]; 290XmlSchemaExternal include = (XmlSchemaExternal)schema.Includes[i]; 504XmlSchemaExternal include = (XmlSchemaExternal)schema.Includes[i]; 584XmlSchemaExternal include = (XmlSchemaExternal)schema.Includes[i]; 684external = (XmlSchemaExternal)schema.Includes[i]; 741if (!(redefine.Items[j] is XmlSchemaAnnotation)) 757SetParent(schemaItems[i], schema); 758XmlSchemaAttribute attribute = schemaItems[i] as XmlSchemaAttribute; 764else if (schemaItems[i] is XmlSchemaAttributeGroup) 766XmlSchemaAttributeGroup attributeGroup = (XmlSchemaAttributeGroup)schemaItems[i]; 770else if (schemaItems[i] is XmlSchemaComplexType) 772XmlSchemaComplexType complexType = (XmlSchemaComplexType)schemaItems[i]; 776else if (schemaItems[i] is XmlSchemaSimpleType) 778XmlSchemaSimpleType simpleType = (XmlSchemaSimpleType)schemaItems[i]; 782else if (schemaItems[i] is XmlSchemaElement) 784XmlSchemaElement element = (XmlSchemaElement)schemaItems[i]; 788else if (schemaItems[i] is XmlSchemaGroup) 790XmlSchemaGroup group = (XmlSchemaGroup)schemaItems[i]; 794else if (schemaItems[i] is XmlSchemaNotation) 796XmlSchemaNotation notation = (XmlSchemaNotation)schemaItems[i]; 800else if (schemaItems[i] is XmlSchemaAnnotation) 802PreprocessAnnotation(schemaItems[i] as XmlSchemaAnnotation); 806SendValidationEvent(ResXml.Sch_InvalidCollection, (XmlSchemaObject)schemaItems[i]); 807removeItemsList.Add(schemaItems[i]); 874SetParent(items[i], redefine); 875XmlSchemaGroup group = items[i] as XmlSchemaGroup; 901else if (items[i] is XmlSchemaAttributeGroup) 903XmlSchemaAttributeGroup attributeGroup = (XmlSchemaAttributeGroup)items[i]; 927else if (items[i] is XmlSchemaComplexType) 929XmlSchemaComplexType complexType = (XmlSchemaComplexType)items[i]; 957else if (items[i] is XmlSchemaSimpleType) 959XmlSchemaSimpleType simpleType = (XmlSchemaSimpleType)items[i]; 999XmlSchemaExternal external = (XmlSchemaExternal)schema.Includes[i]; 1073XmlSchemaGroupRef groupRef = items[i] as XmlSchemaGroupRef; 1086else if (items[i] is XmlSchemaGroupBase) 1088count += CountGroupSelfReference(((XmlSchemaGroupBase)items[i]).Items, name, redefined); 1117XmlSchemaAttributeGroupRef attrGroupRef = attributeGroup.Attributes[i] as XmlSchemaAttributeGroupRef; 1461XmlSchemaIdentityConstraint identityConstraint = (XmlSchemaIdentityConstraint)element.Constraints[i]; 1522SetParent(constraint.Fields[i], constraint); 1523ValidateIdAttribute(constraint.Fields[i]); 1585SetParent(restriction.Facets[i], restriction); 1659XmlSchemaSimpleType type = (XmlSchemaSimpleType)union1.BaseTypes[i]; 1957XmlSchemaElement element = (XmlSchemaElement)items[i]; 1979SetParent(items[i], particle); 1980XmlSchemaElement element = items[i] as XmlSchemaElement; 1987PreprocessParticle((XmlSchemaParticle)items[i]); 1996SetParent(items[i], particle); 1997XmlSchemaElement element = items[i] as XmlSchemaElement; 2004PreprocessParticle((XmlSchemaParticle)items[i]); 2040SetParent(attributes[i], parent); 2041XmlSchemaAttribute attr = attributes[i] as XmlSchemaAttribute; 2048XmlSchemaAttributeGroupRef attributeGroupRef = (XmlSchemaAttributeGroupRef)attributes[i]; 2057PreprocessAnnotation(attributes[i]); //set parent of annotation child of attributeGroupRef 2058ValidateIdAttribute(attributes[i]); 2211annotation.Items[i].Parent = annotation; //Can be documentation or appInfo
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionCompiler.cs (40)
95XmlSchemaExternal include = (XmlSchemaExternal)schema.Includes[i]; 109object item = rdef.Items[j]; 147object item = schema.Items[i]; 159else if ((attrgroup = schema.Items[i] as XmlSchemaAttributeGroup) != null) 163else if ((complextype = schema.Items[i] as XmlSchemaComplexType) != null) 167else if ((simpletype = schema.Items[i] as XmlSchemaSimpleType) != null) 171else if ((element = schema.Items[i] as XmlSchemaElement) != null) 175else if ((group = schema.Items[i] as XmlSchemaGroup) != null) 383((XmlSchemaIdentityConstraint)element.Constraints[i]).CompiledConstraint = null; 392XmlSchemaAttribute attribute = attributes[i] as XmlSchemaAttribute; 417CleanupParticle((XmlSchemaParticle)particles[i]); 452substitutionGroup.Choice.Items.Add(g.Choice.Items[j]); 663XmlSchemaSimpleType st = (XmlSchemaSimpleType)mainBaseTypes[i]; 1180groupRefBase.Items.Add((XmlSchemaParticle)groupBase.Items[i]); 1198XmlSchemaParticle p = CannonicalizeParticle((XmlSchemaElement)all.Items[i], false, substitution); 1243XmlSchemaParticle p1 = CannonicalizeParticle((XmlSchemaParticle)choice.Items[i], false, substitution); 1251newChoice.Items.Add(particleChoice.Items[j]); 1289XmlSchemaParticle p1 = CannonicalizeParticle((XmlSchemaParticle)sequence.Items[i], false, substitution); 1297newSequence.Items.Add(particleSequence.Items[j]); 1448if (!IsValidRestriction((XmlSchemaParticle)derivedGroupBase.Items[i], baseAny)) 1463XmlSchemaParticle baseParticle = (XmlSchemaParticle)baseGroupBase.Items[i]; 1497XmlSchemaParticle baseParticle = (XmlSchemaParticle)baseGroupBase.Items[i]; 1498if ((count < derivedGroupBase.Items.Count) && IsValidRestriction((XmlSchemaParticle)derivedGroupBase.Items[count], baseParticle)) 1523int i = GetMappingParticle((XmlSchemaParticle)derivedSequence.Items[j], baseAll.Items); 1542if (!map[i] && !IsParticleEmptiable((XmlSchemaParticle)baseAll.Items[i])) 1560if (GetMappingParticle((XmlSchemaParticle)derivedSequence.Items[i], baseChoice.Items) < 0) 1571XmlSchemaParticle p = (XmlSchemaParticle)sequence.Items[i]; 1604if (IsValidRestriction(particle, (XmlSchemaParticle)collection[i])) 1638CalculateEffectiveTotalRange((XmlSchemaParticle)choice.Items[i], out min, out max); 1672CalculateEffectiveTotalRange((XmlSchemaParticle)collection[i], out min, out max); 1731XmlSchemaAttribute attribute = attributeGroup.Attributes[i] as XmlSchemaAttribute; 1749XmlSchemaAttributeGroupRef attributeGroupRef = (XmlSchemaAttributeGroupRef)attributeGroup.Attributes[i]; 1790XmlSchemaAttribute attribute = attributes[i] as XmlSchemaAttribute; 1816XmlSchemaAttributeGroupRef attributeGroupRef = (XmlSchemaAttributeGroupRef)attributes[i]; 2403XmlSchemaIdentityConstraint constraint = (XmlSchemaIdentityConstraint)constraints[i]; 2456XmlSchemaElement localElement = (XmlSchemaElement)all.Items[i]; 2538XmlSchemaElement localElement = (XmlSchemaElement)all.Items[i]; 2571DumpContentModelTo(sb, (XmlSchemaParticle)gb.Items[i]); 2623XmlSchemaParticle p = (XmlSchemaParticle)particles[i]; 2691CompileParticleElements(complexType, (XmlSchemaParticle)particles[i]);
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionPreprocessor.cs (57)
76XmlSchemaExternal include = (XmlSchemaExternal)schema.Includes[i]; 96XmlSchemaExternal include = (XmlSchemaExternal)schema.Includes[i]; 145XmlSchemaExternal include = (XmlSchemaExternal)schema.Includes[i]; 184XmlSchemaExternal subInc = (XmlSchemaExternal)include.Schema.Includes[j]; 278import = schema.Includes[i] as XmlSchemaImport; 366XmlSchemaExternal include = (XmlSchemaExternal)schema.Includes[i]; 484XmlSchemaExternal include = (XmlSchemaExternal)schema.Includes[i]; 496if (!(redefine.Items[j] is XmlSchemaAnnotation)) 538SetParent(schema.Items[i], schema); 539XmlSchemaAttribute attribute = schema.Items[i] as XmlSchemaAttribute; 545else if (schema.Items[i] is XmlSchemaAttributeGroup) 547XmlSchemaAttributeGroup attributeGroup = (XmlSchemaAttributeGroup)schema.Items[i]; 551else if (schema.Items[i] is XmlSchemaComplexType) 553XmlSchemaComplexType complexType = (XmlSchemaComplexType)schema.Items[i]; 557else if (schema.Items[i] is XmlSchemaSimpleType) 559XmlSchemaSimpleType simpleType = (XmlSchemaSimpleType)schema.Items[i]; 563else if (schema.Items[i] is XmlSchemaElement) 565XmlSchemaElement element = (XmlSchemaElement)schema.Items[i]; 569else if (schema.Items[i] is XmlSchemaGroup) 571XmlSchemaGroup group = (XmlSchemaGroup)schema.Items[i]; 575else if (schema.Items[i] is XmlSchemaNotation) 577XmlSchemaNotation notation = (XmlSchemaNotation)schema.Items[i]; 581else if (!(schema.Items[i] is XmlSchemaAnnotation)) 583SendValidationEvent(ResXml.Sch_InvalidCollection, schema.Items[i]); 584removeItemsList.Add(schema.Items[i]); 599SetParent(redefine.Items[i], redefine); 600XmlSchemaGroup group = redefine.Items[i] as XmlSchemaGroup; 622else if (redefine.Items[i] is XmlSchemaAttributeGroup) 624XmlSchemaAttributeGroup attributeGroup = (XmlSchemaAttributeGroup)redefine.Items[i]; 644else if (redefine.Items[i] is XmlSchemaComplexType) 646XmlSchemaComplexType complexType = (XmlSchemaComplexType)redefine.Items[i]; 674else if (redefine.Items[i] is XmlSchemaSimpleType) 676XmlSchemaSimpleType simpleType = (XmlSchemaSimpleType)redefine.Items[i]; 725XmlSchemaGroupRef groupRef = items[i] as XmlSchemaGroupRef; 737else if (items[i] is XmlSchemaGroupBase) 739count += CountGroupSelfReference(((XmlSchemaGroupBase)items[i]).Items, name); 767XmlSchemaAttributeGroupRef groupRef = attributeGroup.Attributes[i] as XmlSchemaAttributeGroupRef; 1107SetParent(element.Constraints[i], element); 1108PreprocessIdentityConstraint((XmlSchemaIdentityConstraint)element.Constraints[i]); 1167SetParent(constraint.Fields[i], constraint); 1168ValidateIdAttribute(constraint.Fields[i]); 1230SetParent(restriction.Facets[i], restriction); 1303SetParent(union1.BaseTypes[i], union1); 1304PreprocessSimpleType((XmlSchemaSimpleType)union1.BaseTypes[i], true); 1603XmlSchemaElement element = (XmlSchemaElement)schemaAll.Items[i]; 1626SetParent(choices[i], particle); 1627XmlSchemaElement element = choices[i] as XmlSchemaElement; 1634PreprocessParticle((XmlSchemaParticle)choices[i]); 1643SetParent(sequences[i], particle); 1644XmlSchemaElement element = sequences[i] as XmlSchemaElement; 1651PreprocessParticle((XmlSchemaParticle)sequences[i]); 1687SetParent(attributes[i], parent); 1688XmlSchemaAttribute attribute = attributes[i] as XmlSchemaAttribute; 1695XmlSchemaAttributeGroupRef attributeGroupRef = (XmlSchemaAttributeGroupRef)attributes[i]; 1704PreprocessAnnotation(attributes[i]); //set parent of annotation child of attributeGroupRef 1705ValidateIdAttribute(attributes[i]); 1801annotated.Annotation.Items[i].Parent = annotated.Annotation; //Can be documentation or appInfo
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaSetCompiler.cs (32)
385((XmlSchemaIdentityConstraint)element.Constraints[i]).CompiledConstraint = null; 395XmlSchemaAttribute attribute = attributes[i] as XmlSchemaAttribute; 428CleanupParticle((XmlSchemaParticle)groupBase.Items[i]); 748XmlSchemaSimpleType st = (XmlSchemaSimpleType)mainBaseTypes[i]; 1308groupRefBase.Items.Add(groupBase.Items[i]); 1324XmlSchemaParticle p = CannonicalizeParticle((XmlSchemaElement)all.Items[i], false); 1358XmlSchemaParticle p1 = CannonicalizeParticle((XmlSchemaParticle)choice.Items[i], false); 1366newChoice.Items.Add(p1Choice.Items[j]); 1405XmlSchemaParticle p1 = CannonicalizeParticle((XmlSchemaParticle)sequence.Items[i], false); 1413newSequence.Items.Add(p1Sequence.Items[j]); 1714if (!IsValidRestriction((XmlSchemaParticle)derivedGroupBase.Items[i], baseAny)) 1819if (GetMappingParticle((XmlSchemaParticle)derivedChoice.Items[i], baseChoice.Items) < 0) 1842XmlSchemaParticle baseParticle = (XmlSchemaParticle)baseGroupBase.Items[i]; 1844&& IsValidRestriction((XmlSchemaParticle)derivedGroupBase.Items[count], baseParticle)) 1873int i = GetMappingParticle((XmlSchemaParticle)derivedSequence.Items[j], baseAll.Items); 1892if (!map[i] && !IsParticleEmptiable((XmlSchemaParticle)baseAll.Items[i])) 1918if (GetMappingParticle((XmlSchemaParticle)derivedSequence.Items[i], baseChoice.Items) < 0) 1938if (IsValidRestriction(particle, (XmlSchemaParticle)collection[i])) 1973CalculateEffectiveTotalRange((XmlSchemaParticle)choice.Items[i], out min, out max); 2007CalculateEffectiveTotalRange((XmlSchemaParticle)collection[i], out min, out max); 2069XmlSchemaAttribute attr = attributeGroup.Attributes[i] as XmlSchemaAttribute; 2088XmlSchemaAttributeGroupRef attributeGroupRef = (XmlSchemaAttributeGroupRef)attributeGroup.Attributes[i]; 2133XmlSchemaAttribute attr = attributes[i] as XmlSchemaAttribute; 2159XmlSchemaAttributeGroupRef attributeGroupRef = (XmlSchemaAttributeGroupRef)attributes[i]; 2846XmlSchemaIdentityConstraint constraint = (XmlSchemaIdentityConstraint)constraints[i]; 2899XmlSchemaElement localElement = (XmlSchemaElement)all.Items[i]; 2981XmlSchemaElement localElement = (XmlSchemaElement)all.Items[i]; 3014DumpContentModelTo(sb, (XmlSchemaParticle)gb.Items[i]); 3068Debug.Assert(!((XmlSchemaParticle)particles[i]).IsEmpty); 3081hasWildCard = BuildParticleContentModel(contentValidator, (XmlSchemaParticle)particles[i]); 3136CompileParticleElements(complexType, (XmlSchemaParticle)particles[i]); 3153CompileParticleElements((XmlSchemaParticle)particles[i]);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchema.cs (6)
619if ((complexType = _items[i] as XmlSchemaComplexType) != null) 623else if ((element = _items[i] as XmlSchemaElement) != null) 627else if ((group = _items[i] as XmlSchemaGroup) != null) 633newItem = _items[i].Clone(); 641XmlSchemaExternal newInclude = (XmlSchemaExternal)_includes[i].Clone(); 710XmlSchemaExternal ext = (XmlSchemaExternal)schema.Includes[i];
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaComplexType.cs (5)
509xso = attributes[i]; 537XmlSchemaParticle p = (XmlSchemaParticle)groupBaseParticles[i]; 606XmlSchemaParticle p = (XmlSchemaParticle)groupBase.Items[i++]; 642if (attributes[i] is XmlSchemaAttributeGroupRef) 648XmlSchemaAttribute attribute = attributes[i] as XmlSchemaAttribute;
FrameworkFork\Microsoft.Xml\Xml\Serialization\ImportContext.cs (1)
444Depends(attributes[i], refs);
FrameworkFork\Microsoft.Xml\Xml\Serialization\SchemaObjectWriter.cs (8)
135list.Add(NameOf(items[i])); 289list.Add(items[i]); 503XmlSchemaObject ai = (XmlSchemaObject)a[ia]; 657a.Add(facets[i]); 1047Write49_XmlSchemaXPath(@"field", @"", (XmlSchemaXPath)a[ia]); 1105Write49_XmlSchemaXPath(@"field", @"", (XmlSchemaXPath)a[ia]); 1128Write49_XmlSchemaXPath("field", "", (XmlSchemaXPath)a[ia]); 1180XmlSchemaObject ai = (XmlSchemaObject)a[ia];
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (4)
353object item = items[i]; 415object item = group.Items[i]; 479XmlSchemaAttribute attribute = restriction.Attributes[i] as XmlSchemaAttribute; 644object facet = restriction.Facets[i];
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (6)
766object item = items.Attributes[i]; 1040object item = group.Items[i]; 1146object item = group.Items[i]; 1179object item = schema.Items[j]; 1679object item = group.Attributes[i]; 1860object facet = restriction.Facets[i];
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemas.cs (2)
516XmlSchemaObject o = schema.Items[i]; 538destination.Items.Add(schema.Items[i]);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaImporter.cs (4)
603XmlSchemaElement element = items[i] as XmlSchemaElement; 691XmlSchemaElement element = rootSequence.Items[memberIndex] as XmlSchemaElement; 889o = attributes[i]; 1384XmlSchemaObject o = attributes[i];
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageContractImporter.cs (2)
1603XmlSchemaElement element = rootSequence.Items[i] as XmlSchemaElement; 1656XmlSchemaElement localElement = rootSequence.Items[i] as XmlSchemaElement;
FrameworkFork\System.Web.Services\Services\Description\ServiceDescriptionSerializer.cs (20)
2351Microsoft.Xml.Schema.XmlSchemaObject ai = (Microsoft.Xml.Schema.XmlSchemaObject)a[ia]; 2382Microsoft.Xml.Schema.XmlSchemaObject ai = (Microsoft.Xml.Schema.XmlSchemaObject)a[ia]; 2469Microsoft.Xml.Schema.XmlSchemaObject ai = (Microsoft.Xml.Schema.XmlSchemaObject)a[ia]; 2715Microsoft.Xml.Schema.XmlSchemaObject ai = (Microsoft.Xml.Schema.XmlSchemaObject)a[ia]; 2896Microsoft.Xml.Schema.XmlSchemaObject ai = (Microsoft.Xml.Schema.XmlSchemaObject)a[ia]; 2966Write47_XmlSchemaXPath(@"field", @"http://www.w3.org/2001/XMLSchema", ((Microsoft.Xml.Schema.XmlSchemaXPath)a[ia]), false, false); 3056Write47_XmlSchemaXPath(@"field", @"http://www.w3.org/2001/XMLSchema", ((Microsoft.Xml.Schema.XmlSchemaXPath)a[ia]), false, false); 3106Write47_XmlSchemaXPath(@"field", @"http://www.w3.org/2001/XMLSchema", ((Microsoft.Xml.Schema.XmlSchemaXPath)a[ia]), false, false); 3257Microsoft.Xml.Schema.XmlSchemaObject ai = (Microsoft.Xml.Schema.XmlSchemaObject)a[ia]; 3882Write34_XmlSchemaSimpleType(@"simpleType", @"http://www.w3.org/2001/XMLSchema", ((Microsoft.Xml.Schema.XmlSchemaSimpleType)a[ia]), false, false); 4018Microsoft.Xml.Schema.XmlSchemaObject ai = (Microsoft.Xml.Schema.XmlSchemaObject)a[ia]; 4281Write52_XmlSchemaElement(@"element", @"http://www.w3.org/2001/XMLSchema", ((Microsoft.Xml.Schema.XmlSchemaElement)a[ia]), false, false); 4330Microsoft.Xml.Schema.XmlSchemaObject ai = (Microsoft.Xml.Schema.XmlSchemaObject)a[ia]; 4487Microsoft.Xml.Schema.XmlSchemaObject ai = (Microsoft.Xml.Schema.XmlSchemaObject)a[ia]; 4578Microsoft.Xml.Schema.XmlSchemaObject ai = (Microsoft.Xml.Schema.XmlSchemaObject)a[ia]; 4699Microsoft.Xml.Schema.XmlSchemaObject ai = (Microsoft.Xml.Schema.XmlSchemaObject)a[ia]; 4766Microsoft.Xml.Schema.XmlSchemaObject ai = (Microsoft.Xml.Schema.XmlSchemaObject)a[ia]; 4832Microsoft.Xml.Schema.XmlSchemaObject ai = (Microsoft.Xml.Schema.XmlSchemaObject)a[ia]; 4938Microsoft.Xml.Schema.XmlSchemaObject ai = (Microsoft.Xml.Schema.XmlSchemaObject)a[ia]; 5080Microsoft.Xml.Schema.XmlSchemaObject ai = (Microsoft.Xml.Schema.XmlSchemaObject)a[ia];