598 references to XmlQueryTypeFactory
System.Data.SqlXml (598)
System\Xml\Xsl\IlGen\StaticDataManager.cs (1)
192XmlQueryTypeFactory.CheckSerializability(type);
System\Xml\Xsl\IlGen\XmlILOptimizerVisitor.cs (133)
259if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 267if ( (object) ( (local2).XmlType ) == (object) XmlQueryTypeFactory.None ) { 291if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 304if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 373if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 381if ( (object) ( (local2).XmlType ) == (object) XmlQueryTypeFactory.None ) { 427if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 435if ( (object) ( (local2).XmlType ) == (object) XmlQueryTypeFactory.None ) { 480if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 514if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 599if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 665if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 673if ( (object) ( (local2).XmlType ) == (object) XmlQueryTypeFactory.None ) { 747if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 755if ( (object) ( (local2).XmlType ) == (object) XmlQueryTypeFactory.None ) { 820if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 828if ( (object) ( (local2).XmlType ) == (object) XmlQueryTypeFactory.None ) { 892if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 913if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 934if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 955if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 979if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 1029if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 1037if ( (object) ( (local2).XmlType ) == (object) XmlQueryTypeFactory.None ) { 1071if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 1079if ( (object) ( (local2).XmlType ) == (object) XmlQueryTypeFactory.None ) { 1103if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 1111if ( (object) ( (local2).XmlType ) == (object) XmlQueryTypeFactory.None ) { 1145if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 1153if ( (object) ( (local2).XmlType ) == (object) XmlQueryTypeFactory.None ) { 1177if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 1185if ( (object) ( (local2).XmlType ) == (object) XmlQueryTypeFactory.None ) { 1211if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 1234if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 1242if ( (object) ( (local2).XmlType ) == (object) XmlQueryTypeFactory.None ) { 1281if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 1289if ( (object) ( (local2).XmlType ) == (object) XmlQueryTypeFactory.None ) { 1306if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 1314if ( (object) ( (local2).XmlType ) == (object) XmlQueryTypeFactory.None ) { 1405if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 1413if ( (object) ( (local2).XmlType ) == (object) XmlQueryTypeFactory.None ) { 1604if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 1612if ( (object) ( (local2).XmlType ) == (object) XmlQueryTypeFactory.None ) { 1687if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 1695if ( (object) ( (local2).XmlType ) == (object) XmlQueryTypeFactory.None ) { 1756if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 1764if ( (object) ( (local2).XmlType ) == (object) XmlQueryTypeFactory.None ) { 1825if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 1833if ( (object) ( (local2).XmlType ) == (object) XmlQueryTypeFactory.None ) { 1897if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 1905if ( (object) ( (local2).XmlType ) == (object) XmlQueryTypeFactory.None ) { 1927if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 1935if ( (object) ( (local2).XmlType ) == (object) XmlQueryTypeFactory.None ) { 1957if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 1965if ( (object) ( (local2).XmlType ) == (object) XmlQueryTypeFactory.None ) { 1990if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 2215if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 2223if ( (object) ( (local2).XmlType ) == (object) XmlQueryTypeFactory.None ) { 2262if ( (local8) == ( XmlQueryTypeFactory.Attribute ) ) { 2384if ( (local7) == ( XmlQueryTypeFactory.Element ) ) { 2438if ( (local7) == ( XmlQueryTypeFactory.Attribute ) ) { 2459if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 2489if (( ( (local3).XmlType ) == ( XmlQueryTypeFactory.IntX ) ) && ( (local5) == ( XmlQueryTypeFactory.DoubleX ) )) { 2504if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 2618if (( !OptimizerPatterns.Read(local2).MatchesPattern(OptimizerPatternName.IsPositional) ) && ( (local3).XmlType .IsSubtypeOf( XmlQueryTypeFactory.NodeNotRtfS ) )) { 2709if (( (local0).XmlType .IsSubtypeOf( XmlQueryTypeFactory.NodeS ) ) && (this[XmlILOptimization.AnnotateIndex1])) { 2710if ((( local1.Count == 2 ) && ( ( (QilNode) (local1)[0] ).XmlType .IsSubtypeOf( XmlQueryTypeFactory.Node ) )) && ( ( ( (QilNode) (local1)[1] ).XmlType ) == ( XmlQueryTypeFactory.StringX ) )) { 2765if (( (local0).XmlType .IsSubtypeOf( XmlQueryTypeFactory.NodeS ) ) && (this[XmlILOptimization.AnnotateIndex2])) { 2766if ((( local1.Count == 2 ) && ( ( ( (QilNode) (local1)[0] ).XmlType ) == ( XmlQueryTypeFactory.Node ) )) && ( ( ( (QilNode) (local1)[1] ).XmlType ) == ( XmlQueryTypeFactory.StringX ) )) { 2840if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 2859if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 2867if ( (object) ( (local2).XmlType ) == (object) XmlQueryTypeFactory.None ) { 2885if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 2903if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 2921if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 2939if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 2957if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 2975if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 2993if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 3011if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 3029if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 3048if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 3056if ( (object) ( (local2).XmlType ) == (object) XmlQueryTypeFactory.None ) { 3075if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 3083if ( (object) ( (local2).XmlType ) == (object) XmlQueryTypeFactory.None ) { 3100if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 3108if ( (object) ( (local2).XmlType ) == (object) XmlQueryTypeFactory.None ) { 3130if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 3138if ( (object) ( (local2).XmlType ) == (object) XmlQueryTypeFactory.None ) { 3157if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 3177if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 3185if ( (object) ( (local2).XmlType ) == (object) XmlQueryTypeFactory.None ) { 3204if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 3223if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 3242if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 3262if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 3270if ( (object) ( (local2).XmlType ) == (object) XmlQueryTypeFactory.None ) { 3296if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 3329if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 3342if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 3355if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 3368if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 3385if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 3432if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 3508if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 3550if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 3563if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 3581if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 3599if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 3620if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 3634if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 3642if ( (object) ( (local2).XmlType ) == (object) XmlQueryTypeFactory.None ) { 3661if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 3681if ( (object) ( (local1).XmlType ) == (object) XmlQueryTypeFactory.None ) { 3914if (typ == XmlQueryTypeFactory.IntX) return true; 3915if (typ == XmlQueryTypeFactory.IntegerX) return true; 3916if (typ == XmlQueryTypeFactory.DecimalX) return true; 3917if (typ == XmlQueryTypeFactory.FloatX) return true; 3918if (typ == XmlQueryTypeFactory.DoubleX) return true; 3927if (typ == XmlQueryTypeFactory.Element) return true; 3928if (typ == XmlQueryTypeFactory.Text) return true; 3929if (typ == XmlQueryTypeFactory.Comment) return true; 3930if (typ == XmlQueryTypeFactory.PI) return true; 3931if (typ == XmlQueryTypeFactory.Content) return true; 4126if (typTarget == XmlQueryTypeFactory.StringX) 4128else if (typTarget == XmlQueryTypeFactory.IntX) 4130else if (typTarget == XmlQueryTypeFactory.IntegerX) 4132else if (typTarget == XmlQueryTypeFactory.DecimalX) 4134else if (typTarget == XmlQueryTypeFactory.DoubleX) 4136else if (typTarget == XmlQueryTypeFactory.BooleanX)
System\Xml\Xsl\IlGen\XmlIlVisitor.cs (48)
22using TypeFactory = System.Xml.Xsl.XmlQueryTypeFactory; 138Debug.Assert(iter.XmlType == TypeFactory.ItemS, "IlGen currently only supports parameters of type item*."); 154this.helper.LoadInteger(this.helper.StaticData.DeclareXmlType(XmlQueryTypeFactory.ItemS)); 236Debug.Assert(iter.XmlType == TypeFactory.ItemS, "IlGen currently only supports default values in parameters of type item*."); 2958if (typDerived.IsSingleton && (object) typBase == (object) TypeFactory.Node) { 2974if ((object) typBase == (object) TypeFactory.Double) codeBase = XmlTypeCode.Double; 2975else if ((object) typBase == (object) TypeFactory.String) codeBase = XmlTypeCode.String; 2976else if ((object) typBase == (object) TypeFactory.Boolean) codeBase = XmlTypeCode.Boolean; 2977else if ((object) typBase == (object) TypeFactory.Node) codeBase = XmlTypeCode.Node; 3023if ((object) typItem == (object) TypeFactory.Element) kinds |= XmlNodeKindFlags.Element; 3024else if ((object) typItem == (object) TypeFactory.Attribute) kinds |= XmlNodeKindFlags.Attribute; 3025else if ((object) typItem == (object) TypeFactory.Text) kinds |= XmlNodeKindFlags.Text; 3026else if ((object) typItem == (object) TypeFactory.Document) kinds |= XmlNodeKindFlags.Document; 3027else if ((object) typItem == (object) TypeFactory.Comment) kinds |= XmlNodeKindFlags.Comment; 3028else if ((object) typItem == (object) TypeFactory.PI) kinds |= XmlNodeKindFlags.PI; 3029else if ((object) typItem == (object) TypeFactory.Namespace) kinds |= XmlNodeKindFlags.Namespace; 3535if (!GetXsltConvertMethod(typSrc.IsSingleton ? TypeFactory.Item : TypeFactory.ItemS, typDst, out meth)) 3560if ((object) typDst == (object) TypeFactory.BooleanX) { 3561if ((object) typSrc == (object) TypeFactory.Item) meth = XmlILMethods.ItemToBool; 3562else if ((object) typSrc == (object) TypeFactory.ItemS) meth = XmlILMethods.ItemsToBool; 3565else if ((object) typDst == (object) TypeFactory.DateTimeX) { 3566if ((object) typSrc == (object) TypeFactory.StringX) meth = XmlILMethods.StrToDT; 3569else if ((object) typDst == (object) TypeFactory.DecimalX) { 3570if ((object) typSrc == (object) TypeFactory.DoubleX) meth = XmlILMethods.DblToDec; 3573else if ((object) typDst == (object) TypeFactory.DoubleX) { 3574if ((object) typSrc == (object) TypeFactory.DecimalX) meth = XmlILMethods.DecToDbl; 3575else if ((object) typSrc == (object) TypeFactory.IntX) meth = XmlILMethods.IntToDbl; 3576else if ((object) typSrc == (object) TypeFactory.Item) meth = XmlILMethods.ItemToDbl; 3577else if ((object) typSrc == (object) TypeFactory.ItemS) meth = XmlILMethods.ItemsToDbl; 3578else if ((object) typSrc == (object) TypeFactory.LongX) meth = XmlILMethods.LngToDbl; 3579else if ((object) typSrc == (object) TypeFactory.StringX) meth = XmlILMethods.StrToDbl; 3582else if ((object) typDst == (object) TypeFactory.IntX) { 3583if ((object) typSrc == (object) TypeFactory.DoubleX) meth = XmlILMethods.DblToInt; 3586else if ((object) typDst == (object) TypeFactory.LongX) { 3587if ((object) typSrc == (object) TypeFactory.DoubleX) meth = XmlILMethods.DblToLng; 3590else if ((object) typDst == (object) TypeFactory.NodeNotRtf) { 3591if ((object) typSrc == (object) TypeFactory.Item) meth = XmlILMethods.ItemToNode; 3592else if ((object) typSrc == (object) TypeFactory.ItemS) meth = XmlILMethods.ItemsToNode; 3595else if ((object) typDst == (object) TypeFactory.NodeSDod || 3596(object) typDst == (object) TypeFactory.NodeNotRtfS) { 3597if ((object) typSrc == (object) TypeFactory.Item) meth = XmlILMethods.ItemToNodes; 3598else if ((object) typSrc == (object) TypeFactory.ItemS) meth = XmlILMethods.ItemsToNodes; 3601else if ((object) typDst == (object) TypeFactory.StringX) { 3602if ((object) typSrc == (object) TypeFactory.DateTimeX) meth = XmlILMethods.DTToStr; 3603else if ((object) typSrc == (object) TypeFactory.DoubleX) meth = XmlILMethods.DblToStr; 3604else if ((object) typSrc == (object) TypeFactory.Item) meth = XmlILMethods.ItemToStr; 3605else if ((object) typSrc == (object) TypeFactory.ItemS) meth = XmlILMethods.ItemsToStr;
System\Xml\Xsl\QIL\QilList.cs (3)
47XmlQueryType xt = XmlQueryTypeFactory.Empty; 52xt = XmlQueryTypeFactory.Sequence(xt, this.members[i].XmlType); 59xt = XmlQueryTypeFactory.Choice(xt, this.members[i].XmlType);
System\Xml\Xsl\QIL\QilReplaceVisitor.cs (1)
79Debug.Assert(newType.IsSubtypeOf(XmlQueryTypeFactory.AtMost(oldType, oldType.Cardinality)), "Replace shouldn't relax original type");
System\Xml\Xsl\QIL\QilTypeChecker.cs (141)
176return XmlQueryTypeFactory.ItemS; 234CheckXmlType(node.Name, XmlQueryTypeFactory.StringX); 235CheckXmlType(node.BaseUri, XmlQueryTypeFactory.StringX); 236return XmlQueryTypeFactory.NodeNotRtfQ; 244CheckXmlType(node.Child, XmlQueryTypeFactory.StringX); 245return XmlQueryTypeFactory.None; 249CheckXmlType(node.Child, XmlQueryTypeFactory.StringX); 250return XmlQueryTypeFactory.Empty; 273return XmlQueryTypeFactory.IntX; 283return XmlQueryTypeFactory.BooleanX; 287return XmlQueryTypeFactory.BooleanX; 292return XmlQueryTypeFactory.StringX; 297return XmlQueryTypeFactory.IntX; 302return XmlQueryTypeFactory.IntegerX; 307return XmlQueryTypeFactory.DoubleX; 312return XmlQueryTypeFactory.DecimalX; 319return XmlQueryTypeFactory.QNameX; 329return XmlQueryTypeFactory.ItemS; 339CheckXmlType(node.Left, XmlQueryTypeFactory.BooleanX); 340CheckXmlType(node.Right, XmlQueryTypeFactory.BooleanX); 341return XmlQueryTypeFactory.BooleanX; 349CheckXmlType(node.Child, XmlQueryTypeFactory.BooleanX); 350return XmlQueryTypeFactory.BooleanX; 360CheckXmlType(node.Left, XmlQueryTypeFactory.BooleanX); 361return XmlQueryTypeFactory.Choice(node.Center.XmlType, node.Right.XmlType); 365CheckXmlType(node.Expression, XmlQueryTypeFactory.IntX); 378return XmlQueryTypeFactory.IntX; 386CheckXmlType(node.Left, XmlQueryTypeFactory.NodeNotRtfS); 387CheckXmlType(node.Right, XmlQueryTypeFactory.NodeNotRtfS); 388return DistinctType(XmlQueryTypeFactory.Sequence(node.Left.XmlType, node.Right.XmlType)); 396CheckXmlType(node.Left, XmlQueryTypeFactory.NodeNotRtfS); 397CheckXmlType(node.Right, XmlQueryTypeFactory.NodeNotRtfS); 398return XmlQueryTypeFactory.AtMost(node.Left.XmlType, node.Left.XmlType.Cardinality); 404return XmlQueryTypeFactory.PrimeProduct(xmlType, xmlType.MaybeEmpty ? XmlQueryCardinality.ZeroOrOne : XmlQueryCardinality.One); 460CheckXmlType(node.Child, XmlQueryTypeFactory.StringX); 461return XmlQueryTypeFactory.IntX; 465CheckXmlType(node.Delimiter, XmlQueryTypeFactory.StringX); 466CheckXmlType(node.Values, XmlQueryTypeFactory.StringXS); 467return XmlQueryTypeFactory.StringX; 471CheckXmlType(node.Left, XmlQueryTypeFactory.StringX); 472Check(node.Right.XmlType.IsSubtypeOf(XmlQueryTypeFactory.StringX) || node.Right.XmlType.IsSubtypeOf(XmlQueryTypeFactory.NamespaceS), 474return XmlQueryTypeFactory.QNameX; 487return XmlQueryTypeFactory.BooleanX; 517CheckXmlType(node.Left, XmlQueryTypeFactory.NodeNotRtf); 518CheckXmlType(node.Right, XmlQueryTypeFactory.NodeNotRtf); 519return XmlQueryTypeFactory.BooleanX; 544return XmlQueryTypeFactory.PrimeProduct(bodyType, variableCard * bodyType.Cardinality); 550CheckXmlType(node.Body, XmlQueryTypeFactory.BooleanX); 557return XmlQueryTypeFactory.AtMost(node.Variable.Binding.XmlType, node.Variable.Binding.XmlType.Cardinality); 573return XmlQueryTypeFactory.PrimeProduct(varType, varType.Cardinality); 578CheckXmlType(node.Collation, XmlQueryTypeFactory.StringX); 583CheckXmlType(node.Child, XmlQueryTypeFactory.NodeNotRtfS); 622CheckXmlType(node.Child, XmlQueryTypeFactory.NodeNotRtf); 623return XmlQueryTypeFactory.AttributeOrContentS; 627CheckXmlType(node.Left, XmlQueryTypeFactory.NodeNotRtf); 628CheckXmlType(node.Right, XmlQueryTypeFactory.QNameX); 629return XmlQueryTypeFactory.AttributeQ; 633CheckXmlType(node.Child, XmlQueryTypeFactory.NodeNotRtf); 634return XmlQueryTypeFactory.DocumentOrElementQ; 638CheckXmlType(node.Child, XmlQueryTypeFactory.NodeNotRtf); 639return XmlQueryTypeFactory.NodeNotRtf; 643return XmlQueryTypeFactory.NodeNotRtf; 647CheckXmlType(node.Child, XmlQueryTypeFactory.NodeNotRtf); 648return XmlQueryTypeFactory.ContentS; 652CheckXmlType(node.Child, XmlQueryTypeFactory.NodeNotRtf); 653return XmlQueryTypeFactory.Choice(node.Child.XmlType, XmlQueryTypeFactory.ContentS); 657CheckXmlType(node.Child, XmlQueryTypeFactory.NodeNotRtf); 658return XmlQueryTypeFactory.DocumentOrElementS; 662CheckXmlType(node.Child, XmlQueryTypeFactory.NodeNotRtf); 663return XmlQueryTypeFactory.Choice(node.Child.XmlType, XmlQueryTypeFactory.DocumentOrElementS); 667CheckXmlType(node.Child, XmlQueryTypeFactory.NodeNotRtf); 668return XmlQueryTypeFactory.DocumentOrContentS; 672CheckXmlType(node.Child, XmlQueryTypeFactory.NodeNotRtf); 673return XmlQueryTypeFactory.ContentS; 677CheckXmlType(node.Child, XmlQueryTypeFactory.NodeNotRtf); 678return XmlQueryTypeFactory.ContentS; 682CheckXmlType(node.Left, XmlQueryTypeFactory.NodeNotRtf); 683CheckXmlType(node.Right, XmlQueryTypeFactory.NodeNotRtf); 684return XmlQueryTypeFactory.Choice(node.Left.XmlType, XmlQueryTypeFactory.ContentS, node.Right.XmlType); 688CheckXmlType(node.Left, XmlQueryTypeFactory.NodeNotRtf); 689CheckXmlType(node.Right, XmlQueryTypeFactory.StringX); 690return XmlQueryTypeFactory.ElementS; 700CheckXmlType(node.Left, XmlQueryTypeFactory.QNameX); 701CheckXmlType(node.Right, XmlQueryTypeFactory.NodeNotRtfS); 702return XmlQueryTypeFactory.UntypedElement; 706CheckXmlType(node.Left, XmlQueryTypeFactory.QNameX); 707CheckXmlType(node.Right, XmlQueryTypeFactory.NodeNotRtfS); 708return XmlQueryTypeFactory.UntypedAttribute; 712CheckXmlType(node.Child, XmlQueryTypeFactory.NodeNotRtfS); 713return XmlQueryTypeFactory.Comment; 717CheckXmlType(node.Left, XmlQueryTypeFactory.StringX); 718CheckXmlType(node.Right, XmlQueryTypeFactory.NodeNotRtfS); 719return XmlQueryTypeFactory.PI; 723CheckXmlType(node.Child, XmlQueryTypeFactory.StringX); 724return XmlQueryTypeFactory.Text; 728CheckXmlType(node.Child, XmlQueryTypeFactory.StringX); 729return XmlQueryTypeFactory.Text; 733CheckXmlType(node.Child, XmlQueryTypeFactory.NodeNotRtfS); 734return XmlQueryTypeFactory.UntypedDocument; 738CheckXmlType(node.Left, XmlQueryTypeFactory.StringX); 739CheckXmlType(node.Right, XmlQueryTypeFactory.StringX); 740return XmlQueryTypeFactory.Namespace; 744CheckXmlType(node.Left, XmlQueryTypeFactory.NodeNotRtfS); 746return XmlQueryTypeFactory.Node; 756CheckXmlType(node.Child, XmlQueryTypeFactory.Node); 757return XmlQueryTypeFactory.QNameX; 761CheckXmlType(node.Child, XmlQueryTypeFactory.Node); 762return XmlQueryTypeFactory.StringX; 766CheckXmlType(node.Child, XmlQueryTypeFactory.Node); 767return XmlQueryTypeFactory.StringX; 771CheckXmlType(node.Child, XmlQueryTypeFactory.Node); 772return XmlQueryTypeFactory.StringX; 782CheckXmlType(node.Child, XmlQueryTypeFactory.NodeNotRtf); 799return XmlQueryTypeFactory.BooleanX; 803return XmlQueryTypeFactory.BooleanX; 813CheckXmlType(node.Child, XmlQueryTypeFactory.NodeS); 814return XmlQueryTypeFactory.StringX; 818CheckXmlType(node.Child, XmlQueryTypeFactory.NodeNotRtf); 819return XmlQueryTypeFactory.ContentS; 823CheckXmlType(node.Child, XmlQueryTypeFactory.NodeNotRtf); 824return XmlQueryTypeFactory.ContentS; 828CheckXmlType(node.Child, XmlQueryTypeFactory.NodeNotRtf); 829return XmlQueryTypeFactory.NamespaceS; 839CheckXmlType(node.Child, XmlQueryTypeFactory.NodeNotRtfS); 840return XmlQueryTypeFactory.StringX; 846return XmlQueryTypeFactory.ItemS; 868CheckXmlType(node.Left, XmlQueryTypeFactory.NodeNotRtf); 869CheckXmlType(node.Right, XmlQueryTypeFactory.NodeS); 870return XmlQueryTypeFactory.Choice(node.Left.XmlType, node.Right.XmlType); 874CheckXmlType(node.Child, XmlQueryTypeFactory.Node); 877return XmlQueryTypeFactory.NodeNotRtfS; 946return XmlQueryTypeFactory.PrimeProduct(type, XmlQueryCardinality.OneOrMore); 949return XmlQueryTypeFactory.PrimeProduct(type, XmlQueryCardinality.ZeroOrMore); 959return XmlQueryTypeFactory.None; 963return XmlQueryTypeFactory.Empty; 968return XmlQueryTypeFactory.AtMost(((QilTargetType)body).TargetType, variable.Binding.XmlType.Cardinality); 984return XmlQueryTypeFactory.AtMost(variable.Binding.XmlType, XmlQueryCardinality.ZeroOrOne);
System\Xml\Xsl\QIL\QilXmlReader.cs (3)
431types[i] = XmlQueryTypeFactory.Type((XmlTypeCode)Enum.Parse(typeof(XmlTypeCode), codes[i]), strict); 433return XmlQueryTypeFactory.Product(XmlQueryTypeFactory.Choice(types), qc);
System\Xml\Xsl\Runtime\XmlExtensionFunction.cs (6)
233if ((object) this.argXmlTypes[i] == (object) XmlQueryTypeFactory.NodeNotRtf) 234this.argXmlTypes[i] = XmlQueryTypeFactory.Node; 235else if ((object) this.argXmlTypes[i] == (object) XmlQueryTypeFactory.NodeSDod) 236this.argXmlTypes[i] = XmlQueryTypeFactory.NodeS; 239if ((object) this.argXmlTypes[i] == (object) XmlQueryTypeFactory.NodeSDod) 240this.argXmlTypes[i] = XmlQueryTypeFactory.NodeNotRtfS;
System\Xml\Xsl\Runtime\XmlQueryContext.cs (1)
292return (IList<XPathItem>) this.runtime.ChangeTypeXsltResult(XmlQueryTypeFactory.ItemS, objRet);
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (11)
483Debug.Assert(xmlType != XmlQueryTypeFactory.Node && xmlType != XmlQueryTypeFactory.NodeS, 619value = ChangeTypeXsltResult(XmlQueryTypeFactory.NodeS, value); 625value = ChangeTypeXsltResult(XmlQueryTypeFactory.NodeS, value); 746return XmlQueryTypeFactory.Node; 754return XmlQueryTypeFactory.Type(nav.NodeType, XmlQualifiedNameTest.New(nav.LocalName, nav.NamespaceURI), XmlSchemaComplexType.UntypedAnyType, false); 756return XmlQueryTypeFactory.Type(nav.NodeType, XmlQualifiedNameTest.New(nav.LocalName, nav.NamespaceURI), nav.XmlType, nav.SchemaInfo.SchemaElement.IsNillable); 760return XmlQueryTypeFactory.Type(nav.NodeType, XmlQualifiedNameTest.New(nav.LocalName, nav.NamespaceURI), DatatypeImplementation.UntypedAtomicType, false); 762return XmlQueryTypeFactory.Type(nav.NodeType, XmlQualifiedNameTest.New(nav.LocalName, nav.NamespaceURI), nav.XmlType, false); 765return XmlQueryTypeFactory.Type(nav.NodeType, XmlQualifiedNameTest.Wildcard, XmlSchemaComplexType.AnyType, false); 769return XmlQueryTypeFactory.Type((XmlSchemaSimpleType)item.XmlType, true);
System\Xml\Xsl\Runtime\XmlQueryStaticData.cs (2)
134this.types[idx] = XmlQueryTypeFactory.Deserialize(dataReader); 238XmlQueryTypeFactory.Serialize(dataWriter, type);
System\Xml\Xsl\Runtime\XsltConvert.cs (21)
353if (clrType == BooleanType) return XmlQueryTypeFactory.BooleanX; 354if (clrType == ByteType) return XmlQueryTypeFactory.DoubleX; 355if (clrType == DecimalType) return XmlQueryTypeFactory.DoubleX; 356if (clrType == DateTimeType) return XmlQueryTypeFactory.StringX; 357if (clrType == DoubleType) return XmlQueryTypeFactory.DoubleX; 358if (clrType == Int16Type) return XmlQueryTypeFactory.DoubleX; 359if (clrType == Int32Type) return XmlQueryTypeFactory.DoubleX; 360if (clrType == Int64Type) return XmlQueryTypeFactory.DoubleX; 361if (clrType == IXPathNavigableType) return XmlQueryTypeFactory.NodeNotRtf; 362if (clrType == SByteType) return XmlQueryTypeFactory.DoubleX; 363if (clrType == SingleType) return XmlQueryTypeFactory.DoubleX; 364if (clrType == StringType) return XmlQueryTypeFactory.StringX; 365if (clrType == UInt16Type) return XmlQueryTypeFactory.DoubleX; 366if (clrType == UInt32Type) return XmlQueryTypeFactory.DoubleX; 367if (clrType == UInt64Type) return XmlQueryTypeFactory.DoubleX; 368if (clrType == XPathNavigatorArrayType) return XmlQueryTypeFactory.NodeSDod; 369if (clrType == XPathNavigatorType) return XmlQueryTypeFactory.NodeNotRtf; 370if (clrType == XPathNodeIteratorType) return XmlQueryTypeFactory.NodeSDod; 371if (clrType.IsEnum) return XmlQueryTypeFactory.DoubleX; 372if (clrType == VoidType) return XmlQueryTypeFactory.Empty; 374return XmlQueryTypeFactory.ItemS;
System\Xml\Xsl\XmlQueryTypeFactory.cs (57)
17using TF = XmlQueryTypeFactory; 189public static readonly XmlQueryType Item = TF.Type(XmlTypeCode.Item, false); 190public static readonly XmlQueryType ItemS = TF.PrimeProduct(Item, XmlQueryCardinality.ZeroOrMore); 191public static readonly XmlQueryType Node = TF.Type(XmlTypeCode.Node, false); 192public static readonly XmlQueryType NodeS = TF.PrimeProduct(Node, XmlQueryCardinality.ZeroOrMore); 193public static readonly XmlQueryType Element = TF.Type(XmlTypeCode.Element, false); 194public static readonly XmlQueryType ElementS = TF.PrimeProduct(Element, XmlQueryCardinality.ZeroOrMore); 195public static readonly XmlQueryType Document = TF.Type(XmlTypeCode.Document, false); 196public static readonly XmlQueryType DocumentS = TF.PrimeProduct(Document, XmlQueryCardinality.ZeroOrMore); 197public static readonly XmlQueryType Attribute = TF.Type(XmlTypeCode.Attribute, false); 198public static readonly XmlQueryType AttributeQ = TF.PrimeProduct(Attribute, XmlQueryCardinality.ZeroOrOne); 199public static readonly XmlQueryType AttributeS = TF.PrimeProduct(Attribute, XmlQueryCardinality.ZeroOrMore); 200public static readonly XmlQueryType Namespace = TF.Type(XmlTypeCode.Namespace, false); 201public static readonly XmlQueryType NamespaceS = TF.PrimeProduct(Namespace, XmlQueryCardinality.ZeroOrMore); 202public static readonly XmlQueryType Text = TF.Type(XmlTypeCode.Text, false); 203public static readonly XmlQueryType TextS = TF.PrimeProduct(Text, XmlQueryCardinality.ZeroOrMore); 204public static readonly XmlQueryType Comment = TF.Type(XmlTypeCode.Comment, false); 205public static readonly XmlQueryType CommentS = TF.PrimeProduct(Comment, XmlQueryCardinality.ZeroOrMore); 206public static readonly XmlQueryType PI = TF.Type(XmlTypeCode.ProcessingInstruction, false); 207public static readonly XmlQueryType PIS = TF.PrimeProduct(PI, XmlQueryCardinality.ZeroOrMore); 208public static readonly XmlQueryType DocumentOrElement = TF.Choice(Document, Element); 209public static readonly XmlQueryType DocumentOrElementQ = TF.PrimeProduct(DocumentOrElement, XmlQueryCardinality.ZeroOrOne); 210public static readonly XmlQueryType DocumentOrElementS = TF.PrimeProduct(DocumentOrElement, XmlQueryCardinality.ZeroOrMore); 211public static readonly XmlQueryType Content = TF.Choice(Element, Comment, PI, Text); 212public static readonly XmlQueryType ContentS = TF.PrimeProduct(Content, XmlQueryCardinality.ZeroOrMore); 213public static readonly XmlQueryType DocumentOrContent = TF.Choice(Document, Content); 214public static readonly XmlQueryType DocumentOrContentS = TF.PrimeProduct(DocumentOrContent, XmlQueryCardinality.ZeroOrMore); 215public static readonly XmlQueryType AttributeOrContent = TF.Choice(Attribute, Content); 216public static readonly XmlQueryType AttributeOrContentS = TF.PrimeProduct(AttributeOrContent, XmlQueryCardinality.ZeroOrMore); 217public static readonly XmlQueryType AnyAtomicType = TF.Type(XmlTypeCode.AnyAtomicType, false); 218public static readonly XmlQueryType AnyAtomicTypeS = TF.PrimeProduct(AnyAtomicType, XmlQueryCardinality.ZeroOrMore); 219public static readonly XmlQueryType String = TF.Type(XmlTypeCode.String, false); 220public static readonly XmlQueryType StringX = TF.Type(XmlTypeCode.String, true); 221public static readonly XmlQueryType StringXS = TF.PrimeProduct(StringX, XmlQueryCardinality.ZeroOrMore); 222public static readonly XmlQueryType Boolean = TF.Type(XmlTypeCode.Boolean, false); 223public static readonly XmlQueryType BooleanX = TF.Type(XmlTypeCode.Boolean, true); 224public static readonly XmlQueryType Int = TF.Type(XmlTypeCode.Int, false); 225public static readonly XmlQueryType IntX = TF.Type(XmlTypeCode.Int, true); 226public static readonly XmlQueryType IntXS = TF.PrimeProduct(IntX, XmlQueryCardinality.ZeroOrMore); 227public static readonly XmlQueryType IntegerX = TF.Type(XmlTypeCode.Integer, true); 228public static readonly XmlQueryType LongX = TF.Type(XmlTypeCode.Long, true); 229public static readonly XmlQueryType DecimalX = TF.Type(XmlTypeCode.Decimal, true); 230public static readonly XmlQueryType FloatX = TF.Type(XmlTypeCode.Float, true); 231public static readonly XmlQueryType Double = TF.Type(XmlTypeCode.Double, false); 232public static readonly XmlQueryType DoubleX = TF.Type(XmlTypeCode.Double, true); 233public static readonly XmlQueryType DateTimeX = TF.Type(XmlTypeCode.DateTime, true); 234public static readonly XmlQueryType QNameX = TF.Type(XmlTypeCode.QName, true); 238public static readonly XmlQueryType UntypedNode = TF.Choice(UntypedDocument, UntypedElement, UntypedAttribute, Namespace, Text, Comment, PI); 239public static readonly XmlQueryType UntypedNodeS = TF.PrimeProduct(UntypedNode, XmlQueryCardinality.ZeroOrMore); 241public static readonly XmlQueryType NodeNotRtfQ = TF.PrimeProduct(NodeNotRtf, XmlQueryCardinality.ZeroOrOne); 242public static readonly XmlQueryType NodeNotRtfS = TF.PrimeProduct(NodeNotRtf, XmlQueryCardinality.ZeroOrMore); 243public static readonly XmlQueryType NodeSDod = TF.PrimeProduct(NodeNotRtf, XmlQueryCardinality.ZeroOrMore); 779TF.Serialize(writer, this.members[i]); 790members.Add(TF.Deserialize(reader)); 968TF.Serialize(writer, this.prime); 977return TF.NodeSDod; 979XmlQueryType prime = TF.Deserialize(reader);
System\Xml\Xsl\XPath\XPathBuilder.cs (14)
20using T = XmlQueryTypeFactory; 58this.fixupCurrent = f.Unknown(T.NodeNotRtf); 59this.fixupPosition = f.Unknown(T.DoubleX); 60this.fixupLast = f.Unknown(T.DoubleX); 286qilAxis = f.Filter(itr = f.For(qilAxis), f.IsType(itr, T.NodeChoice(required))); 287qilAxis.XmlType = T.PrimeProduct(T.NodeChoice(required), qilAxis.XmlType.Cardinality); 418f.Conditional(f.IsType(i, T.Double), 419f.Eq(env.GetPosition(), f.TypeAssert(i, T.DoubleX)), 456QilIterator size = f.Let(f.XsltConvert(f.Length(cash), T.DoubleX)); 492case FuncId.Count : return f.XsltConvert(f.Length(f.DocOrderDistinct(args[0])), T.DoubleX); 497case FuncId.Number : return args.Count == 0 ? f.XsltConvert(f.XPathNodeValue(GetCurrentNode()), T.DoubleX) : f.ConvertToNumber(args[0]); 510return f.XsltConvert(f.StrLength(args.Count == 0 ? f.XPathNodeValue(GetCurrentNode()) : args[0]), T.DoubleX); 798unknown = f.XsltConvert(f.PositionOf((QilIterator)this.current), T.DoubleX);
System\Xml\Xsl\XPath\XPathQilFactory.cs (34)
15using T = XmlQueryTypeFactory; 67Debug.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"); 77Debug.Assert(n != null && n.XmlType.IsSubtypeOf(T.DoubleX), "Must be a singleton Double"); 82Debug.Assert(n != null && n.XmlType.IsSubtypeOf(T.BooleanX), "Must be a singleton Bool"); 103DocOrderDistinct(TypeAssert(i, T.NodeNotRtfS)), 117XsltMethods.FormatMessage, T.StringX, new QilNode[] { res, args } 125left = TypeAssert(left, T.ItemS); 126right = TypeAssert(right, T.ItemS); 133XsltMethods.EqualityOperator, T.BooleanX, new QilNode[] { Double(opCode), left, right } 140left = TypeAssert(left, T.ItemS); 141right = TypeAssert(right, T.ItemS); 150XsltMethods.RelationalOperator, T.BooleanX, new QilNode[] { Double(opCode), left, right } 184: (QilNode) XsltConvert(n, T.StringX) 194return XsltConvert(n, T.StringX); 221return XsltConvert(n, T.BooleanX); 237return XsltConvert(n, T.DoubleX); 240return XsltConvert(XPathNodeValue(SafeDocOrderDistinct(n)), T.DoubleX); 244return XsltConvert(n, T.DoubleX); 252return XsltConvert(n, T.NodeNotRtf); 260return XsltConvert(n, T.NodeNotRtfS); 287XsltMethods.EnsureNodeSet, T.NodeSDod, new QilNode[] { n } 308XsltMethods.StartsWith, T.BooleanX, new QilNode[] { str1, str2 } 316XsltMethods.Contains, T.BooleanX, new QilNode[] { str1, str2 } 324XsltMethods.SubstringBefore, T.StringX, new QilNode[] { str1, str2 } 332XsltMethods.SubstringAfter, T.StringX, new QilNode[] { str1, str2 } 340XsltMethods.Substring2, T.StringX, new QilNode[] { str, start } 349XsltMethods.Substring3, T.StringX, new QilNode[] { str, start, length } 356XsltMethods.NormalizeSpace, T.StringX, new QilNode[] { str } 365XsltMethods.Translate, T.StringX, new QilNode[] { str1, str2, str3 } 373XsltMethods.Lang, T.BooleanX, new QilNode[] { lang, context } 380XsltMethods.Floor, T.DoubleX, new QilNode[] { value } 387XsltMethods.Ceiling, T.DoubleX, new QilNode[] { value } 394XsltMethods.Round, T.DoubleX, new QilNode[] { value }
System\Xml\Xsl\Xslt\Compiler.cs (1)
19using TypeFactory = XmlQueryTypeFactory;
System\Xml\Xsl\Xslt\Focus.cs (3)
14using T = XmlQueryTypeFactory; 157return f.XsltConvert(f.PositionOf(current), T.DoubleX); 189last.Binding = f.XsltConvert(f.Length(cached), T.DoubleX);
System\Xml\Xsl\Xslt\InvokeGenerator.cs (2)
13using T = XmlQueryTypeFactory; 78Debug.Assert(invokeType == T.ItemS, "Actual argument type is not a subtype of formal argument type");
System\Xml\Xsl\Xslt\MatcherBuilder.cs (7)
14using T = XmlQueryTypeFactory; 438matcher = MatchPatterns(it, T.PI , piPatterns , matcher); 439matcher = MatchPatterns(it, T.Comment , commentPatterns , matcher); 440matcher = MatchPatterns(it, T.Document , documentPatterns , matcher); 441matcher = MatchPatterns(it, T.Text , textPatterns , matcher); 442matcher = MatchPatterns(it, T.Attribute, attributePatterns, matcher); 443matcher = MatchPatterns(it, T.Element , elementPatterns , matcher);
System\Xml\Xsl\Xslt\QilGenerator.cs (46)
23using T = XmlQueryTypeFactory; 109elementOrDocumentType = T.DocumentOrElement; 110textOrAttributeType = T.NodeChoice(XmlNodeKindFlags.Text | XmlNodeKindFlags.Attribute); 253initBinding = f.TypeAssert(initBinding, T.ItemS); 354return T.ItemS; 358case XslFlags.String : return T.StringX;; 359case XslFlags.Number : return T.DoubleX; 360case XslFlags.Boolean : return T.BooleanX; 361case XslFlags.Node : return T.NodeNotRtf; 362case XslFlags.Nodeset : return T.NodeNotRtfS; 363case XslFlags.Rtf : return T.Node; 364case XslFlags.Node | XslFlags.Rtf : return T.Node; 365case XslFlags.Node | XslFlags.Nodeset : return T.NodeNotRtfS; 366case XslFlags.Nodeset | XslFlags.Rtf : return T.NodeS; 367case XslFlags.Node | XslFlags.Nodeset | XslFlags.Rtf : return T.NodeS; 368default : return T.ItemS; 380Debug.Assert(var.XmlType.IsSubtypeOf(T.NamespaceS)); 423args.Add(CreateXslParam(CloneName(nameCurrent), T.NodeNotRtf)); 426args.Add(CreateXslParam(CloneName(namePosition), T.DoubleX)); 429args.Add(CreateXslParam(CloneName(nameLast), T.DoubleX)); 434QilParameter ns = CreateXslParam(CloneName(nameNamespaces), T.NamespaceS); 517tmpl is AttributeSet ? T.AttributeS : T.NodeNotRtfS 1161f.Conditional(f.IsType(it, T.Node), 1162f.XsltCopyOf(f.TypeAssert(it, T.Node)), 1163f.TextCtor(f.XsltConvert(it, T.StringX)) 1264varValue = f.TypeAssert(varValue, T.ItemS); 1337return f.XsltConvert(f.InvokeLangToLcid(lang, fwdCompat), T.DoubleX); 1437Debug.Assert(result.XmlType == T.StringX); 1563case XmlNodeKindFlags.Document : return f.IsType(testNode, T.Document); 1564case XmlNodeKindFlags.Element : result = f.IsType(testNode, T.Element); break; 1565case XmlNodeKindFlags.Attribute : result = f.IsType(testNode, T.Attribute); break; 1566case XmlNodeKindFlags.Text : return f.IsType(testNode, T.Text); 1567case XmlNodeKindFlags.Comment : return f.IsType(testNode, T.Comment); 1568case XmlNodeKindFlags.PI : return f.And(f.IsType(testNode, T.PI) , f.Eq(f.LocalNameOf(testNode), f.LocalNameOf(current))); 1569case XmlNodeKindFlags.Namespace : return f.And(f.IsType(testNode, T.Namespace), f.Eq(f.LocalNameOf(testNode), f.LocalNameOf(current))); 1828QilParameter context = f.Parameter(T.NodeNotRtf); 1835QilParameter value = f.Parameter(T.StringX); 1918return f.TypeAssert(f.Sequence(), T.ItemS); 1922return f.TypeAssert(f.Sequence(), T.NodeNotRtfS); 2226QilParameter formalArg = f.Parameter(i == 0 ? T.NodeNotRtf : withParam.Value.XmlType); 2237T.NodeNotRtfS 2252QilNode filter = f.Filter(iChild, f.IsType(iChild, T.Content)); 2253filter.XmlType = T.ContentS; // not attribute 2357Debug.Assert(nsVar.XmlType.IsSubtypeOf(T.NamespaceS)); 2360nsVar = f.TypeAssert(nsVar, T.NamespaceS);
System\Xml\Xsl\Xslt\QilGeneratorEnv.cs (15)
19using T = XmlQueryTypeFactory; 86var = f.TypeAssert(var, XmlQueryTypeFactory.NodeSDod); 333f.Conditional(f.Not(f.IsType(k, T.AnyAtomicType)), 334f.Loop(i = f.For(f.TypeAssert(k, T.NodeS)), CompileSingleKey(n, f.ConvertToString(i), env)), 335CompileSingleKey(n, f.XsltConvert(k, T.StringX), env) 343Debug.Assert(name.XmlType == T.StringX && key.XmlType == T.StringX); 397QilIterator name = f.Parameter(T.StringX); 398QilIterator resolvedName = f.Parameter(T.QNameX); 399QilIterator key = f.Parameter(T.StringX); 400QilIterator context = f.Parameter(T.NodeNotRtf); 433result = f.Conditional(f.Not(f.IsType(u, T.AnyAtomicType)), 434f.DocOrderDistinct(f.Loop(i = f.For(f.TypeAssert(u, T.NodeS)), 437CompileSingleDocument(f.XsltConvert(u, T.StringX), j) 601return f.XsltConvert(n, T.NodeSDod);
System\Xml\Xsl\Xslt\XPathPatternBuilder.cs (11)
18using T = XmlQueryTypeFactory; 35this.fixupNode = f.Unknown(T.NodeNotRtfS); 51Debug.Assert(filter.Variable.XmlType.IsSubtypeOf(T.NodeNotRtf)); 53Debug.Assert(filter.Body.XmlType.IsSubtypeOf(T.Boolean)); 104/*else*/ f.IsType(itr, T.NodeChoice(intersection)) 108filter.XmlType = T.PrimeProduct(T.NodeChoice(intersection), filter.XmlType.Cardinality); 128result = f.BaseFactory.Filter(i = f.For(fixupNode), f.IsType(i, T.Document)); 351this.fixupCurrent = f.Unknown(T.NodeNotRtf); 352this.fixupPosition = f.Unknown(T.DoubleX); 353this.fixupLast = f.Unknown(T.DoubleX);
System\Xml\Xsl\Xslt\XslAstAnalyzer.cs (8)
17using TypeFactory = XmlQueryTypeFactory; 1015if (xt == TypeFactory.StringX) { 1017} else if (xt == TypeFactory.DoubleX) { 1019} else if (xt == TypeFactory.BooleanX) { 1021} else if (xt == TypeFactory.NodeNotRtf) { 1023} else if (xt == TypeFactory.NodeSDod) { 1025} else if (xt == TypeFactory.ItemS) { 1027} else if (xt == TypeFactory.Empty) {
System\Xml\Xsl\Xslt\XsltLoader.cs (1)
25using TypeFactory = XmlQueryTypeFactory;
System\Xml\Xsl\Xslt\XsltQilFactory.cs (28)
17using T = XmlQueryTypeFactory; 47Debug.Assert(n != null && n.XmlType.IsSubtypeOf(T.QNameX), "Must be a singleton QName"); 56return IsType(n, T.QNameX); 63XsltMethods.IsSameNodeSort, T.BooleanX, new QilNode[] { n1, n2 } 70XsltMethods.SystemProperty, T.Choice(T.DoubleX, T.StringX), new QilNode[] { n } 77XsltMethods.ElementAvailable, T.BooleanX, new QilNode[] { n } 83XsltMethods.CheckScriptNamespace, T.IntX, new QilNode[] { String(nsUri) } 90XsltMethods.FunctionAvailable, T.BooleanX, new QilNode[] { n } 97XsltMethods.BaseUri, T.StringX, new QilNode[] { n } 104XsltMethods.OnCurrentNodeChanged, T.IntX, new QilNode[] { n } 111XsltMethods.LangToLcid, T.IntX, new QilNode[] { n, Boolean(fwdCompat) } 119value.XmlType.IsSubtypeOf(T.IntXS) || 120value.XmlType.IsSubtypeOf(T.DoubleX)), 130XsltMethods.NumberFormat, T.StringX, 138XsltMethods.RegisterDecimalFormat, T.IntX, 150XsltMethods.RegisterDecimalFormatter, T.DoubleX, 162XsltMethods.FormatNumberStatic, T.StringX, new QilNode[] { value, decimalFormatIndex } 172XsltMethods.FormatNumberDynamic, T.StringX, new QilNode[] { value, formatPicture, decimalFormatName, errorMessageName } 179XsltMethods.OuterXml, T.StringX, new QilNode[] { n } 189XsltMethods.MSFormatDateTime, T.StringX, new QilNode[] { datetime, format, lang, isDate } 199XsltMethods.MSStringCompare, T.DoubleX, new QilNode[] { x, y, lang, options } 206XsltMethods.MSUtc, T.StringX, new QilNode[] { n } 212XsltMethods.MSNumber, T.DoubleX, new QilNode[] { n } 219XsltMethods.MSLocalName, T.StringX, new QilNode[] { n } 227XsltMethods.MSNamespaceUri, T.StringX, new QilNode[] { n, currentNode } 233XsltMethods.EXslObjectType, T.StringX, new QilNode[] { n }