3 overrides of TypeCode
System.Private.Xml (3)
System\Xml\Xsl\XmlQueryTypeFactory.cs (3)
579
public override XmlTypeCode
TypeCode
841
public override XmlTypeCode
TypeCode
1045
public override XmlTypeCode
TypeCode
69 references to TypeCode
System.Private.Xml (69)
System\Xml\Xsl\IlGen\GenerateHelper.cs (2)
1413
switch (keyType.
TypeCode
)
1434
Debug.Fail($"Sorting over datatype {keyType.
TypeCode
} is not allowed.");
System\Xml\Xsl\IlGen\XmlIlTypeHelper.cs (2)
30
storageType = s_typeCodeToStorage[(int)qyTyp.
TypeCode
];
38
storageType = s_typeCodeToCachedStorage[(int)qyTyp.
TypeCode
];
System\Xml\Xsl\IlGen\XmlIlVisitor.cs (11)
912
Debug.Assert(ndCond.Left.XmlType!.
TypeCode
== XmlTypeCode.Boolean);
1433
_helper.CallArithmeticOp(QilNodeType.Negate, ndNeg.XmlType!.
TypeCode
);
1484
_helper.CallArithmeticOp(ndOp.NodeType, ndOp.XmlType!.
TypeCode
);
1627
if (ndParsedTagName.Right.XmlType!.
TypeCode
== XmlTypeCode.String)
1737
code = ndComp.Left.XmlType.
TypeCode
;
3670
else if ((ndActualArg.XmlType.IsSingleton && clrTypeFormalArg == itemType) || ndActualArg.XmlType.
TypeCode
== XmlTypeCode.None)
3689
if (xmlTypeFormalArg.
TypeCode
== XmlTypeCode.Item || !clrTypeFormalArg.IsAssignableFrom(clrTypeActualArg))
4105
Debug.Assert(ndName.XmlType!.
TypeCode
== XmlTypeCode.QName, "Element or attribute name must have QName type.");
4176
if ((ndName as QilBinary)!.Right.XmlType!.
TypeCode
== XmlTypeCode.String)
4229
ZeroCompare(relOp, ndSecond.XmlType!.
TypeCode
== XmlTypeCode.Boolean);
4697
nd.XmlType!.
TypeCode
== XmlTypeCode.None,
System\Xml\Xsl\QIL\QilPatternFactory.cs (1)
229
Debug.Assert(arg.XmlType!.
TypeCode
== XmlTypeCode.Boolean && arg.XmlType.IsSingleton,
System\Xml\Xsl\QIL\QilTypeChecker.cs (2)
475
return node.Left.XmlType!.
TypeCode
== XmlTypeCode.None ? node.Right.XmlType! : node.Left.XmlType!;
1066
if (body.XmlType!.
TypeCode
== XmlTypeCode.None)
System\Xml\Xsl\Runtime\XmlQueryContext.cs (3)
286
switch (xmlTypeFormalArg.
TypeCode
)
301
Debug.Fail($"This XmlTypeCode should never be inferred from a Clr type: {xmlTypeFormalArg.
TypeCode
}");
307
if (xmlTypeFormalArg.
TypeCode
== XmlTypeCode.Item || !clrTypeFormalArg.IsAssignableFrom(objActualArgs[i].GetType()))
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (3)
486
switch (xmlType.
TypeCode
)
579
switch (xmlType.
TypeCode
)
633
switch (XsltConvert.InferXsltType(sourceType).
TypeCode
)
System\Xml\Xsl\Runtime\XsltConvert.cs (1)
255
switch (destinationType.
TypeCode
)
System\Xml\Xsl\XmlQueryType.cs (21)
193
return (thisPrime.
TypeCode
== thatPrime.
TypeCode
&&
209
if (thisItem.
TypeCode
== thatItem.
TypeCode
&&
293
get { return (s_typeCodeToFlags[(int)
TypeCode
] & TypeFlags.IsNode) != 0; }
302
get { return (s_typeCodeToFlags[(int)
TypeCode
] & TypeFlags.IsAtomicValue) != 0; }
311
get { return (s_typeCodeToFlags[(int)
TypeCode
] & TypeFlags.IsNumeric) != 0; }
342
hash = (int)
TypeCode
;
410
sb.Append(this[i].
TypeCode
.ToString());
492
if (
TypeCode
!= baseType.
TypeCode
)
499
XmlSchemaType builtInType = XmlSchemaType.GetBuiltInSimpleType(baseType.
TypeCode
);
504
return s_typeCodeDerivation[
TypeCode
, baseType.
TypeCode
];
531
if (this.
TypeCode
== other.
TypeCode
&& (this.NodeKinds & (XmlNodeKindFlags.Document | XmlNodeKindFlags.Element | XmlNodeKindFlags.Attribute)) != 0)
533
if (this.
TypeCode
== XmlTypeCode.Node)
568
s = s_typeNames[(int)
TypeCode
];
570
switch (
TypeCode
)
589
s = $"<:{s_typeNames[(int)
TypeCode
]}";
596
s = s_typeNames[(int)
TypeCode
];
System\Xml\Xsl\XmlQueryTypeFactory.cs (4)
755
_code = t.
TypeCode
;
761
if (_code == t.
TypeCode
)
975
if (prime.
TypeCode
== XmlTypeCode.None)
1047
get { return _prime.
TypeCode
; }
System\Xml\Xsl\XPath\XPathBuilder.cs (9)
228
return CompareNodeSetAndValue(op, /*nodeset:*/left, /*val:*/right, rightType.
TypeCode
);
232
return CompareNodeSetAndValue(op, /*nodeset:*/right, /*val:*/left, leftType.
TypeCode
);
237
leftType.
TypeCode
== XmlTypeCode.Boolean || rightType.
TypeCode
== XmlTypeCode.Boolean ? XmlTypeCode.Boolean :
238
leftType.
TypeCode
== XmlTypeCode.Double || rightType.
TypeCode
== XmlTypeCode.Double ? XmlTypeCode.Double :
261
XmlTypeCode compType = rightType.
TypeCode
== XmlTypeCode.Boolean ? XmlTypeCode.Boolean : XmlTypeCode.Double;
266
XmlTypeCode compType = leftType.
TypeCode
== XmlTypeCode.Boolean ? XmlTypeCode.Boolean : XmlTypeCode.Double;
477
if (predicate.XmlType!.
TypeCode
== XmlTypeCode.Double)
System\Xml\Xsl\XPath\XPathQilFactory.cs (5)
41
Debug.Assert(result == (xt.
TypeCode
== XmlTypeCode.Item || xt.
TypeCode
== XmlTypeCode.AnyAtomicType), "What else can it be?");
189
switch (n.XmlType!.
TypeCode
)
218
switch (n.XmlType!.
TypeCode
)
248
switch (n.XmlType!.
TypeCode
)
System\Xml\Xsl\Xslt\QilGeneratorEnv.cs (3)
244
switch (xmlTypeFormalArg.
TypeCode
)
251
default: Debug.Fail($"This XmlTypeCode should never be inferred from a Clr type: {xmlTypeFormalArg.
TypeCode
}"); break;
741
switch (n.XmlType!.
TypeCode
)
System\Xml\Xsl\Xslt\QilStrConcatenator.cs (1)
61
Debug.Assert(value.XmlType!.
TypeCode
== XmlTypeCode.String);
System\Xml\Xsl\Xslt\XsltQilFactory.cs (1)
23
switch (xt.
TypeCode
)