52 references to Restriction
dotnet-svcutil-lib (52)
FrameworkFork\Microsoft.Xml\Xml\schema\DatatypeImplementation.cs (1)
198derivedType.SetDerivedBy(XmlSchemaDerivationMethod.Restriction);
FrameworkFork\Microsoft.Xml\Xml\schema\Preprocessor.cs (7)
70private const XmlSchemaDerivationMethod schemaBlockDefaultAllowed = XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension | XmlSchemaDerivationMethod.Substitution; 71private const XmlSchemaDerivationMethod schemaFinalDefaultAllowed = XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension | XmlSchemaDerivationMethod.List | XmlSchemaDerivationMethod.Union; 72private const XmlSchemaDerivationMethod elementBlockAllowed = XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension | XmlSchemaDerivationMethod.Substitution; 73private const XmlSchemaDerivationMethod elementFinalAllowed = XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension; 74private const XmlSchemaDerivationMethod simpleTypeFinalAllowed = XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension | XmlSchemaDerivationMethod.List | XmlSchemaDerivationMethod.Union; 75private const XmlSchemaDerivationMethod complexTypeBlockAllowed = XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension; 76private const XmlSchemaDerivationMethod complexTypeFinalAllowed = XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension;
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionCompiler.cs (15)
578if ((type.FinalResolved & XmlSchemaDerivationMethod.Restriction) != 0) 591simpleType.SetDerivedBy(XmlSchemaDerivationMethod.Restriction); 683if (unionMember.DerivedBy == XmlSchemaDerivationMethod.Restriction && (unionDatatype.HasLexicalFacets || unionDatatype.HasValueFacets)) 737CompileLocalAttributes(XmlSchemaComplexType.AnyType, complexType, complexType.Attributes, complexType.AnyAttribute, XmlSchemaDerivationMethod.Restriction); 738complexType.SetDerivedBy(XmlSchemaDerivationMethod.Restriction); 887if ((baseType.FinalResolved & XmlSchemaDerivationMethod.Restriction) != 0) 912complexType.SetDerivedBy(XmlSchemaDerivationMethod.Restriction); 913CompileLocalAttributes(baseType, complexType, simpleRestriction.Attributes, simpleRestriction.AnyAttribute, XmlSchemaDerivationMethod.Restriction); 1008if ((baseType.FinalResolved & XmlSchemaDerivationMethod.Restriction) != 0) 1012CompileLocalAttributes(baseType, complexType, complexRestriction.Attributes, complexRestriction.AnyAttribute, XmlSchemaDerivationMethod.Restriction); 1027complexType.SetDerivedBy(XmlSchemaDerivationMethod.Restriction); 1033if (baseType != null && baseType != XmlSchemaComplexType.AnyType && complexType.DerivedBy == XmlSchemaDerivationMethod.Restriction) 1419XmlSchemaType.IsDerivedFrom(derivedElement.ElementSchemaType, baseElement.ElementSchemaType, ~XmlSchemaDerivationMethod.Restriction); 1798(attribute.Use == XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.Restriction && baseType != XmlSchemaComplexType.AnyType)) 1824(attributeValue.Use == XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.Restriction && baseType != XmlSchemaComplexType.AnyType))
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionPreprocessor.cs (7)
39private const XmlSchemaDerivationMethod schemaBlockDefaultAllowed = XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension | XmlSchemaDerivationMethod.Substitution; 40private const XmlSchemaDerivationMethod schemaFinalDefaultAllowed = XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension | XmlSchemaDerivationMethod.List | XmlSchemaDerivationMethod.Union; 41private const XmlSchemaDerivationMethod elementBlockAllowed = XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension | XmlSchemaDerivationMethod.Substitution; 42private const XmlSchemaDerivationMethod elementFinalAllowed = XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension; 43private const XmlSchemaDerivationMethod simpleTypeFinalAllowed = XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.List | XmlSchemaDerivationMethod.Union; 44private const XmlSchemaDerivationMethod complexTypeBlockAllowed = XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension; 45private const XmlSchemaDerivationMethod complexTypeFinalAllowed = XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension;
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaSetCompiler.cs (17)
663if ((type.FinalResolved & XmlSchemaDerivationMethod.Restriction) != 0) 676simpleType.SetDerivedBy(XmlSchemaDerivationMethod.Restriction); 768if (unionMember.DerivedBy == XmlSchemaDerivationMethod.Restriction && (unionDatatype.HasLexicalFacets || unionDatatype.HasValueFacets)) 824CompileLocalAttributes(XmlSchemaComplexType.AnyType, complexType, complexType.Attributes, complexType.AnyAttribute, XmlSchemaDerivationMethod.Restriction); 825complexType.SetDerivedBy(XmlSchemaDerivationMethod.Restriction); 965if ((baseType.FinalResolved & XmlSchemaDerivationMethod.Restriction) != 0) 990complexType.SetDerivedBy(XmlSchemaDerivationMethod.Restriction); 991CompileLocalAttributes(baseType, complexType, simpleRestriction.Attributes, simpleRestriction.AnyAttribute, XmlSchemaDerivationMethod.Restriction); 1078if ((baseType.FinalResolved & XmlSchemaDerivationMethod.Restriction) != 0) 1082CompileLocalAttributes(baseType, complexType, complexRestriction.Attributes, complexRestriction.AnyAttribute, XmlSchemaDerivationMethod.Restriction); 1103complexType.SetDerivedBy(XmlSchemaDerivationMethod.Restriction); 1110if (baseType != null && baseType != XmlSchemaComplexType.AnyType && complexType.DerivedBy == XmlSchemaDerivationMethod.Restriction) 1644XmlSchemaDerivationMethod.Substitution | XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension : 1648XmlSchemaDerivationMethod.Substitution | XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension : 1657XmlSchemaType.IsDerivedFrom(derivedElement.ElementSchemaType, baseElement.ElementSchemaType, ~(XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.List | XmlSchemaDerivationMethod.Union)))) 2141(attr.Use == XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.Restriction && baseType != XmlSchemaComplexType.AnyType)) 2167(attribute.Use == XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.Restriction && baseType != XmlSchemaComplexType.AnyType))
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (1)
3674while (schemaType.DerivedBy == XmlSchemaDerivationMethod.Restriction)
FrameworkFork\Microsoft.Xml\Xml\schema\XsdBuilder.cs (1)
615(int)XmlSchemaDerivationMethod.Restriction,
FrameworkFork\System.Web.Services\Services\Description\ServiceDescriptionSerializer.cs (3)
3897case Microsoft.Xml.Schema.XmlSchemaDerivationMethod.@Restriction: s = @"restriction"; break; 3911(long)Microsoft.Xml.Schema.XmlSchemaDerivationMethod.@Restriction, 10726h.Add(@"restriction", (long)Microsoft.Xml.Schema.XmlSchemaDerivationMethod.@Restriction);