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