592 references to XmlQueryTypeFactory
System.Private.Xml (592)
System\Xml\Xsl\IlGen\StaticDataManager.cs (1)
186XmlQueryTypeFactory.CheckSerializability(type);
System\Xml\Xsl\IlGen\XmlILOptimizerVisitor.cs (133)
290if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 301if ((object?)((local2).XmlType) == (object)XmlQueryTypeFactory.None) 332if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 349if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 439if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 450if ((object?)((local2).XmlType) == (object)XmlQueryTypeFactory.None) 512if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 523if ((object?)((local2).XmlType) == (object)XmlQueryTypeFactory.None) 584if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 628if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 739if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 825if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 836if ((object?)((local2).XmlType) == (object)XmlQueryTypeFactory.None) 940if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 951if ((object?)((local2).XmlType) == (object)XmlQueryTypeFactory.None) 1041if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 1052if ((object?)((local2).XmlType) == (object)XmlQueryTypeFactory.None) 1141if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 1169if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 1197if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 1225if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 1256if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 1322if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 1333if ((object?)((local2).XmlType) == (object)XmlQueryTypeFactory.None) 1379if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 1390if ((object?)((local2).XmlType) == (object)XmlQueryTypeFactory.None) 1422if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 1433if ((object?)((local2).XmlType) == (object)XmlQueryTypeFactory.None) 1479if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 1490if ((object?)((local2).XmlType) == (object)XmlQueryTypeFactory.None) 1522if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 1533if ((object?)((local2).XmlType) == (object)XmlQueryTypeFactory.None) 1567if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 1597if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 1608if ((object?)((local2).XmlType) == (object)XmlQueryTypeFactory.None) 1658if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 1669if ((object?)((local2).XmlType) == (object)XmlQueryTypeFactory.None) 1690if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 1701if ((object?)((local2).XmlType) == (object)XmlQueryTypeFactory.None) 1826if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 1837if ((object?)((local2).XmlType) == (object)XmlQueryTypeFactory.None) 2096if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 2107if ((object?)((local2).XmlType) == (object)XmlQueryTypeFactory.None) 2210if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 2221if ((object?)((local2).XmlType) == (object)XmlQueryTypeFactory.None) 2305if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 2316if ((object?)((local2).XmlType) == (object)XmlQueryTypeFactory.None) 2400if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 2411if ((object?)((local2).XmlType) == (object)XmlQueryTypeFactory.None) 2498if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 2509if ((object?)((local2).XmlType) == (object)XmlQueryTypeFactory.None) 2538if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 2549if ((object?)((local2).XmlType) == (object)XmlQueryTypeFactory.None) 2578if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 2589if ((object?)((local2).XmlType) == (object)XmlQueryTypeFactory.None) 2621if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 2934if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 2945if ((object?)((local2).XmlType) == (object)XmlQueryTypeFactory.None) 3000if ((local8) == (XmlQueryTypeFactory.Attribute)) 3169if ((local7) == (XmlQueryTypeFactory.Element)) 3245if ((local7) == (XmlQueryTypeFactory.Attribute)) 3270if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 3310if ((((local3).XmlType) == (XmlQueryTypeFactory.IntX)) && ((local5) == (XmlQueryTypeFactory.DoubleX))) 3329if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 3481if ((!OptimizerPatterns.Read(local2).MatchesPattern(OptimizerPatternName.IsPositional)) && ((local3).XmlType!.IsSubtypeOf(XmlQueryTypeFactory.NodeNotRtfS))) 3603if (((local0).XmlType!.IsSubtypeOf(XmlQueryTypeFactory.NodeS)) && (this[XmlILOptimization.AnnotateIndex1])) 3605if (((local1.Count == 2) && (((QilNode)(local1)[0]).XmlType!.IsSubtypeOf(XmlQueryTypeFactory.Node))) && ((((QilNode)(local1)[1]).XmlType) == (XmlQueryTypeFactory.StringX))) 3674if (((local0).XmlType.IsSubtypeOf(XmlQueryTypeFactory.NodeS)) && (this[XmlILOptimization.AnnotateIndex2])) 3676if (((local1.Count == 2) && ((((QilNode)(local1)[0]).XmlType) == (XmlQueryTypeFactory.Node))) && ((((QilNode)(local1)[1]).XmlType) == (XmlQueryTypeFactory.StringX))) 3773if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 3799if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 3810if ((object?)((local2).XmlType) == (object)XmlQueryTypeFactory.None) 3835if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 3860if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 3885if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 3910if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 3935if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 3960if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 3985if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 4010if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 4035if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 4061if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 4072if ((object?)((local2).XmlType) == (object)XmlQueryTypeFactory.None) 4098if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 4109if ((object?)((local2).XmlType) == (object)XmlQueryTypeFactory.None) 4130if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 4141if ((object?)((local2).XmlType) == (object)XmlQueryTypeFactory.None) 4169if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 4180if ((object?)((local2).XmlType) == (object)XmlQueryTypeFactory.None) 4205if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 4231if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 4242if ((object?)((local2).XmlType) == (object)XmlQueryTypeFactory.None) 4267if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 4292if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 4317if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 4343if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 4354if ((object?)((local2).XmlType) == (object)XmlQueryTypeFactory.None) 4387if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 4429if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 4446if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 4463if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 4480if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 4501if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 4564if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 4668if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 4724if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 4741if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 4766if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 4791if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 4819if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 4837if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 4848if ((object?)((local2).XmlType) == (object)XmlQueryTypeFactory.None) 4873if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 4899if ((object?)((local1).XmlType) == (object)XmlQueryTypeFactory.None) 5169if (typ == XmlQueryTypeFactory.IntX) return true; 5170if (typ == XmlQueryTypeFactory.IntegerX) return true; 5171if (typ == XmlQueryTypeFactory.DecimalX) return true; 5172if (typ == XmlQueryTypeFactory.FloatX) return true; 5173if (typ == XmlQueryTypeFactory.DoubleX) return true; 5183if (typ == XmlQueryTypeFactory.Element) return true; 5184if (typ == XmlQueryTypeFactory.Text) return true; 5185if (typ == XmlQueryTypeFactory.Comment) return true; 5186if (typ == XmlQueryTypeFactory.PI) return true; 5187if (typ == XmlQueryTypeFactory.Content) return true; 5403if (typTarget == XmlQueryTypeFactory.StringX) 5405else if (typTarget == XmlQueryTypeFactory.IntX) 5407else if (typTarget == XmlQueryTypeFactory.IntegerX) 5409else if (typTarget == XmlQueryTypeFactory.DecimalX) 5411else if (typTarget == XmlQueryTypeFactory.DoubleX) 5413else if (typTarget == XmlQueryTypeFactory.BooleanX)
System\Xml\Xsl\IlGen\XmlIlVisitor.cs (48)
19using TypeFactory = System.Xml.Xsl.XmlQueryTypeFactory; 149Debug.Assert(iter.XmlType == TypeFactory.ItemS, "IlGen currently only supports parameters of type item*."); 165_helper.LoadInteger(_helper.StaticData.DeclareXmlType(XmlQueryTypeFactory.ItemS)); 253Debug.Assert(iter.XmlType == TypeFactory.ItemS, "IlGen currently only supports default values in parameters of type item*."); 3184if (typDerived.IsSingleton && (object)typBase == (object)TypeFactory.Node) 3201if ((object)typBase == (object)TypeFactory.Double) codeBase = XmlTypeCode.Double; 3202else if ((object)typBase == (object)TypeFactory.String) codeBase = XmlTypeCode.String; 3203else if ((object)typBase == (object)TypeFactory.Boolean) codeBase = XmlTypeCode.Boolean; 3204else if ((object)typBase == (object)TypeFactory.Node) codeBase = XmlTypeCode.Node; 3253if ((object)typItem == (object)TypeFactory.Element) kinds |= XmlNodeKindFlags.Element; 3254else if ((object)typItem == (object)TypeFactory.Attribute) kinds |= XmlNodeKindFlags.Attribute; 3255else if ((object)typItem == (object)TypeFactory.Text) kinds |= XmlNodeKindFlags.Text; 3256else if ((object)typItem == (object)TypeFactory.Document) kinds |= XmlNodeKindFlags.Document; 3257else if ((object)typItem == (object)TypeFactory.Comment) kinds |= XmlNodeKindFlags.Comment; 3258else if ((object)typItem == (object)TypeFactory.PI) kinds |= XmlNodeKindFlags.PI; 3259else if ((object)typItem == (object)TypeFactory.Namespace) kinds |= XmlNodeKindFlags.Namespace; 3810if (!GetXsltConvertMethod(typSrc.IsSingleton ? TypeFactory.Item : TypeFactory.ItemS, typDst, out meth)) 3836if ((object)typDst == (object)TypeFactory.BooleanX) 3838if ((object)typSrc == (object)TypeFactory.Item) meth = XmlILMethods.ItemToBool; 3839else if ((object)typSrc == (object)TypeFactory.ItemS) meth = XmlILMethods.ItemsToBool; 3842else if ((object)typDst == (object)TypeFactory.DateTimeX) 3844if ((object)typSrc == (object)TypeFactory.StringX) meth = XmlILMethods.StrToDT; 3847else if ((object)typDst == (object)TypeFactory.DecimalX) 3849if ((object)typSrc == (object)TypeFactory.DoubleX) meth = XmlILMethods.DblToDec; 3852else if ((object)typDst == (object)TypeFactory.DoubleX) 3854if ((object)typSrc == (object)TypeFactory.DecimalX) meth = XmlILMethods.DecToDbl; 3855else if ((object)typSrc == (object)TypeFactory.IntX) meth = XmlILMethods.IntToDbl; 3856else if ((object)typSrc == (object)TypeFactory.Item) meth = XmlILMethods.ItemToDbl; 3857else if ((object)typSrc == (object)TypeFactory.ItemS) meth = XmlILMethods.ItemsToDbl; 3858else if ((object)typSrc == (object)TypeFactory.LongX) meth = XmlILMethods.LngToDbl; 3859else if ((object)typSrc == (object)TypeFactory.StringX) meth = XmlILMethods.StrToDbl; 3862else if ((object)typDst == (object)TypeFactory.IntX) 3864if ((object)typSrc == (object)TypeFactory.DoubleX) meth = XmlILMethods.DblToInt; 3867else if ((object)typDst == (object)TypeFactory.LongX) 3869if ((object)typSrc == (object)TypeFactory.DoubleX) meth = XmlILMethods.DblToLng; 3872else if ((object)typDst == (object)TypeFactory.NodeNotRtf) 3874if ((object)typSrc == (object)TypeFactory.Item) meth = XmlILMethods.ItemToNode; 3875else if ((object)typSrc == (object)TypeFactory.ItemS) meth = XmlILMethods.ItemsToNode; 3878else if ((object)typDst == (object)TypeFactory.NodeSDod || 3879(object)typDst == (object)TypeFactory.NodeNotRtfS) 3881if ((object)typSrc == (object)TypeFactory.Item) meth = XmlILMethods.ItemToNodes; 3882else if ((object)typSrc == (object)TypeFactory.ItemS) meth = XmlILMethods.ItemsToNodes; 3885else if ((object)typDst == (object)TypeFactory.StringX) 3887if ((object)typSrc == (object)TypeFactory.DateTimeX) meth = XmlILMethods.DTToStr; 3888else if ((object)typSrc == (object)TypeFactory.DoubleX) meth = XmlILMethods.DblToStr; 3889else if ((object)typSrc == (object)TypeFactory.Item) meth = XmlILMethods.ItemToStr; 3890else if ((object)typSrc == (object)TypeFactory.ItemS) meth = XmlILMethods.ItemsToStr;
System\Xml\Xsl\QIL\QilList.cs (3)
49XmlQueryType xt = XmlQueryTypeFactory.Empty; 56xt = XmlQueryTypeFactory.Sequence(xt, _members[i].XmlType!); 64xt = XmlQueryTypeFactory.Choice(xt, _members[i].XmlType!);
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 (140)
173return XmlQueryTypeFactory.ItemS; 242CheckXmlType(node.Name, XmlQueryTypeFactory.StringX); 243CheckXmlType(node.BaseUri, XmlQueryTypeFactory.StringX); 244return XmlQueryTypeFactory.NodeNotRtfQ; 254CheckXmlType(node.Child, XmlQueryTypeFactory.StringX); 255return XmlQueryTypeFactory.None; 260CheckXmlType(node.Child, XmlQueryTypeFactory.StringX); 261return XmlQueryTypeFactory.Empty; 288return XmlQueryTypeFactory.IntX; 299return XmlQueryTypeFactory.BooleanX; 304return XmlQueryTypeFactory.BooleanX; 310return XmlQueryTypeFactory.StringX; 316return XmlQueryTypeFactory.IntX; 322return XmlQueryTypeFactory.IntegerX; 328return XmlQueryTypeFactory.DoubleX; 334return XmlQueryTypeFactory.DecimalX; 342return XmlQueryTypeFactory.QNameX; 354return XmlQueryTypeFactory.ItemS; 365CheckXmlType(node.Left, XmlQueryTypeFactory.BooleanX); 366CheckXmlType(node.Right, XmlQueryTypeFactory.BooleanX); 367return XmlQueryTypeFactory.BooleanX; 377CheckXmlType(node.Child, XmlQueryTypeFactory.BooleanX); 378return XmlQueryTypeFactory.BooleanX; 389CheckXmlType(node.Left, XmlQueryTypeFactory.BooleanX); 390return XmlQueryTypeFactory.Choice(node.Center.XmlType!, node.Right.XmlType!); 395CheckXmlType(node.Expression, XmlQueryTypeFactory.IntX); 409return XmlQueryTypeFactory.IntX; 419CheckXmlType(node.Left, XmlQueryTypeFactory.NodeNotRtfS); 420CheckXmlType(node.Right, XmlQueryTypeFactory.NodeNotRtfS); 421return DistinctType(XmlQueryTypeFactory.Sequence(node.Left.XmlType!, node.Right.XmlType!)); 431CheckXmlType(node.Left, XmlQueryTypeFactory.NodeNotRtfS); 432CheckXmlType(node.Right, XmlQueryTypeFactory.NodeNotRtfS); 433return XmlQueryTypeFactory.AtMost(node.Left.XmlType!, node.Left.XmlType!.Cardinality); 440return XmlQueryTypeFactory.PrimeProduct(xmlType, xmlType.MaybeEmpty ? XmlQueryCardinality.ZeroOrOne : XmlQueryCardinality.One); 506CheckXmlType(node.Child, XmlQueryTypeFactory.StringX); 507return XmlQueryTypeFactory.IntX; 512CheckXmlType(node.Delimiter, XmlQueryTypeFactory.StringX); 513CheckXmlType(node.Values, XmlQueryTypeFactory.StringXS); 514return XmlQueryTypeFactory.StringX; 519CheckXmlType(node.Left, XmlQueryTypeFactory.StringX); 520Check(node.Right.XmlType!.IsSubtypeOf(XmlQueryTypeFactory.StringX) || node.Right.XmlType.IsSubtypeOf(XmlQueryTypeFactory.NamespaceS), 522return XmlQueryTypeFactory.QNameX; 536return XmlQueryTypeFactory.BooleanX; 572CheckXmlType(node.Left, XmlQueryTypeFactory.NodeNotRtf); 573CheckXmlType(node.Right, XmlQueryTypeFactory.NodeNotRtf); 574return XmlQueryTypeFactory.BooleanX; 602return XmlQueryTypeFactory.PrimeProduct(bodyType, variableCard * bodyType.Cardinality); 609CheckXmlType(node.Body, XmlQueryTypeFactory.BooleanX); 616return XmlQueryTypeFactory.AtMost(node.Variable.Binding!.XmlType!, node.Variable.Binding.XmlType!.Cardinality); 633return XmlQueryTypeFactory.PrimeProduct(varType, varType.Cardinality); 639CheckXmlType(node.Collation, XmlQueryTypeFactory.StringX); 645CheckXmlType(node.Child, XmlQueryTypeFactory.NodeNotRtfS); 687CheckXmlType(node.Child, XmlQueryTypeFactory.NodeNotRtf); 688return XmlQueryTypeFactory.AttributeOrContentS; 693CheckXmlType(node.Left, XmlQueryTypeFactory.NodeNotRtf); 694CheckXmlType(node.Right, XmlQueryTypeFactory.QNameX); 695return XmlQueryTypeFactory.AttributeQ; 700CheckXmlType(node.Child, XmlQueryTypeFactory.NodeNotRtf); 701return XmlQueryTypeFactory.DocumentOrElementQ; 706CheckXmlType(node.Child, XmlQueryTypeFactory.NodeNotRtf); 707return XmlQueryTypeFactory.NodeNotRtf; 712return XmlQueryTypeFactory.NodeNotRtf; 717CheckXmlType(node.Child, XmlQueryTypeFactory.NodeNotRtf); 718return XmlQueryTypeFactory.ContentS; 723CheckXmlType(node.Child, XmlQueryTypeFactory.NodeNotRtf); 724return XmlQueryTypeFactory.Choice(node.Child.XmlType!, XmlQueryTypeFactory.ContentS); 729CheckXmlType(node.Child, XmlQueryTypeFactory.NodeNotRtf); 730return XmlQueryTypeFactory.DocumentOrElementS; 735CheckXmlType(node.Child, XmlQueryTypeFactory.NodeNotRtf); 736return XmlQueryTypeFactory.Choice(node.Child.XmlType!, XmlQueryTypeFactory.DocumentOrElementS); 741CheckXmlType(node.Child, XmlQueryTypeFactory.NodeNotRtf); 742return XmlQueryTypeFactory.DocumentOrContentS; 747CheckXmlType(node.Child, XmlQueryTypeFactory.NodeNotRtf); 748return XmlQueryTypeFactory.ContentS; 753CheckXmlType(node.Child, XmlQueryTypeFactory.NodeNotRtf); 754return XmlQueryTypeFactory.ContentS; 759CheckXmlType(node.Left, XmlQueryTypeFactory.NodeNotRtf); 760CheckXmlType(node.Right, XmlQueryTypeFactory.NodeNotRtf); 761return XmlQueryTypeFactory.Choice(node.Left.XmlType!, XmlQueryTypeFactory.ContentS, node.Right.XmlType!); 766CheckXmlType(node.Left, XmlQueryTypeFactory.NodeNotRtf); 767CheckXmlType(node.Right, XmlQueryTypeFactory.StringX); 768return XmlQueryTypeFactory.ElementS; 779CheckXmlType(node.Left, XmlQueryTypeFactory.QNameX); 780CheckXmlType(node.Right, XmlQueryTypeFactory.NodeNotRtfS); 781return XmlQueryTypeFactory.UntypedElement; 786CheckXmlType(node.Left, XmlQueryTypeFactory.QNameX); 787CheckXmlType(node.Right, XmlQueryTypeFactory.NodeNotRtfS); 788return XmlQueryTypeFactory.UntypedAttribute; 793CheckXmlType(node.Child, XmlQueryTypeFactory.NodeNotRtfS); 794return XmlQueryTypeFactory.Comment; 799CheckXmlType(node.Left, XmlQueryTypeFactory.StringX); 800CheckXmlType(node.Right, XmlQueryTypeFactory.NodeNotRtfS); 801return XmlQueryTypeFactory.PI; 806CheckXmlType(node.Child, XmlQueryTypeFactory.StringX); 807return XmlQueryTypeFactory.Text; 812CheckXmlType(node.Child, XmlQueryTypeFactory.StringX); 813return XmlQueryTypeFactory.Text; 818CheckXmlType(node.Child, XmlQueryTypeFactory.NodeNotRtfS); 819return XmlQueryTypeFactory.UntypedDocument; 824CheckXmlType(node.Left, XmlQueryTypeFactory.StringX); 825CheckXmlType(node.Right, XmlQueryTypeFactory.StringX); 826return XmlQueryTypeFactory.Namespace; 831CheckXmlType(node.Left, XmlQueryTypeFactory.NodeNotRtfS); 833return XmlQueryTypeFactory.Node; 844CheckXmlType(node.Child, XmlQueryTypeFactory.Node); 845return XmlQueryTypeFactory.QNameX; 850CheckXmlType(node.Child, XmlQueryTypeFactory.Node); 851return XmlQueryTypeFactory.StringX; 856CheckXmlType(node.Child, XmlQueryTypeFactory.Node); 857return XmlQueryTypeFactory.StringX; 862CheckXmlType(node.Child, XmlQueryTypeFactory.Node); 863return XmlQueryTypeFactory.StringX; 884return XmlQueryTypeFactory.BooleanX; 889return XmlQueryTypeFactory.BooleanX; 900CheckXmlType(node.Child, XmlQueryTypeFactory.NodeS); 901return XmlQueryTypeFactory.StringX; 906CheckXmlType(node.Child, XmlQueryTypeFactory.NodeNotRtf); 907return XmlQueryTypeFactory.ContentS; 912CheckXmlType(node.Child, XmlQueryTypeFactory.NodeNotRtf); 913return XmlQueryTypeFactory.ContentS; 918CheckXmlType(node.Child, XmlQueryTypeFactory.NodeNotRtf); 919return XmlQueryTypeFactory.NamespaceS; 930CheckXmlType(node.Child, XmlQueryTypeFactory.NodeNotRtfS); 931return XmlQueryTypeFactory.StringX; 938return XmlQueryTypeFactory.ItemS; 963CheckXmlType(node.Left, XmlQueryTypeFactory.NodeNotRtf); 964CheckXmlType(node.Right, XmlQueryTypeFactory.NodeS); 965return XmlQueryTypeFactory.Choice(node.Left.XmlType!, node.Right.XmlType!); 970CheckXmlType(node.Child, XmlQueryTypeFactory.Node); 973return XmlQueryTypeFactory.NodeNotRtfS; 1053return XmlQueryTypeFactory.PrimeProduct(type, XmlQueryCardinality.OneOrMore); 1056return XmlQueryTypeFactory.PrimeProduct(type, XmlQueryCardinality.ZeroOrMore); 1067return XmlQueryTypeFactory.None; 1072return XmlQueryTypeFactory.Empty; 1077return XmlQueryTypeFactory.AtMost(((QilTargetType)body).TargetType, variable.Binding!.XmlType!.Cardinality); 1094return XmlQueryTypeFactory.AtMost(variable.Binding!.XmlType!, XmlQueryCardinality.ZeroOrOne);
System\Xml\Xsl\Runtime\XmlExtensionFunction.cs (6)
260if ((object)_argXmlTypes[i] == (object)XmlQueryTypeFactory.NodeNotRtf) 261_argXmlTypes[i] = XmlQueryTypeFactory.Node; 262else if ((object)_argXmlTypes[i] == (object)XmlQueryTypeFactory.NodeSDod) 263_argXmlTypes[i] = XmlQueryTypeFactory.NodeS; 267if ((object)_argXmlTypes[i] == (object)XmlQueryTypeFactory.NodeSDod) 268_argXmlTypes[i] = XmlQueryTypeFactory.NodeNotRtfS;
System\Xml\Xsl\Runtime\XmlQueryContext.cs (1)
318return (IList<XPathItem>)_runtime.ChangeTypeXsltResult(XmlQueryTypeFactory.ItemS, objRet);
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (11)
499Debug.Assert(xmlType != XmlQueryTypeFactory.Node && xmlType != XmlQueryTypeFactory.NodeS, 652value = ChangeTypeXsltResult(XmlQueryTypeFactory.NodeS, value); 659value = ChangeTypeXsltResult(XmlQueryTypeFactory.NodeS, value); 792return XmlQueryTypeFactory.Node; 801return XmlQueryTypeFactory.Type(nav.NodeType, XmlQualifiedNameTest.New(nav.LocalName, nav.NamespaceURI), XmlSchemaComplexType.UntypedAnyType, false); 803return XmlQueryTypeFactory.Type(nav.NodeType, XmlQualifiedNameTest.New(nav.LocalName, nav.NamespaceURI), nav.XmlType, nav.SchemaInfo!.SchemaElement!.IsNillable); 807return XmlQueryTypeFactory.Type(nav.NodeType, XmlQualifiedNameTest.New(nav.LocalName, nav.NamespaceURI), DatatypeImplementation.UntypedAtomicType, false); 809return XmlQueryTypeFactory.Type(nav.NodeType, XmlQualifiedNameTest.New(nav.LocalName, nav.NamespaceURI), nav.XmlType, false); 812return XmlQueryTypeFactory.Type(nav.NodeType, XmlQualifiedNameTest.Wildcard, XmlSchemaComplexType.AnyType, false); 816return XmlQueryTypeFactory.Type((XmlSchemaSimpleType)item.XmlType!, true);
System\Xml\Xsl\Runtime\XmlQueryStaticData.cs (2)
147_types[idx] = XmlQueryTypeFactory.Deserialize(dataReader); 274XmlQueryTypeFactory.Serialize(dataWriter, type);
System\Xml\Xsl\Runtime\XsltConvert.cs (21)
350if (clrType == typeof(bool)) return XmlQueryTypeFactory.BooleanX; 351if (clrType == typeof(byte)) return XmlQueryTypeFactory.DoubleX; 352if (clrType == typeof(decimal)) return XmlQueryTypeFactory.DoubleX; 353if (clrType == typeof(DateTime)) return XmlQueryTypeFactory.StringX; 354if (clrType == typeof(double)) return XmlQueryTypeFactory.DoubleX; 355if (clrType == typeof(short)) return XmlQueryTypeFactory.DoubleX; 356if (clrType == typeof(int)) return XmlQueryTypeFactory.DoubleX; 357if (clrType == typeof(long)) return XmlQueryTypeFactory.DoubleX; 358if (clrType == typeof(IXPathNavigable)) return XmlQueryTypeFactory.NodeNotRtf; 359if (clrType == typeof(sbyte)) return XmlQueryTypeFactory.DoubleX; 360if (clrType == typeof(float)) return XmlQueryTypeFactory.DoubleX; 361if (clrType == typeof(string)) return XmlQueryTypeFactory.StringX; 362if (clrType == typeof(ushort)) return XmlQueryTypeFactory.DoubleX; 363if (clrType == typeof(uint)) return XmlQueryTypeFactory.DoubleX; 364if (clrType == typeof(ulong)) return XmlQueryTypeFactory.DoubleX; 365if (clrType == typeof(XPathNavigator[])) return XmlQueryTypeFactory.NodeSDod; 366if (clrType == typeof(XPathNavigator)) return XmlQueryTypeFactory.NodeNotRtf; 367if (clrType == typeof(XPathNodeIterator)) return XmlQueryTypeFactory.NodeSDod; 368if (clrType.IsEnum) return XmlQueryTypeFactory.DoubleX; 369if (clrType == typeof(void)) return XmlQueryTypeFactory.Empty; 371return XmlQueryTypeFactory.ItemS;
System\Xml\Xsl\XmlQueryTypeFactory.cs (57)
11using TF = System.Xml.Xsl.XmlQueryTypeFactory; 186public static readonly XmlQueryType Item = TF.Type(XmlTypeCode.Item, false); 187public static readonly XmlQueryType ItemS = TF.PrimeProduct(Item, XmlQueryCardinality.ZeroOrMore); 188public static readonly XmlQueryType Node = TF.Type(XmlTypeCode.Node, false); 189public static readonly XmlQueryType NodeS = TF.PrimeProduct(Node, XmlQueryCardinality.ZeroOrMore); 190public static readonly XmlQueryType Element = TF.Type(XmlTypeCode.Element, false); 191public static readonly XmlQueryType ElementS = TF.PrimeProduct(Element, XmlQueryCardinality.ZeroOrMore); 192public static readonly XmlQueryType Document = TF.Type(XmlTypeCode.Document, false); 193public static readonly XmlQueryType DocumentS = TF.PrimeProduct(Document, XmlQueryCardinality.ZeroOrMore); 194public static readonly XmlQueryType Attribute = TF.Type(XmlTypeCode.Attribute, false); 195public static readonly XmlQueryType AttributeQ = TF.PrimeProduct(Attribute, XmlQueryCardinality.ZeroOrOne); 196public static readonly XmlQueryType AttributeS = TF.PrimeProduct(Attribute, XmlQueryCardinality.ZeroOrMore); 197public static readonly XmlQueryType Namespace = TF.Type(XmlTypeCode.Namespace, false); 198public static readonly XmlQueryType NamespaceS = TF.PrimeProduct(Namespace, XmlQueryCardinality.ZeroOrMore); 199public static readonly XmlQueryType Text = TF.Type(XmlTypeCode.Text, false); 200public static readonly XmlQueryType TextS = TF.PrimeProduct(Text, XmlQueryCardinality.ZeroOrMore); 201public static readonly XmlQueryType Comment = TF.Type(XmlTypeCode.Comment, false); 202public static readonly XmlQueryType CommentS = TF.PrimeProduct(Comment, XmlQueryCardinality.ZeroOrMore); 203public static readonly XmlQueryType PI = TF.Type(XmlTypeCode.ProcessingInstruction, false); 204public static readonly XmlQueryType PIS = TF.PrimeProduct(PI, XmlQueryCardinality.ZeroOrMore); 205public static readonly XmlQueryType DocumentOrElement = TF.Choice(Document, Element); 206public static readonly XmlQueryType DocumentOrElementQ = TF.PrimeProduct(DocumentOrElement, XmlQueryCardinality.ZeroOrOne); 207public static readonly XmlQueryType DocumentOrElementS = TF.PrimeProduct(DocumentOrElement, XmlQueryCardinality.ZeroOrMore); 208public static readonly XmlQueryType Content = TF.Choice(Element, Comment, PI, Text); 209public static readonly XmlQueryType ContentS = TF.PrimeProduct(Content, XmlQueryCardinality.ZeroOrMore); 210public static readonly XmlQueryType DocumentOrContent = TF.Choice(Document, Content); 211public static readonly XmlQueryType DocumentOrContentS = TF.PrimeProduct(DocumentOrContent, XmlQueryCardinality.ZeroOrMore); 212public static readonly XmlQueryType AttributeOrContent = TF.Choice(Attribute, Content); 213public static readonly XmlQueryType AttributeOrContentS = TF.PrimeProduct(AttributeOrContent, XmlQueryCardinality.ZeroOrMore); 214public static readonly XmlQueryType AnyAtomicType = TF.Type(XmlTypeCode.AnyAtomicType, false); 215public static readonly XmlQueryType AnyAtomicTypeS = TF.PrimeProduct(AnyAtomicType, XmlQueryCardinality.ZeroOrMore); 216public static readonly XmlQueryType String = TF.Type(XmlTypeCode.String, false); 217public static readonly XmlQueryType StringX = TF.Type(XmlTypeCode.String, true); 218public static readonly XmlQueryType StringXS = TF.PrimeProduct(StringX, XmlQueryCardinality.ZeroOrMore); 219public static readonly XmlQueryType Boolean = TF.Type(XmlTypeCode.Boolean, false); 220public static readonly XmlQueryType BooleanX = TF.Type(XmlTypeCode.Boolean, true); 221public static readonly XmlQueryType Int = TF.Type(XmlTypeCode.Int, false); 222public static readonly XmlQueryType IntX = TF.Type(XmlTypeCode.Int, true); 223public static readonly XmlQueryType IntXS = TF.PrimeProduct(IntX, XmlQueryCardinality.ZeroOrMore); 224public static readonly XmlQueryType IntegerX = TF.Type(XmlTypeCode.Integer, true); 225public static readonly XmlQueryType LongX = TF.Type(XmlTypeCode.Long, true); 226public static readonly XmlQueryType DecimalX = TF.Type(XmlTypeCode.Decimal, true); 227public static readonly XmlQueryType FloatX = TF.Type(XmlTypeCode.Float, true); 228public static readonly XmlQueryType Double = TF.Type(XmlTypeCode.Double, false); 229public static readonly XmlQueryType DoubleX = TF.Type(XmlTypeCode.Double, true); 230public static readonly XmlQueryType DateTimeX = TF.Type(XmlTypeCode.DateTime, true); 231public static readonly XmlQueryType QNameX = TF.Type(XmlTypeCode.QName, true); 235public static readonly XmlQueryType UntypedNode = TF.Choice(UntypedDocument, UntypedElement, UntypedAttribute, Namespace, Text, Comment, PI); 236public static readonly XmlQueryType UntypedNodeS = TF.PrimeProduct(UntypedNode, XmlQueryCardinality.ZeroOrMore); 238public static readonly XmlQueryType NodeNotRtfQ = TF.PrimeProduct(NodeNotRtf, XmlQueryCardinality.ZeroOrOne); 239public static readonly XmlQueryType NodeNotRtfS = TF.PrimeProduct(NodeNotRtf, XmlQueryCardinality.ZeroOrMore); 240public static readonly XmlQueryType NodeSDod = TF.PrimeProduct(NodeNotRtf, XmlQueryCardinality.ZeroOrMore); 816TF.Serialize(writer, _members[i]); 829members.Add(TF.Deserialize(reader)); 1021TF.Serialize(writer, _prime); 1031return TF.NodeSDod; 1033XmlQueryType prime = TF.Deserialize(reader);
System\Xml\Xsl\XPath\XPathBuilder.cs (14)
12using T = System.Xml.Xsl.XmlQueryTypeFactory; 59this.fixupCurrent = _f.Unknown(T.NodeNotRtf); 60this.fixupPosition = _f.Unknown(T.DoubleX); 61this.fixupLast = _f.Unknown(T.DoubleX); 344qilAxis = _f.Filter(itr = _f.For(qilAxis), _f.IsType(itr, T.NodeChoice(required))); 345qilAxis.XmlType = T.PrimeProduct(T.NodeChoice(required), qilAxis.XmlType!.Cardinality); 490f.Conditional(f.IsType(i, T.Double), 491f.Eq(env.GetPosition(), f.TypeAssert(i, T.DoubleX)), 530QilIterator size = f.Let(f.XsltConvert(f.Length(cash), T.DoubleX)); 574case FuncId.Count: return _f.XsltConvert(_f.Length(_f.DocOrderDistinct(args[0])), T.DoubleX); 579case FuncId.Number: return args.Count == 0 ? _f.XsltConvert(_f.XPathNodeValue(GetCurrentNode()), T.DoubleX) : _f.ConvertToNumber(args[0]); 592return _f.XsltConvert(_f.StrLength(args.Count == 0 ? _f.XPathNodeValue(GetCurrentNode()) : args[0]), T.DoubleX); 918unknown = f.XsltConvert(f.PositionOf((QilIterator)_current), T.DoubleX);
System\Xml\Xsl\XPath\XPathQilFactory.cs (34)
8using T = System.Xml.Xsl.XmlQueryTypeFactory; 66Debug.Assert(n != null && n.XmlType!.IsSubtypeOf(T.StringX), "Must be a singleton string"); 72Debug.Assert(n != null && n.XmlType!.IsSubtypeOf(T.StringXS), "Must be a sequence of strings"); 78Debug.Assert(n != null && n.XmlType!.IsSubtypeOf(T.DoubleX), "Must be a singleton Double"); 84Debug.Assert(n != null && n.XmlType!.IsSubtypeOf(T.BooleanX), "Must be a singleton Bool"); 111DocOrderDistinct(TypeAssert(i, T.NodeNotRtfS)), 126XsltMethods.FormatMessage, T.StringX, new QilNode[] { res, args } 134left = TypeAssert(left, T.ItemS); 135right = TypeAssert(right, T.ItemS); 143XsltMethods.EqualityOperator, T.BooleanX, new QilNode[] { Double(opCode), left, right } 150left = TypeAssert(left, T.ItemS); 151right = TypeAssert(right, T.ItemS); 161XsltMethods.RelationalOperator, T.BooleanX, new QilNode[] { Double(opCode), left, right } 200: (QilNode)XsltConvert(n, T.StringX) 211return XsltConvert(n, T.StringX); 241return XsltConvert(n, T.BooleanX); 259return XsltConvert(n, T.DoubleX); 263return XsltConvert(XPathNodeValue(SafeDocOrderDistinct(n)), T.DoubleX); 267return XsltConvert(n, T.DoubleX); 277return XsltConvert(n, T.NodeNotRtf); 287return XsltConvert(n, T.NodeNotRtfS); 320XsltMethods.EnsureNodeSet, T.NodeSDod, new QilNode[] { n } 344XsltMethods.StartsWith, T.BooleanX, new QilNode[] { str1, str2 } 353XsltMethods.Contains, T.BooleanX, new QilNode[] { str1, str2 } 362XsltMethods.SubstringBefore, T.StringX, new QilNode[] { str1, str2 } 371XsltMethods.SubstringAfter, T.StringX, new QilNode[] { str1, str2 } 380XsltMethods.Substring2, T.StringX, new QilNode[] { str, start } 390XsltMethods.Substring3, T.StringX, new QilNode[] { str, start, length } 398XsltMethods.NormalizeSpace, T.StringX, new QilNode[] { str } 408XsltMethods.Translate, T.StringX, new QilNode[] { str1, str2, str3 } 417XsltMethods.Lang, T.BooleanX, new QilNode[] { lang, context } 425XsltMethods.Floor, T.DoubleX, new QilNode[] { value } 433XsltMethods.Ceiling, T.DoubleX, new QilNode[] { value } 441XsltMethods.Round, T.DoubleX, new QilNode[] { value }
System\Xml\Xsl\Xslt\Focus.cs (3)
8using T = System.Xml.Xsl.XmlQueryTypeFactory; 182return _f.XsltConvert(_f.PositionOf(_current!), T.DoubleX); 216_last.Binding = _f.XsltConvert(_f.Length(_cached!), T.DoubleX);
System\Xml\Xsl\Xslt\InvokeGenerator.cs (2)
7using T = System.Xml.Xsl.XmlQueryTypeFactory; 86Debug.Assert(invokeType == T.ItemS, "Actual argument type is not a subtype of formal argument type");
System\Xml\Xsl\Xslt\MatcherBuilder.cs (7)
10using T = System.Xml.Xsl.XmlQueryTypeFactory; 495matcher = MatchPatterns(it, T.PI, _piPatterns, matcher); 496matcher = MatchPatterns(it, T.Comment, _commentPatterns, matcher); 497matcher = MatchPatterns(it, T.Document, _documentPatterns, matcher); 498matcher = MatchPatterns(it, T.Text, _textPatterns, matcher); 499matcher = MatchPatterns(it, T.Attribute, _attributePatterns, matcher); 500matcher = MatchPatterns(it, T.Element, _elementPatterns, matcher);
System\Xml\Xsl\Xslt\QilGenerator.cs (46)
19using T = System.Xml.Xsl.XmlQueryTypeFactory; 114_elementOrDocumentType = T.DocumentOrElement; 115_textOrAttributeType = T.NodeChoice(XmlNodeKindFlags.Text | XmlNodeKindFlags.Attribute); 279initBinding = _f.TypeAssert(initBinding, T.ItemS); 407return T.ItemS; 412case XslFlags.String: return T.StringX; 413case XslFlags.Number: return T.DoubleX; 414case XslFlags.Boolean: return T.BooleanX; 415case XslFlags.Node: return T.NodeNotRtf; 416case XslFlags.Nodeset: return T.NodeNotRtfS; 417case XslFlags.Rtf: return T.Node; 418case XslFlags.Node | XslFlags.Rtf: return T.Node; 419case XslFlags.Node | XslFlags.Nodeset: return T.NodeNotRtfS; 420case XslFlags.Nodeset | XslFlags.Rtf: return T.NodeS; 421case XslFlags.Node | XslFlags.Nodeset | XslFlags.Rtf: return T.NodeS; 422default: return T.ItemS; 436Debug.Assert(var.XmlType!.IsSubtypeOf(T.NamespaceS)); 486args.Add(CreateXslParam(CloneName(_nameCurrent), T.NodeNotRtf)); 490args.Add(CreateXslParam(CloneName(_namePosition), T.DoubleX)); 494args.Add(CreateXslParam(CloneName(_nameLast), T.DoubleX)); 500QilParameter ns = CreateXslParam(CloneName(_nameNamespaces), T.NamespaceS); 599tmpl is AttributeSet ? T.AttributeS : T.NodeNotRtfS 1376_f.Conditional(_f.IsType(it, T.Node), 1377_f.XsltCopyOf(_f.TypeAssert(it, T.Node)), 1378_f.TextCtor(_f.XsltConvert(it, T.StringX)) 1500varValue = _f.TypeAssert(varValue, T.ItemS); 1593return _f.XsltConvert(_f.InvokeLangToLcid(lang, fwdCompat), T.DoubleX); 1718Debug.Assert(result.XmlType == T.StringX); 1865case XmlNodeKindFlags.Document: return _f.IsType(testNode, T.Document); 1866case XmlNodeKindFlags.Element: result = _f.IsType(testNode, T.Element); break; 1867case XmlNodeKindFlags.Attribute: result = _f.IsType(testNode, T.Attribute); break; 1868case XmlNodeKindFlags.Text: return _f.IsType(testNode, T.Text); 1869case XmlNodeKindFlags.Comment: return _f.IsType(testNode, T.Comment); 1870case XmlNodeKindFlags.PI: return _f.And(_f.IsType(testNode, T.PI), _f.Eq(_f.LocalNameOf(testNode), _f.LocalNameOf(current))); 1871case XmlNodeKindFlags.Namespace: return _f.And(_f.IsType(testNode, T.Namespace), _f.Eq(_f.LocalNameOf(testNode), _f.LocalNameOf(current))); 2181QilParameter context = _f.Parameter(T.NodeNotRtf); 2188QilParameter value = _f.Parameter(T.StringX); 2284return _f.TypeAssert(_f.Sequence(), T.ItemS); 2289return _f.TypeAssert(_f.Sequence(), T.NodeNotRtfS); 2670QilParameter formalArg = _f.Parameter(i == 0 ? T.NodeNotRtf : withParam.Value!.XmlType!); 2681T.NodeNotRtfS 2697QilNode filter = _f.Filter(iChild, _f.IsType(iChild, T.Content)); 2698filter.XmlType = T.ContentS; // not attribute 2824Debug.Assert(nsVar.XmlType!.IsSubtypeOf(T.NamespaceS)); 2828nsVar = _f.TypeAssert(nsVar, T.NamespaceS);
System\Xml\Xsl\Xslt\QilGeneratorEnv.cs (15)
13using T = System.Xml.Xsl.XmlQueryTypeFactory; 91var = _f.TypeAssert(var, XmlQueryTypeFactory.NodeSDod); 398_f.Conditional(_f.Not(_f.IsType(k, T.AnyAtomicType)), 399_f.Loop(i = _f.For(_f.TypeAssert(k, T.NodeS)), CompileSingleKey(n, _f.ConvertToString(i), env)), 400CompileSingleKey(n, _f.XsltConvert(k, T.StringX), env) 409Debug.Assert(name.XmlType == T.StringX && key.XmlType == T.StringX); 470QilIterator name = _f.Parameter(T.StringX); 471QilIterator resolvedName = _f.Parameter(T.QNameX); 472QilIterator key = _f.Parameter(T.StringX); 473QilIterator context = _f.Parameter(T.NodeNotRtf); 515result = _f.Conditional(_f.Not(_f.IsType(u, T.AnyAtomicType)), 516_f.DocOrderDistinct(_f.Loop(i = _f.For(_f.TypeAssert(u, T.NodeS)), 519CompileSingleDocument(_f.XsltConvert(u, T.StringX), j) 730return _f.XsltConvert(n, T.NodeSDod);
System\Xml\Xsl\Xslt\XPathPatternBuilder.cs (11)
13using T = System.Xml.Xsl.XmlQueryTypeFactory; 34_fixupNode = _f.Unknown(T.NodeNotRtfS); 53Debug.Assert(filter.Variable.XmlType!.IsSubtypeOf(T.NodeNotRtf)); 55Debug.Assert(filter.Body.XmlType!.IsSubtypeOf(T.Boolean)); 111/*else*/ f.IsType(itr, T.NodeChoice(intersection)) 115filter.XmlType = T.PrimeProduct(T.NodeChoice(intersection), filter.XmlType!.Cardinality); 137result = _f.BaseFactory.Filter(i = _f.For(_fixupNode), _f.IsType(i, T.Document)); 395_fixupCurrent = _f.Unknown(T.NodeNotRtf); 396_fixupPosition = _f.Unknown(T.DoubleX); 397_fixupLast = _f.Unknown(T.DoubleX);
System\Xml\Xsl\Xslt\XslAstAnalyzer.cs (8)
12using TypeFactory = System.Xml.Xsl.XmlQueryTypeFactory; 1143if (xt == TypeFactory.StringX) 1147else if (xt == TypeFactory.DoubleX) 1151else if (xt == TypeFactory.BooleanX) 1155else if (xt == TypeFactory.NodeNotRtf) 1159else if (xt == TypeFactory.NodeSDod) 1163else if (xt == TypeFactory.ItemS) 1167else if (xt == TypeFactory.Empty)
System\Xml\Xsl\Xslt\XsltLoader.cs (1)
18using TypeFactory = System.Xml.Xsl.XmlQueryTypeFactory;
System\Xml\Xsl\Xslt\XsltQilFactory.cs (27)
10using T = System.Xml.Xsl.XmlQueryTypeFactory; 45Debug.Assert(n != null && n.XmlType!.IsSubtypeOf(T.QNameX), "Must be a singleton QName"); 59XsltMethods.IsSameNodeSort, T.BooleanX, new QilNode[] { n1, n2 } 67XsltMethods.SystemProperty, T.Choice(T.DoubleX, T.StringX), new QilNode[] { n } 75XsltMethods.ElementAvailable, T.BooleanX, new QilNode[] { n } 82XsltMethods.CheckScriptNamespace, T.IntX, new QilNode[] { String(nsUri) } 90XsltMethods.FunctionAvailable, T.BooleanX, new QilNode[] { n } 98XsltMethods.BaseUri, T.StringX, new QilNode[] { n } 106XsltMethods.OnCurrentNodeChanged, T.IntX, new QilNode[] { n } 114XsltMethods.LangToLcid, T.IntX, new QilNode[] { n, Boolean(fwdCompat) } 122value.XmlType!.IsSubtypeOf(T.IntXS) || 123value.XmlType.IsSubtypeOf(T.DoubleX)), 133XsltMethods.NumberFormat, T.StringX, 142XsltMethods.RegisterDecimalFormat, T.IntX, 155XsltMethods.RegisterDecimalFormatter, T.DoubleX, 168XsltMethods.FormatNumberStatic, T.StringX, new QilNode[] { value, decimalFormatIndex } 179XsltMethods.FormatNumberDynamic, T.StringX, new QilNode[] { value, formatPicture, decimalFormatName, errorMessageName } 187XsltMethods.OuterXml, T.StringX, new QilNode[] { n } 198XsltMethods.MSFormatDateTime, T.StringX, new QilNode[] { datetime, format, lang, isDate } 209XsltMethods.MSStringCompare, T.DoubleX, new QilNode[] { x, y, lang, options } 217XsltMethods.MSUtc, T.StringX, new QilNode[] { n } 224XsltMethods.MSNumber, T.DoubleX, new QilNode[] { n } 232XsltMethods.MSLocalName, T.StringX, new QilNode[] { n } 241XsltMethods.MSNamespaceUri, T.StringX, new QilNode[] { n, currentNode } 248XsltMethods.EXslObjectType, T.StringX, new QilNode[] { n }