109 references to IsSingleton
System.Data.SqlXml (109)
System\Xml\Xsl\IlGen\XmlILConstructAnalyzer.cs (6)
551
if (!typ.
IsSingleton
)
557
if (!typ.
IsSingleton
)
628
if (!typ.
IsSingleton
)
646
if (!typ.
IsSingleton
)
654
Debug.Assert(!typ.
IsSingleton
);
688
Debug.Assert(!typ.
IsSingleton
);
System\Xml\Xsl\IlGen\XmlILOptimizerVisitor.cs (15)
319
if ((( ( (local0).XmlType ).
IsSingleton
) && (!( IsGlobalVariable(local0) ))) && (this[XmlILOptimization.NormalizeSingletonLet])) {
347
if ( ( (local2).XmlType ).
IsSingleton
) {
617
if (( ( (local1).XmlType ).
IsSingleton
) && ( !OptimizerPatterns.Read(local1).MatchesPattern(OptimizerPatternName.MaybeSideEffects) )) {
1249
if (( ( (local2).XmlType ).
IsSingleton
) && (this[XmlILOptimization.EliminateStrConcatSingle])) {
1361
if ( ( (local3).XmlType ).
IsSingleton
) {
1364
if ( ( (local4).XmlType ).
IsSingleton
) {
1474
if ( ( (local3).XmlType ).
IsSingleton
) {
1477
if ( ( (local4).XmlType ).
IsSingleton
) {
1490
if ( ( (local3).XmlType ).
IsSingleton
) {
1530
if ( ( (local9).XmlType ).
IsSingleton
) {
1551
if (( ( (local4).XmlType ).
IsSingleton
) && ( !( (local5).XmlType ).MaybeMany )) {
1572
if (( !( (local4).XmlType ).MaybeMany ) && ( ( (local5).XmlType ).
IsSingleton
)) {
2046
if ( ( (local3).XmlType ).
IsSingleton
) {
2058
if ((( (local1).NodeType == QilNodeType.Let ) || ( ( ( (QilNode) (local1)[0] ).XmlType ).
IsSingleton
)) && ( !OptimizerPatterns.Read(local1).MatchesPattern(OptimizerPatternName.MaybeSideEffects) )) {
2469
if ( ( (local3).XmlType ).
IsSingleton
) {
System\Xml\Xsl\IlGen\XmlIlTypeHelper.cs (1)
34
if (qyTyp.
IsSingleton
) {
System\Xml\Xsl\IlGen\XmlIlVisitor.cs (56)
95
iterInfo.Storage = StorageDescriptor.Global(methGlobal, GetItemStorageType(iter), !iter.XmlType.
IsSingleton
);
117
isCached = !iter.XmlType.
IsSingleton
;
217
iterInfo.Storage = StorageDescriptor.Parameter(paramId, GetItemStorageType(iter), !iter.XmlType.
IsSingleton
);
250
NestedVisitEnsureStack(iter.Binding, GetItemStorageType(iter), /*isCached:*/!iter.XmlType.
IsSingleton
);
264
NestedVisitEnsureStack(ndFunc.Definition, GetItemStorageType(ndFunc), !ndFunc.XmlType.
IsSingleton
);
299
Debug.Assert(nd.XmlType.
IsSingleton
|| CachesResult(nd) || this.iterCurr.HasLabelNext,
345
if (typ.
IsSingleton
) {
852
if (ndCond.XmlType.
IsSingleton
) {
882
if (!ndCond.XmlType.
IsSingleton
) {
883
Debug.Assert(!ndCond.Center.XmlType.
IsSingleton
|| !ndCond.Right.XmlType.
IsSingleton
);
913
Debug.Assert(ndBranch.XmlType.
IsSingleton
, "Conditional must produce a singleton");
1086
if (ndSeq.XmlType.
IsSingleton
) {
1089
if (nd.XmlType.
IsSingleton
) {
1237
if (ndSet.XmlType.
IsSingleton
) {
1400
Debug.Assert(!ndStrConcat.Values.XmlType.
IsSingleton
, "Optimizer should have folded StrConcat of a singleton value");
1413
if (!ndStr.XmlType.
IsSingleton
)
1508
Debug.Assert(ndParsedTagName.Right.XmlType.
IsSingleton
);
1584
Debug.Assert(ndComp.Left.XmlType.
IsSingleton
&& ndComp.Right.XmlType.
IsSingleton
, "Operands to compare must be cardinality one.");
1961
if (ndIter.NodeType == QilNodeType.For || ndIter.XmlType.
IsSingleton
) {
1982
Debug.Assert(ndFor.XmlType.
IsSingleton
);
2039
Debug.Assert(!ndLet.XmlType.
IsSingleton
);
2045
NestedVisit(ndLet.Binding, GetItemStorageType(ndLet), !ndLet.XmlType.
IsSingleton
);
2176
if (ndKey.XmlType.
IsSingleton
) {
2214
if (ndDod.XmlType.
IsSingleton
)
2376
NestedVisitEnsureStack(ndActualArg, GetItemStorageType(ndFormalArg), !ndFormalArg.XmlType.
IsSingleton
);
2388
this.iterCurr.Storage = StorageDescriptor.Stack(GetItemStorageType(ndInvoke), !ndInvoke.XmlType.
IsSingleton
);
2926
if (!ndTypeAssert.Source.XmlType.
IsSingleton
&& ndTypeAssert.XmlType.
IsSingleton
&& !this.iterCurr.HasLabelNext) {
2958
if (typDerived.
IsSingleton
&& (object) typBase == (object) TypeFactory.Node) {
2983
NestedVisitEnsureStack(ndIsType.Source, typeof(XPathItem), !typDerived.
IsSingleton
);
2985
this.helper.Call(typDerived.
IsSingleton
? XmlILMethods.ItemMatchesCode : XmlILMethods.SeqMatchesCode);
2993
NestedVisitEnsureStack(ndIsType.Source, typeof(XPathItem), !typDerived.
IsSingleton
);
2995
this.helper.Call(typDerived.
IsSingleton
? XmlILMethods.ItemMatchesType : XmlILMethods.SeqMatchesType);
3012
if (!typBase.IsNode || !typBase.
IsSingleton
)
3016
if (!typDerived.IsNode || !typDerived.
IsSingleton
|| !typDerived.IsNotRtf)
3201
if (ndVal.Child.XmlType.
IsSingleton
) {
3270
if (ndGenId.Child.XmlType.
IsSingleton
) {
3408
else if ((ndActualArg.XmlType.
IsSingleton
&& clrTypeFormalArg == itemType) || ndActualArg.XmlType.TypeCode == XmlTypeCode.None) {
3412
else if (ndActualArg.XmlType.
IsSingleton
&& clrTypeFormalArg == typeof(XPathItem)) {
3428
NestedVisitEnsureStack(ndActualArg, GetItemStorageType(xmlTypeFormalArg), !xmlTypeFormalArg.
IsSingleton
);
3435
NestedVisitEnsureStack(ndActualArg, GetItemStorageType(xmlTypeFormalArg), !xmlTypeFormalArg.
IsSingleton
);
3464
this.iterCurr.Storage = StorageDescriptor.Stack(GetItemStorageType(ndInvoke), !ndInvoke.XmlType.
IsSingleton
);
3534
NestedVisitEnsureStack(ndConv.Source, typeof(XPathItem), !typSrc.
IsSingleton
);
3535
if (!GetXsltConvertMethod(typSrc.
IsSingleton
? TypeFactory.Item : TypeFactory.ItemS, typDst, out meth))
3543
this.iterCurr.Storage = StorageDescriptor.Stack(GetItemStorageType(typDst), !typDst.
IsSingleton
);
3785
if (nd.XmlType.
IsSingleton
) {
4103
if (!info.PushToWriterLast || nd.XmlType.
IsSingleton
)
4129
if (nd.XmlType.
IsSingleton
)
4380
else if (!isCached && nd.XmlType.
IsSingleton
) {
4398
NestedVisit(nd, GetItemStorageType(nd), !nd.XmlType.
IsSingleton
);
4454
Debug.Assert(nd.XmlType.
IsSingleton
&& !XmlILConstructInfo.Read(nd).PushToWriterLast);
4505
if (nd.XmlType.
IsSingleton
) {
4556
return !nd.XmlType.
IsSingleton
;
4564
if (nd.XmlType.
IsSingleton
)
System\Xml\Xsl\QIL\QilPatternFactory.cs (2)
223
Debug.Assert(arg.XmlType.TypeCode == XmlTypeCode.Boolean && arg.XmlType.
IsSingleton
,
404
if (values.XmlType.
IsSingleton
)
System\Xml\Xsl\QIL\QilTypeChecker.cs (1)
925
Check(node.XmlType.IsNumeric && node.XmlType.
IsSingleton
&& node.XmlType.IsStrict, node, "Node's type " + node.XmlType + " must be a strict singleton numeric type");
System\Xml\Xsl\Runtime\XmlQueryContext.cs (1)
266
if (xmlTypeFormalArg.
IsSingleton
)
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (1)
567
if (!xmlType.
IsSingleton
) {
System\Xml\Xsl\XmlQueryType.cs (5)
484
Debug.Assert(Count == 1 &&
IsSingleton
, "This method should only be called for item types.");
485
Debug.Assert(baseType.Count == 1 && baseType.
IsSingleton
, "This method should only be called for item types.");
521
Debug.Assert(this.Count == 1 && this.
IsSingleton
, "this should be an item");
522
Debug.Assert(other.Count == 1 && other.
IsSingleton
, "other should be an item");
552
Debug.Assert(
IsSingleton
, "Do not pass a Sequence type to this method.");
System\Xml\Xsl\XmlQueryTypeFactory.cs (2)
265
Debug.Assert(itemType.
IsSingleton
, "All types should be prime.");
926
Debug.Assert(prime.
IsSingleton
, "Prime type must have cardinality one.");
System\Xml\Xsl\XPath\XPathBuilder.cs (9)
132
Debug.Assert(compType == XmlTypeCode.Boolean || left.XmlType.
IsSingleton
&& right.XmlType.
IsSingleton
, "Both comparison operands must be singletons");
151
Debug.Assert(val.XmlType.
IsSingleton
);
153
if (compType == XmlTypeCode.Boolean || nodeset.XmlType.
IsSingleton
) {
175
if (right.XmlType.
IsSingleton
) {
178
if (left.XmlType.
IsSingleton
) {
531
if (arg.XmlType.
IsSingleton
) {
541
if (arg.XmlType.
IsSingleton
) {
566
if (arg.XmlType.
IsSingleton
) {
System\Xml\Xsl\XPath\XPathQilFactory.cs (4)
52
Debug.Assert(n != null && n.XmlType.
IsSingleton
&& n.XmlType.IsNode, "Must be a singleton node");
62
Debug.Assert(n != null && n.XmlType.
IsSingleton
&& n.XmlType.IsNode && n.XmlType.IsNotRtf, "Must be a singleton node and not an Rtf");
249
if (n.XmlType.IsNode && n.XmlType.IsNotRtf && n.XmlType.
IsSingleton
) {
296
if (id.XmlType.
IsSingleton
) {
System\Xml\Xsl\Xslt\QilGenerator.cs (1)
1142
if (selectExpr.XmlType.
IsSingleton
) {
System\Xml\Xsl\Xslt\QilGeneratorEnv.cs (4)
206
case XmlTypeCode.Node: args[i] = xmlTypeFormalArg.
IsSingleton
? f.ConvertToNode(args[i]) : f.ConvertToNodeSet(args[i]); break;
322
if (keys.XmlType.
IsSingleton
) {
453
if (baseNode.XmlType.
IsSingleton
) {
526
if (n.XmlType.
IsSingleton
) {
System\Xml\Xsl\Xslt\XsltQilFactory.cs (1)
31
Debug.Assert(xt.
IsSingleton
&& xt.IsStrict, "Xslt assumes that these types will always be singleton and strict");