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