3 overrides of Cardinality
System.Private.Xml (3)
System\Xml\Xsl\XmlQueryTypeFactory.cs (3)
643public override XmlQueryCardinality Cardinality 921public override XmlQueryCardinality Cardinality 1109public override XmlQueryCardinality Cardinality
40 references to Cardinality
System.Private.Xml (40)
System\Xml\Xsl\IlGen\XmlILOptimizerVisitor.cs (4)
1152if (((local1).XmlType)!.Cardinality == XmlQueryCardinality.Zero) 1180if (((local1).XmlType)!.Cardinality == XmlQueryCardinality.Zero) 1208if (((local1).XmlType)!.Cardinality == XmlQueryCardinality.Zero) 1236if (((local1).XmlType)!.Cardinality == XmlQueryCardinality.Zero)
System\Xml\Xsl\QIL\QilReplaceVisitor.cs (1)
81Debug.Assert(newType.IsSubtypeOf(XmlQueryTypeFactory.AtMost(oldType, oldType.Cardinality)), "Replace shouldn't relax original type");
System\Xml\Xsl\QIL\QilTypeChecker.cs (8)
433return XmlQueryTypeFactory.AtMost(node.Left.XmlType!, node.Left.XmlType!.Cardinality); 599XmlQueryCardinality variableCard = node.Variable.NodeType == QilNodeType.Let ? XmlQueryCardinality.One : node.Variable.Binding!.XmlType!.Cardinality; 602return XmlQueryTypeFactory.PrimeProduct(bodyType, variableCard * bodyType.Cardinality); 616return XmlQueryTypeFactory.AtMost(node.Variable.Binding!.XmlType!, node.Variable.Binding.XmlType!.Cardinality); 633return XmlQueryTypeFactory.PrimeProduct(varType, varType.Cardinality); 1052if (type.Cardinality == XmlQueryCardinality.More) 1055if (type.Cardinality == XmlQueryCardinality.NotOne) 1077return XmlQueryTypeFactory.AtMost(((QilTargetType)body).TargetType, variable.Binding!.XmlType!.Cardinality);
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (1)
712if (!(card <= typBase.Cardinality))
System\Xml\Xsl\XmlQueryType.cs (15)
101if (!(Cardinality <= baseType.Cardinality) || (!IsDod && baseType.IsDod)) 144if (Cardinality.NeverSubset(baseType.Cardinality)) 177if (Cardinality != that.Cardinality || IsDod != that.IsDod) 260get { return Cardinality <= XmlQueryCardinality.Zero; } 268get { return Cardinality <= XmlQueryCardinality.One; } 276get { return XmlQueryCardinality.Zero <= Cardinality; } 284get { return XmlQueryCardinality.More <= Cardinality; } 351hash += (hash << 7) ^ Cardinality.GetHashCode(); 403sb.Append(Cardinality.ToString(format)); 420if (Cardinality == XmlQueryCardinality.None) 424else if (Cardinality == XmlQueryCardinality.Zero) 460sb.Append(Cardinality.ToString());
System\Xml\Xsl\XmlQueryTypeFactory.cs (8)
81return SequenceType.Create(ChoiceType.Create(PrimeChoice(new List<XmlQueryType>(left), right)), left.Cardinality | right.Cardinality); 98XmlQueryCardinality card = types[0].Cardinality; 103card |= types[i].Cardinality; 127return SequenceType.Create(ChoiceType.Create(PrimeChoice(new List<XmlQueryType>(left), right)), left.Cardinality + right.Cardinality); 155if (t.Cardinality == c && !t.IsDod) 749Debug.Assert(t.Cardinality == XmlQueryCardinality.One, "ChoiceType member types must be prime types.");
System\Xml\Xsl\XPath\XPathBuilder.cs (1)
345qilAxis.XmlType = T.PrimeProduct(T.NodeChoice(required), qilAxis.XmlType!.Cardinality);
System\Xml\Xsl\Xslt\QilGenerator.cs (1)
2825if (nsVar.XmlType.Cardinality == XmlQueryCardinality.One)
System\Xml\Xsl\Xslt\XPathPatternBuilder.cs (1)
115filter.XmlType = T.PrimeProduct(T.NodeChoice(intersection), filter.XmlType!.Cardinality);