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