11 instantiations of XmlQueryCardinality
System.Private.Xml (11)
System\Xml\Xsl\XmlQueryCardinality.cs (10)
35
get { return new
XmlQueryCardinality
(0x00); }
43
get { return new
XmlQueryCardinality
(0x01); }
51
get { return new
XmlQueryCardinality
(0x02); }
59
get { return new
XmlQueryCardinality
(0x03); }
67
get { return new
XmlQueryCardinality
(0x04); }
75
get { return new
XmlQueryCardinality
(0x05); }
83
get { return new
XmlQueryCardinality
(0x06); }
91
get { return new
XmlQueryCardinality
(0x07); }
148
return new
XmlQueryCardinality
(left._value | right._value);
199
return new
XmlQueryCardinality
(_value | (_value >> 1) | (_value >> 2));
System\Xml\Xsl\XmlQueryTypeFactory.cs (1)
1034
XmlQueryCardinality card = new
XmlQueryCardinality
(reader);
100 references to XmlQueryCardinality
System.Private.Xml (100)
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\QilTypeChecker.cs (9)
440
return XmlQueryTypeFactory.PrimeProduct(xmlType, xmlType.MaybeEmpty ?
XmlQueryCardinality
.ZeroOrOne :
XmlQueryCardinality
.One);
599
XmlQueryCardinality
variableCard = node.Variable.NodeType == QilNodeType.Let ?
XmlQueryCardinality
.One : node.Variable.Binding!.XmlType!.Cardinality;
1052
if (type.Cardinality ==
XmlQueryCardinality
.More)
1053
return XmlQueryTypeFactory.PrimeProduct(type,
XmlQueryCardinality
.OneOrMore);
1055
if (type.Cardinality ==
XmlQueryCardinality
.NotOne)
1056
return XmlQueryTypeFactory.PrimeProduct(type,
XmlQueryCardinality
.ZeroOrMore);
1094
return XmlQueryTypeFactory.AtMost(variable.Binding!.XmlType!,
XmlQueryCardinality
.ZeroOrOne);
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (4)
705
XmlQueryCardinality
card = seq.Count switch
707
0 =>
XmlQueryCardinality
.Zero,
708
1 =>
XmlQueryCardinality
.One,
709
_ =>
XmlQueryCardinality
.More,
System\Xml\Xsl\XmlQueryCardinality.cs (33)
14
internal readonly struct XmlQueryCardinality : IEquatable<
XmlQueryCardinality
>
33
public static
XmlQueryCardinality
None
41
public static
XmlQueryCardinality
Zero
49
public static
XmlQueryCardinality
One
57
public static
XmlQueryCardinality
ZeroOrOne
65
public static
XmlQueryCardinality
More
73
public static
XmlQueryCardinality
NotOne
81
public static
XmlQueryCardinality
OneOrMore
89
public static
XmlQueryCardinality
ZeroOrMore
99
public bool Equals(
XmlQueryCardinality
other)
107
public static bool operator ==(
XmlQueryCardinality
left,
XmlQueryCardinality
right)
115
public static bool operator !=(
XmlQueryCardinality
left,
XmlQueryCardinality
right)
125
if (other is
XmlQueryCardinality
)
127
return Equals((
XmlQueryCardinality
)other);
146
public static
XmlQueryCardinality
operator |(
XmlQueryCardinality
left,
XmlQueryCardinality
right)
154
public static
XmlQueryCardinality
operator *(
XmlQueryCardinality
left,
XmlQueryCardinality
right)
162
public static
XmlQueryCardinality
operator +(
XmlQueryCardinality
left,
XmlQueryCardinality
right)
179
public static bool operator <=(
XmlQueryCardinality
left,
XmlQueryCardinality
right)
187
public static bool operator >=(
XmlQueryCardinality
left,
XmlQueryCardinality
right)
196
public
XmlQueryCardinality
AtMost()
209
public bool NeverSubset(
XmlQueryCardinality
other)
217
private static readonly
XmlQueryCardinality
[,] s_cardinalityProduct = {
232
private static readonly
XmlQueryCardinality
[,] s_cardinalitySum = {
System\Xml\Xsl\XmlQueryType.cs (7)
72
public abstract
XmlQueryCardinality
Cardinality { get; }
260
get { return Cardinality <=
XmlQueryCardinality
.Zero; }
268
get { return Cardinality <=
XmlQueryCardinality
.One; }
276
get { return
XmlQueryCardinality
.Zero <= Cardinality; }
284
get { return
XmlQueryCardinality
.More <= Cardinality; }
420
if (Cardinality ==
XmlQueryCardinality
.None)
424
else if (Cardinality ==
XmlQueryCardinality
.Zero)
System\Xml\Xsl\XmlQueryTypeFactory.cs (42)
60
return PrimeProduct(Type(((XmlSchemaSimpleTypeList)schemaType.Content!).BaseItemType!, isStrict),
XmlQueryCardinality
.ZeroOrMore);
98
XmlQueryCardinality
card = types[0].Cardinality;
152
public static XmlQueryType PrimeProduct(XmlQueryType t,
XmlQueryCardinality
c)
167
public static XmlQueryType AtMost(XmlQueryType t,
XmlQueryCardinality
c)
187
public static readonly XmlQueryType ItemS = TF.PrimeProduct(Item,
XmlQueryCardinality
.ZeroOrMore);
189
public static readonly XmlQueryType NodeS = TF.PrimeProduct(Node,
XmlQueryCardinality
.ZeroOrMore);
191
public static readonly XmlQueryType ElementS = TF.PrimeProduct(Element,
XmlQueryCardinality
.ZeroOrMore);
193
public static readonly XmlQueryType DocumentS = TF.PrimeProduct(Document,
XmlQueryCardinality
.ZeroOrMore);
195
public static readonly XmlQueryType AttributeQ = TF.PrimeProduct(Attribute,
XmlQueryCardinality
.ZeroOrOne);
196
public static readonly XmlQueryType AttributeS = TF.PrimeProduct(Attribute,
XmlQueryCardinality
.ZeroOrMore);
198
public static readonly XmlQueryType NamespaceS = TF.PrimeProduct(Namespace,
XmlQueryCardinality
.ZeroOrMore);
200
public static readonly XmlQueryType TextS = TF.PrimeProduct(Text,
XmlQueryCardinality
.ZeroOrMore);
202
public static readonly XmlQueryType CommentS = TF.PrimeProduct(Comment,
XmlQueryCardinality
.ZeroOrMore);
204
public static readonly XmlQueryType PIS = TF.PrimeProduct(PI,
XmlQueryCardinality
.ZeroOrMore);
206
public static readonly XmlQueryType DocumentOrElementQ = TF.PrimeProduct(DocumentOrElement,
XmlQueryCardinality
.ZeroOrOne);
207
public static readonly XmlQueryType DocumentOrElementS = TF.PrimeProduct(DocumentOrElement,
XmlQueryCardinality
.ZeroOrMore);
209
public static readonly XmlQueryType ContentS = TF.PrimeProduct(Content,
XmlQueryCardinality
.ZeroOrMore);
211
public static readonly XmlQueryType DocumentOrContentS = TF.PrimeProduct(DocumentOrContent,
XmlQueryCardinality
.ZeroOrMore);
213
public static readonly XmlQueryType AttributeOrContentS = TF.PrimeProduct(AttributeOrContent,
XmlQueryCardinality
.ZeroOrMore);
215
public static readonly XmlQueryType AnyAtomicTypeS = TF.PrimeProduct(AnyAtomicType,
XmlQueryCardinality
.ZeroOrMore);
218
public static readonly XmlQueryType StringXS = TF.PrimeProduct(StringX,
XmlQueryCardinality
.ZeroOrMore);
223
public static readonly XmlQueryType IntXS = TF.PrimeProduct(IntX,
XmlQueryCardinality
.ZeroOrMore);
236
public static readonly XmlQueryType UntypedNodeS = TF.PrimeProduct(UntypedNode,
XmlQueryCardinality
.ZeroOrMore);
238
public static readonly XmlQueryType NodeNotRtfQ = TF.PrimeProduct(NodeNotRtf,
XmlQueryCardinality
.ZeroOrOne);
239
public static readonly XmlQueryType NodeNotRtfS = TF.PrimeProduct(NodeNotRtf,
XmlQueryCardinality
.ZeroOrMore);
240
public static readonly XmlQueryType NodeSDod = TF.PrimeProduct(NodeNotRtf,
XmlQueryCardinality
.ZeroOrMore);
643
public override
XmlQueryCardinality
Cardinality
645
get { return
XmlQueryCardinality
.One; }
749
Debug.Assert(t.Cardinality ==
XmlQueryCardinality
.One, "ChoiceType member types must be prime types.");
921
public override
XmlQueryCardinality
Cardinality
923
get { return TypeCode == XmlTypeCode.None ?
XmlQueryCardinality
.None :
XmlQueryCardinality
.One; }
962
public static readonly XmlQueryType Zero = new SequenceType(ChoiceType.None,
XmlQueryCardinality
.Zero);
965
private readonly
XmlQueryCardinality
_card;
970
public static XmlQueryType Create(XmlQueryType prime,
XmlQueryCardinality
card)
978
return
XmlQueryCardinality
.Zero <= card ? Zero : None;
983
if (card ==
XmlQueryCardinality
.None)
987
else if (card ==
XmlQueryCardinality
.Zero)
991
else if (card ==
XmlQueryCardinality
.One)
1002
private SequenceType(XmlQueryType prime,
XmlQueryCardinality
card)
1034
XmlQueryCardinality
card = new XmlQueryCardinality(reader);
1109
public override
XmlQueryCardinality
Cardinality
System\Xml\Xsl\Xslt\QilGenerator.cs (1)
2825
if (nsVar.XmlType.Cardinality ==
XmlQueryCardinality
.One)