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