38 references to IsSubtypeOf
System.Private.Xml (38)
System\Xml\Xsl\IlGen\XmlILOptimizerVisitor.cs (7)
3481if ((!OptimizerPatterns.Read(local2).MatchesPattern(OptimizerPatternName.IsPositional)) && ((local3).XmlType!.IsSubtypeOf(XmlQueryTypeFactory.NodeNotRtfS))) 3603if (((local0).XmlType!.IsSubtypeOf(XmlQueryTypeFactory.NodeS)) && (this[XmlILOptimization.AnnotateIndex1])) 3605if (((local1.Count == 2) && (((QilNode)(local1)[0]).XmlType!.IsSubtypeOf(XmlQueryTypeFactory.Node))) && ((((QilNode)(local1)[1]).XmlType) == (XmlQueryTypeFactory.StringX))) 3674if (((local0).XmlType.IsSubtypeOf(XmlQueryTypeFactory.NodeS)) && (this[XmlILOptimization.AnnotateIndex2])) 4545if ((local1).XmlType!.IsSubtypeOf(local3)) 4580if ((local1).XmlType!.IsSubtypeOf(local3)) 4631if ((local1).XmlType!.IsSubtypeOf(local3))
System\Xml\Xsl\IlGen\XmlIlVisitor.cs (1)
3649Debug.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)
81Debug.Assert(newType.IsSubtypeOf(XmlQueryTypeFactory.AtMost(oldType, oldType.Cardinality)), "Replace shouldn't relax original type");
System\Xml\Xsl\QIL\QilTypeChecker.cs (9)
282Check(node.Binding == null || node.Binding.XmlType!.IsSubtypeOf(node.XmlType!), node, "Parameter binding's xml type must be a subtype of the parameter's type"); 520Check(node.Right.XmlType!.IsSubtypeOf(XmlQueryTypeFactory.StringX) || node.Right.XmlType.IsSubtypeOf(XmlQueryTypeFactory.NamespaceS), 659Check(node.Definition.XmlType!.IsSubtypeOf(node.XmlType!), node, "Function definition's xml type must be a subtype of the function's return type"); 673Check(actualArgs[i].XmlType!.IsSubtypeOf(formalArgs[i].XmlType!), actualArgs[i], "Invoke argument must be a subtype of the invoked function's argument"); 954Check(actualArgs[i].XmlType!.IsSubtypeOf(extFunc.GetXmlArgumentType(i)), actualArgs[i], "InvokeEarlyBound argument must be a subtype of the invoked function's argument type"); 1022Check(node.XmlType!.IsSubtypeOf(xmlType), node, $"Node's type {node.XmlType} is not a subtype of {xmlType}"); 1046Check(node.Left.XmlType!.IsSubtypeOf(node.Right.XmlType!) || node.Right.XmlType!.IsSubtypeOf(node.Left.XmlType), node,
System\Xml\Xsl\QIL\QilValidationVisitor.cs (1)
70if (!type.IsSubtypeOf(parent.XmlType))
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (2)
718if (!CreateXmlType(seq[i]).IsSubtypeOf(typBase)) 730return CreateXmlType(item).IsSubtypeOf(GetXmlType(indexType));
System\Xml\Xsl\XmlQueryType.cs (2)
548else if (this.IsSubtypeOf(other) || other.IsSubtypeOf(this))
System\Xml\Xsl\XmlQueryTypeFactory.cs (2)
271if (itemType.IsSubtypeOf(accumulator[i])) 277if (accumulator[i].IsSubtypeOf(itemType))
System\Xml\Xsl\XPath\XPathQilFactory.cs (4)
66Debug.Assert(n != null && n.XmlType!.IsSubtypeOf(T.StringX), "Must be a singleton string"); 72Debug.Assert(n != null && n.XmlType!.IsSubtypeOf(T.StringXS), "Must be a sequence of strings"); 78Debug.Assert(n != null && n.XmlType!.IsSubtypeOf(T.DoubleX), "Must be a singleton Double"); 84Debug.Assert(n != null && n.XmlType!.IsSubtypeOf(T.BooleanX), "Must be a singleton Bool");
System\Xml\Xsl\Xslt\InvokeGenerator.cs (1)
83if (!invokeType.IsSubtypeOf(formalType))
System\Xml\Xsl\Xslt\QilGenerator.cs (3)
436Debug.Assert(var.XmlType!.IsSubtypeOf(T.NamespaceS)); 2589if (valueType.IsNode && paramType.IsNode && valueType.IsSubtypeOf(paramType)) 2824Debug.Assert(nsVar.XmlType!.IsSubtypeOf(T.NamespaceS));
System\Xml\Xsl\Xslt\XPathPatternBuilder.cs (2)
53Debug.Assert(filter.Variable.XmlType!.IsSubtypeOf(T.NodeNotRtf)); 55Debug.Assert(filter.Body.XmlType!.IsSubtypeOf(T.Boolean));
System\Xml\Xsl\Xslt\XsltQilFactory.cs (3)
45Debug.Assert(n != null && n.XmlType!.IsSubtypeOf(T.QNameX), "Must be a singleton QName"); 122value.XmlType!.IsSubtypeOf(T.IntXS) || 123value.XmlType.IsSubtypeOf(T.DoubleX)),