38 references to IsSubtypeOf
System.Private.Xml (38)
System\Xml\Xsl\IlGen\XmlILOptimizerVisitor.cs (7)
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]))
4545
if ((local1).XmlType!.
IsSubtypeOf
(local3))
4580
if ((local1).XmlType!.
IsSubtypeOf
(local3))
4631
if ((local1).XmlType!.
IsSubtypeOf
(local3))
System\Xml\Xsl\IlGen\XmlIlVisitor.cs (1)
3649
Debug.Assert(ndActualArg.XmlType!.
IsSubtypeOf
(xmlTypeFormalArg), "Xml type of actual arg must be a subtype of the Xml type of the formal arg");
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 (9)
282
Check(node.Binding == null || node.Binding.XmlType!.
IsSubtypeOf
(node.XmlType!), node, "Parameter binding's xml type must be a subtype of the parameter's type");
520
Check(node.Right.XmlType!.
IsSubtypeOf
(XmlQueryTypeFactory.StringX) || node.Right.XmlType.
IsSubtypeOf
(XmlQueryTypeFactory.NamespaceS),
659
Check(node.Definition.XmlType!.
IsSubtypeOf
(node.XmlType!), node, "Function definition's xml type must be a subtype of the function's return type");
673
Check(actualArgs[i].XmlType!.
IsSubtypeOf
(formalArgs[i].XmlType!), actualArgs[i], "Invoke argument must be a subtype of the invoked function's argument");
954
Check(actualArgs[i].XmlType!.
IsSubtypeOf
(extFunc.GetXmlArgumentType(i)), actualArgs[i], "InvokeEarlyBound argument must be a subtype of the invoked function's argument type");
1022
Check(node.XmlType!.
IsSubtypeOf
(xmlType), node, $"Node's type {node.XmlType} is not a subtype of {xmlType}");
1046
Check(node.Left.XmlType!.
IsSubtypeOf
(node.Right.XmlType!) || node.Right.XmlType!.
IsSubtypeOf
(node.Left.XmlType), node,
System\Xml\Xsl\QIL\QilValidationVisitor.cs (1)
70
if (!type.
IsSubtypeOf
(parent.XmlType))
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (2)
718
if (!CreateXmlType(seq[i]).
IsSubtypeOf
(typBase))
730
return CreateXmlType(item).
IsSubtypeOf
(GetXmlType(indexType));
System\Xml\Xsl\XmlQueryType.cs (2)
548
else if (this.
IsSubtypeOf
(other) || other.
IsSubtypeOf
(this))
System\Xml\Xsl\XmlQueryTypeFactory.cs (2)
271
if (itemType.
IsSubtypeOf
(accumulator[i]))
277
if (accumulator[i].
IsSubtypeOf
(itemType))
System\Xml\Xsl\XPath\XPathQilFactory.cs (4)
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");
System\Xml\Xsl\Xslt\InvokeGenerator.cs (1)
83
if (!invokeType.
IsSubtypeOf
(formalType))
System\Xml\Xsl\Xslt\QilGenerator.cs (3)
436
Debug.Assert(var.XmlType!.
IsSubtypeOf
(T.NamespaceS));
2589
if (valueType.IsNode && paramType.IsNode && valueType.
IsSubtypeOf
(paramType))
2824
Debug.Assert(nsVar.XmlType!.
IsSubtypeOf
(T.NamespaceS));
System\Xml\Xsl\Xslt\XPathPatternBuilder.cs (2)
53
Debug.Assert(filter.Variable.XmlType!.
IsSubtypeOf
(T.NodeNotRtf));
55
Debug.Assert(filter.Body.XmlType!.
IsSubtypeOf
(T.Boolean));
System\Xml\Xsl\Xslt\XsltQilFactory.cs (3)
45
Debug.Assert(n != null && n.XmlType!.
IsSubtypeOf
(T.QNameX), "Must be a singleton QName");
122
value.XmlType!.
IsSubtypeOf
(T.IntXS) ||
123
value.XmlType.
IsSubtypeOf
(T.DoubleX)),