13 instantiations of XmlQueryCardinality
System.Data.SqlXml (13)
System\Xml\Xsl\QIL\QilXmlReader.cs (1)
424XmlQueryCardinality qc = new XmlQueryCardinality(m.Groups[1].Value);
System\Xml\Xsl\XmlQueryCardinality.cs (11)
35get { return new XmlQueryCardinality(0x00); } 42get { return new XmlQueryCardinality(0x01); } 49get { return new XmlQueryCardinality(0x02); } 56get { return new XmlQueryCardinality(0x03); } 63get { return new XmlQueryCardinality(0x04); } 70get { return new XmlQueryCardinality(0x05); } 77get { return new XmlQueryCardinality(0x06); } 84get { return new XmlQueryCardinality(0x07); } 133return new XmlQueryCardinality(left.value | right.value); 140return new XmlQueryCardinality(left.value & right.value); 187return new XmlQueryCardinality(this.value | (this.value >> 1) | (this.value >> 2));
System\Xml\Xsl\XmlQueryTypeFactory.cs (1)
980XmlQueryCardinality card = new XmlQueryCardinality(reader);
104 references to XmlQueryCardinality
System.Data.SqlXml (104)
System\Xml\Xsl\IlGen\XmlILOptimizerVisitor.cs (4)
900if ( ( (local1).XmlType ).Cardinality == XmlQueryCardinality.Zero ) { 921if ( ( (local1).XmlType ).Cardinality == XmlQueryCardinality.Zero ) { 942if ( ( (local1).XmlType ).Cardinality == XmlQueryCardinality.Zero ) { 963if ( ( (local1).XmlType ).Cardinality == XmlQueryCardinality.Zero ) {
System\Xml\Xsl\QIL\QilTypeChecker.cs (9)
404return XmlQueryTypeFactory.PrimeProduct(xmlType, xmlType.MaybeEmpty ? XmlQueryCardinality.ZeroOrOne : XmlQueryCardinality.One); 541XmlQueryCardinality variableCard = node.Variable.NodeType == QilNodeType.Let ? XmlQueryCardinality.One : node.Variable.Binding.XmlType.Cardinality; 945if (type.Cardinality == XmlQueryCardinality.More) 946return XmlQueryTypeFactory.PrimeProduct(type, XmlQueryCardinality.OneOrMore); 948if (type.Cardinality == XmlQueryCardinality.NotOne) 949return XmlQueryTypeFactory.PrimeProduct(type, XmlQueryCardinality.ZeroOrMore); 984return XmlQueryTypeFactory.AtMost(variable.Binding.XmlType, XmlQueryCardinality.ZeroOrOne);
System\Xml\Xsl\QIL\QilXmlReader.cs (1)
424XmlQueryCardinality qc = new XmlQueryCardinality(m.Groups[1].Value);
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (4)
666XmlQueryCardinality card; 669case 0: card = XmlQueryCardinality.Zero; break; 670case 1: card = XmlQueryCardinality.One; break; 671default: card = XmlQueryCardinality.More; break;
System\Xml\Xsl\XmlQueryCardinality.cs (35)
34public static XmlQueryCardinality None { 41public static XmlQueryCardinality Zero { 48public static XmlQueryCardinality One { 55public static XmlQueryCardinality ZeroOrOne { 62public static XmlQueryCardinality More { 69public static XmlQueryCardinality NotOne { 76public static XmlQueryCardinality OneOrMore { 83public static XmlQueryCardinality ZeroOrMore { 92public bool Equals(XmlQueryCardinality other) { 99public static bool operator ==(XmlQueryCardinality left, XmlQueryCardinality right) { 106public static bool operator !=(XmlQueryCardinality left, XmlQueryCardinality right) { 114if (other is XmlQueryCardinality) { 115return Equals((XmlQueryCardinality)other); 132public static XmlQueryCardinality operator |(XmlQueryCardinality left, XmlQueryCardinality right) { 139public static XmlQueryCardinality operator &(XmlQueryCardinality left, XmlQueryCardinality right) { 146public static XmlQueryCardinality operator *(XmlQueryCardinality left, XmlQueryCardinality right) { 153public static XmlQueryCardinality operator +(XmlQueryCardinality left, XmlQueryCardinality right) { 169public static bool operator <=(XmlQueryCardinality left, XmlQueryCardinality right) { 176public static bool operator >=(XmlQueryCardinality left, XmlQueryCardinality right) { 185public XmlQueryCardinality AtMost() { 197public bool NeverSubset(XmlQueryCardinality other) { 204private static readonly XmlQueryCardinality[,] cardinalityProduct = { 219private static readonly XmlQueryCardinality[,] cardinalitySum = {
System\Xml\Xsl\XmlQueryType.cs (7)
98public abstract XmlQueryCardinality Cardinality { get; } 277get { return Cardinality <= XmlQueryCardinality.Zero; } 284get { return Cardinality <= XmlQueryCardinality.One; } 291get { return XmlQueryCardinality.Zero <= Cardinality; } 298get { return XmlQueryCardinality.More <= Cardinality; } 421if (Cardinality == XmlQueryCardinality.None) { 424else if (Cardinality == XmlQueryCardinality.Zero) {
System\Xml\Xsl\XmlQueryTypeFactory.cs (43)
60return PrimeProduct(Type(((XmlSchemaSimpleTypeList) schemaType.Content).BaseItemType, isStrict), XmlQueryCardinality.ZeroOrMore); 96XmlQueryCardinality card = types[0].Cardinality; 147public static XmlQueryType PrimeProduct(XmlQueryType t, XmlQueryCardinality c) { 161public static XmlQueryType Product(XmlQueryType t, XmlQueryCardinality c) { 171public static XmlQueryType AtMost(XmlQueryType t, XmlQueryCardinality c) { 190public static readonly XmlQueryType ItemS = TF.PrimeProduct(Item, XmlQueryCardinality.ZeroOrMore); 192public static readonly XmlQueryType NodeS = TF.PrimeProduct(Node, XmlQueryCardinality.ZeroOrMore); 194public static readonly XmlQueryType ElementS = TF.PrimeProduct(Element, XmlQueryCardinality.ZeroOrMore); 196public static readonly XmlQueryType DocumentS = TF.PrimeProduct(Document, XmlQueryCardinality.ZeroOrMore); 198public static readonly XmlQueryType AttributeQ = TF.PrimeProduct(Attribute, XmlQueryCardinality.ZeroOrOne); 199public static readonly XmlQueryType AttributeS = TF.PrimeProduct(Attribute, XmlQueryCardinality.ZeroOrMore); 201public static readonly XmlQueryType NamespaceS = TF.PrimeProduct(Namespace, XmlQueryCardinality.ZeroOrMore); 203public static readonly XmlQueryType TextS = TF.PrimeProduct(Text, XmlQueryCardinality.ZeroOrMore); 205public static readonly XmlQueryType CommentS = TF.PrimeProduct(Comment, XmlQueryCardinality.ZeroOrMore); 207public static readonly XmlQueryType PIS = TF.PrimeProduct(PI, XmlQueryCardinality.ZeroOrMore); 209public static readonly XmlQueryType DocumentOrElementQ = TF.PrimeProduct(DocumentOrElement, XmlQueryCardinality.ZeroOrOne); 210public static readonly XmlQueryType DocumentOrElementS = TF.PrimeProduct(DocumentOrElement, XmlQueryCardinality.ZeroOrMore); 212public static readonly XmlQueryType ContentS = TF.PrimeProduct(Content, XmlQueryCardinality.ZeroOrMore); 214public static readonly XmlQueryType DocumentOrContentS = TF.PrimeProduct(DocumentOrContent, XmlQueryCardinality.ZeroOrMore); 216public static readonly XmlQueryType AttributeOrContentS = TF.PrimeProduct(AttributeOrContent, XmlQueryCardinality.ZeroOrMore); 218public static readonly XmlQueryType AnyAtomicTypeS = TF.PrimeProduct(AnyAtomicType, XmlQueryCardinality.ZeroOrMore); 221public static readonly XmlQueryType StringXS = TF.PrimeProduct(StringX, XmlQueryCardinality.ZeroOrMore); 226public static readonly XmlQueryType IntXS = TF.PrimeProduct(IntX, XmlQueryCardinality.ZeroOrMore); 239public static readonly XmlQueryType UntypedNodeS = TF.PrimeProduct(UntypedNode, XmlQueryCardinality.ZeroOrMore); 241public static readonly XmlQueryType NodeNotRtfQ = TF.PrimeProduct(NodeNotRtf, XmlQueryCardinality.ZeroOrOne); 242public static readonly XmlQueryType NodeNotRtfS = TF.PrimeProduct(NodeNotRtf, XmlQueryCardinality.ZeroOrMore); 243public static readonly XmlQueryType NodeSDod = TF.PrimeProduct(NodeNotRtf, XmlQueryCardinality.ZeroOrMore); 609public override XmlQueryCardinality Cardinality { 610get { return XmlQueryCardinality.One; } 720Debug.Assert(t.Cardinality == XmlQueryCardinality.One, "ChoiceType member types must be prime types."); 864public override XmlQueryCardinality Cardinality { 865get { return TypeCode == XmlTypeCode.None ? XmlQueryCardinality.None : XmlQueryCardinality.One; } 915public static readonly XmlQueryType Zero = new SequenceType(ChoiceType.None, XmlQueryCardinality.Zero); 918private XmlQueryCardinality card; 924public static XmlQueryType Create(XmlQueryType prime, XmlQueryCardinality card) { 930return XmlQueryCardinality.Zero <= card ? Zero : None; 935if (card == XmlQueryCardinality.None) { 938else if (card == XmlQueryCardinality.Zero) { 941else if (card == XmlQueryCardinality.One) { 951private SequenceType(XmlQueryType prime, XmlQueryCardinality card) { 980XmlQueryCardinality card = new XmlQueryCardinality(reader); 1047public override XmlQueryCardinality Cardinality {
System\Xml\Xsl\Xslt\QilGenerator.cs (1)
2358if (nsVar.XmlType.Cardinality == XmlQueryCardinality.One) {