1 type derived from QilLiteral
System.Private.Xml (1)
System\Xml\Xsl\QIL\QilName.cs (1)
16internal sealed class QilName : QilLiteral
7 instantiations of QilLiteral
System.Private.Xml (7)
System\Xml\Xsl\QIL\QilFactory.cs (7)
270QilLiteral n = new QilLiteral(QilNodeType.LiteralString, value); 278QilLiteral n = new QilLiteral(QilNodeType.LiteralInt32, value); 286QilLiteral n = new QilLiteral(QilNodeType.LiteralInt64, value); 294QilLiteral n = new QilLiteral(QilNodeType.LiteralDouble, value); 302QilLiteral n = new QilLiteral(QilNodeType.LiteralDecimal, value); 318QilLiteral n = new QilLiteral(QilNodeType.LiteralType, value); 326QilLiteral n = new QilLiteral(QilNodeType.LiteralObject, value);
193 references to QilLiteral
System.Private.Xml (193)
System\Xml\Xsl\IlGen\StaticDataManager.cs (4)
120Debug.Assert(ndNmspDecl.Left is QilLiteral && ndNmspDecl.Right is QilLiteral); 122prefixMappings[i] = new StringPair((string)(QilLiteral)ndNmspDecl.Left, (string)(QilLiteral)ndNmspDecl.Right);
System\Xml\Xsl\IlGen\XmlILConstructAnalyzer.cs (2)
1060prefix = (string)(QilLiteral)nd.Left; 1061ns = (string)(QilLiteral)nd.Right;
System\Xml\Xsl\IlGen\XmlILOptimizerVisitor.cs (72)
1269decimal local2 = (decimal)((QilLiteral)local1).Value!; 1281double local2 = (double)((QilLiteral)local1).Value!; 1293int local2 = (int)((QilLiteral)local1).Value!; 1305long local2 = (long)((QilLiteral)local1).Value!; 1346if ((IsLiteral((local2))) && (CanFoldArithmetic(QilNodeType.Add, (QilLiteral)local1, (QilLiteral)local2))) 1351return Replace(XmlILOptimization.EliminateAdd, local0, FoldArithmetic(QilNodeType.Add, (QilLiteral)local1, (QilLiteral)local2)); 1403if ((IsLiteral((local2))) && (CanFoldArithmetic(QilNodeType.Subtract, (QilLiteral)local1, (QilLiteral)local2))) 1408return Replace(XmlILOptimization.EliminateSubtract, local0, FoldArithmetic(QilNodeType.Subtract, (QilLiteral)local1, (QilLiteral)local2)); 1446if ((IsLiteral((local2))) && (CanFoldArithmetic(QilNodeType.Multiply, (QilLiteral)local1, (QilLiteral)local2))) 1451return Replace(XmlILOptimization.EliminateMultiply, local0, FoldArithmetic(QilNodeType.Multiply, (QilLiteral)local1, (QilLiteral)local2)); 1503if ((IsLiteral((local2))) && (CanFoldArithmetic(QilNodeType.Divide, (QilLiteral)local1, (QilLiteral)local2))) 1508return Replace(XmlILOptimization.EliminateDivide, local0, FoldArithmetic(QilNodeType.Divide, (QilLiteral)local1, (QilLiteral)local2)); 1546if ((IsLiteral((local2))) && (CanFoldArithmetic(QilNodeType.Modulo, (QilLiteral)local1, (QilLiteral)local2))) 1551return Replace(XmlILOptimization.EliminateModulo, local0, FoldArithmetic(QilNodeType.Modulo, (QilLiteral)local1, (QilLiteral)local2)); 1580string local2 = (string)((QilLiteral)local1).Value!; 1629string local3 = (string)((QilLiteral)local1).Value!; 1641foreach (QilLiteral lit in local2) 1746XmlQueryType local5 = (XmlQueryType)((QilLiteral)local4).Value!; 1790int local4 = (int)((QilLiteral)local2).Value!; 1808int local4 = (int)((QilLiteral)local2).Value!; 1882XmlQueryType local5 = (XmlQueryType)((QilLiteral)local4).Value!; 1905if ((IsLiteral((local2))) && (CanFoldArithmetic(QilNodeType.Subtract, (QilLiteral)local2, (QilLiteral)local4))) 1910return Replace(XmlILOptimization.NormalizeAddEq, local0, VisitEq(f.Eq(local3, FoldArithmetic(QilNodeType.Subtract, (QilLiteral)local2, (QilLiteral)local4)))); 2029int local6 = (int)((QilLiteral)local2).Value!; 2057int local6 = (int)((QilLiteral)local2).Value!; 2078int local4 = (int)((QilLiteral)local2).Value!; 2152XmlQueryType local5 = (XmlQueryType)((QilLiteral)local4).Value!; 2174int local4 = (int)((QilLiteral)local2).Value!; 2192int local4 = (int)((QilLiteral)local2).Value!; 2266XmlQueryType local5 = (XmlQueryType)((QilLiteral)local4).Value!; 2287int local4 = (int)((QilLiteral)local2).Value!; 2361XmlQueryType local5 = (XmlQueryType)((QilLiteral)local4).Value!; 2382int local4 = (int)((QilLiteral)local2).Value!; 2456XmlQueryType local5 = (XmlQueryType)((QilLiteral)local4).Value!; 2477int local4 = (int)((QilLiteral)local2).Value!; 2999XmlQueryType local8 = (XmlQueryType)((QilLiteral)local7).Value!; 3078int local6 = (int)((QilLiteral)local5).Value!; 3102int local6 = (int)((QilLiteral)local5).Value!; 3126int local6 = (int)((QilLiteral)local5).Value!; 3168XmlQueryType local7 = (XmlQueryType)((QilLiteral)local6).Value!; 3214XmlQueryType local6 = (XmlQueryType)((QilLiteral)local5).Value!; 3244XmlQueryType local7 = (XmlQueryType)((QilLiteral)local6).Value!; 3309XmlQueryType local5 = (XmlQueryType)((QilLiteral)local4).Value!; 4514XmlQueryType local3 = (XmlQueryType)((QilLiteral)local2).Value!; 4529XmlQueryType local3 = (XmlQueryType)((QilLiteral)local2).Value!; 4544XmlQueryType local3 = (XmlQueryType)((QilLiteral)local2).Value!; 4579XmlQueryType local3 = (XmlQueryType)((QilLiteral)local2).Value!; 4597XmlQueryType local3 = (XmlQueryType)((QilLiteral)local2).Value!; 4613XmlQueryType local3 = (XmlQueryType)((QilLiteral)local2).Value!; 4630XmlQueryType local3 = (XmlQueryType)((QilLiteral)local2).Value!; 4648XmlQueryType local3 = (XmlQueryType)((QilLiteral)local2).Value!; 4914XmlQueryType local3 = (XmlQueryType)((QilLiteral)local2).Value!; 4930XmlQueryType local3 = (XmlQueryType)((QilLiteral)local2).Value!; 5297Debug.Assert(nd is QilLiteral, "All literals except True, False, and QName must use QilLiteral"); 5298return ((QilLiteral)nd).Value!; 5477private bool CanFoldArithmetic(QilNodeType opType, QilLiteral left, QilLiteral right) 5479return (FoldArithmetic(opType, left, right) is QilLiteral); 5487private QilNode FoldArithmetic(QilNodeType opType, QilLiteral left, QilLiteral right)
System\Xml\Xsl\IlGen\XmlIlVisitor.cs (10)
542protected override QilNode VisitLiteralString(QilLiteral ndStr) 552protected override QilNode VisitLiteralInt32(QilLiteral ndInt) 562protected override QilNode VisitLiteralInt64(QilLiteral ndLong) 572protected override QilNode VisitLiteralDouble(QilLiteral ndDbl) 582protected override QilNode VisitLiteralDecimal(QilLiteral ndDec) 1513if (delimiter.NodeType == QilNodeType.LiteralString && ((string)(QilLiteral)delimiter).Length == 0) 2337_helper.CallGetCollation(_helper.StaticData.DeclareCollation((string)(QilLiteral)ndKey.Collation)); 3041string baseUri = (string)(QilLiteral)ndRtf.Right; 4206if ((int)(QilLiteral)ndFirst != 0) return false; 4210if ((int)(QilLiteral)ndFirst != 0) return false;
System\Xml\Xsl\QIL\QilExpression.cs (6)
122get { return (XmlWriterSettings)((QilLiteral)_defWSet).Value!; } 126((QilLiteral)_defWSet).Value = value; 135get { return (IList<WhitespaceRule>)((QilLiteral)_wsRules).Value!; } 136set { ((QilLiteral)_wsRules).Value = value; } 162get { return (IList<EarlyBoundInfo>)((QilLiteral)_earlBnd).Value!; } 163set { ((QilLiteral)_earlBnd).Value = value; }
System\Xml\Xsl\QIL\QilFactory.cs (14)
268public QilLiteral LiteralString(string? value) 270QilLiteral n = new QilLiteral(QilNodeType.LiteralString, value); 276public QilLiteral LiteralInt32(int value) 278QilLiteral n = new QilLiteral(QilNodeType.LiteralInt32, value); 284public QilLiteral LiteralInt64(long value) 286QilLiteral n = new QilLiteral(QilNodeType.LiteralInt64, value); 292public QilLiteral LiteralDouble(double value) 294QilLiteral n = new QilLiteral(QilNodeType.LiteralDouble, value); 300public QilLiteral LiteralDecimal(decimal value) 302QilLiteral n = new QilLiteral(QilNodeType.LiteralDecimal, value); 316public QilLiteral LiteralType(XmlQueryType value) 318QilLiteral n = new QilLiteral(QilNodeType.LiteralType, value); 324public QilLiteral LiteralObject(object value) 326QilLiteral n = new QilLiteral(QilNodeType.LiteralObject, value);
System\Xml\Xsl\QIL\QilInvokeEarlyBound.cs (2)
41get { return (MethodInfo)((QilLiteral)Center).Value!; } 42set { ((QilLiteral)Center).Value = value; }
System\Xml\Xsl\QIL\QilLiteral.cs (6)
43public static implicit operator string(QilLiteral literal) 48public static implicit operator int(QilLiteral literal) 53public static implicit operator long(QilLiteral literal) 58public static implicit operator double(QilLiteral literal) 63public static implicit operator decimal(QilLiteral literal) 68public static implicit operator XmlQueryType(QilLiteral literal)
System\Xml\Xsl\QIL\QilPatternFactory.cs (3)
36public QilLiteral String(string? val) 41public QilLiteral Int32(int val) 46public QilLiteral Double(double val)
System\Xml\Xsl\QIL\QilPatternVisitor.cs (7)
125protected override QilNode VisitLiteralString(QilLiteral n) { return NoReplace(n); } 126protected override QilNode VisitLiteralInt32(QilLiteral n) { return NoReplace(n); } 127protected override QilNode VisitLiteralInt64(QilLiteral n) { return NoReplace(n); } 128protected override QilNode VisitLiteralDouble(QilLiteral n) { return NoReplace(n); } 129protected override QilNode VisitLiteralDecimal(QilLiteral n) { return NoReplace(n); } 131protected override QilNode VisitLiteralType(QilLiteral n) { return NoReplace(n); } 132protected override QilNode VisitLiteralObject(QilLiteral n) { return NoReplace(n); }
System\Xml\Xsl\QIL\QilTargetType.cs (2)
43get { return (XmlQueryType)((QilLiteral)Right).Value!; } 44set { ((QilLiteral)Right).Value = value; }
System\Xml\Xsl\QIL\QilTypeChecker.cs (20)
51QilNodeType.LiteralString => CheckLiteralString((QilLiteral)n), 52QilNodeType.LiteralInt32 => CheckLiteralInt32((QilLiteral)n), 53QilNodeType.LiteralInt64 => CheckLiteralInt64((QilLiteral)n), 54QilNodeType.LiteralDouble => CheckLiteralDouble((QilLiteral)n), 55QilNodeType.LiteralDecimal => CheckLiteralDecimal((QilLiteral)n), 57QilNodeType.LiteralType => CheckLiteralType((QilLiteral)n), 58QilNodeType.LiteralObject => CheckLiteralObject((QilLiteral)n), 307public static XmlQueryType CheckLiteralString(QilLiteral node) 313public static XmlQueryType CheckLiteralInt32(QilLiteral node) 319public static XmlQueryType CheckLiteralInt64(QilLiteral node) 325public static XmlQueryType CheckLiteralDouble(QilLiteral node) 331public static XmlQueryType CheckLiteralDecimal(QilLiteral node) 345public static XmlQueryType CheckLiteralType(QilLiteral node) 351public static XmlQueryType CheckLiteralObject(QilLiteral node) 832CheckClassAndNodeType(node.Right, typeof(QilLiteral), QilNodeType.LiteralString); 877CheckClassAndNodeType(node[1], typeof(QilLiteral), QilNodeType.LiteralType); 883CheckClassAndNodeType(node[1], typeof(QilLiteral), QilNodeType.LiteralType); 980CheckClassAndNodeType(node[1], typeof(QilLiteral), QilNodeType.LiteralType); 1000Check(node is QilLiteral, node, "Node must be instance of QilLiteral"); 1002Type clrType = ((QilLiteral)node).Value!.GetType();
System\Xml\Xsl\QIL\QilVisitor.cs (14)
134QilNodeType.LiteralString => VisitLiteralString((QilLiteral)n), 135QilNodeType.LiteralInt32 => VisitLiteralInt32((QilLiteral)n), 136QilNodeType.LiteralInt64 => VisitLiteralInt64((QilLiteral)n), 137QilNodeType.LiteralDouble => VisitLiteralDouble((QilLiteral)n), 138QilNodeType.LiteralDecimal => VisitLiteralDecimal((QilLiteral)n), 140QilNodeType.LiteralType => VisitLiteralType((QilLiteral)n), 141QilNodeType.LiteralObject => VisitLiteralObject((QilLiteral)n), 294protected virtual QilNode VisitLiteralString(QilLiteral n) { return VisitChildren(n); } 295protected virtual QilNode VisitLiteralInt32(QilLiteral n) { return VisitChildren(n); } 296protected virtual QilNode VisitLiteralInt64(QilLiteral n) { return VisitChildren(n); } 297protected virtual QilNode VisitLiteralDouble(QilLiteral n) { return VisitChildren(n); } 298protected virtual QilNode VisitLiteralDecimal(QilLiteral n) { return VisitChildren(n); } 300protected virtual QilNode VisitLiteralType(QilLiteral n) { return VisitChildren(n); } 301protected virtual QilNode VisitLiteralObject(QilLiteral n) { return VisitChildren(n); }
System\Xml\Xsl\QIL\QilXmlWriter.cs (3)
150if (node is QilLiteral) 153this.writer.WriteValue(Convert.ToString(((QilLiteral)node).Value, CultureInfo.InvariantCulture)); 231protected override QilNode VisitLiteralType(QilLiteral value)
System\Xml\Xsl\XPath\XPathQilFactory.cs (4)
199? (QilNode)String(XPathConvert.DoubleToString((double)(QilLiteral)n)) 226? Boolean((double)(QilLiteral)n < 0 || 0 < (double)(QilLiteral)n) 231? Boolean(((string)(QilLiteral)n).Length != 0)
System\Xml\Xsl\Xslt\InvokeGenerator.cs (1)
139if (_invokeArgs[prevArg] is QilLiteral)
System\Xml\Xsl\Xslt\MatcherBuilder.cs (2)
202_qname = (QilName?)((QilLiteral)eq.Right).Value; 423Debug.Assert((int)(QilLiteral)matcher == NoMatch);
System\Xml\Xsl\Xslt\QilGenerator.cs (17)
449((QilLiteral)((QilBinary)nsList[i]).Right).Value != ((QilLiteral)((QilBinary)varList[i]).Right).Value || 450((QilLiteral)((QilBinary)nsList[i]).Left).Value != ((QilLiteral)((QilBinary)varList[i]).Left).Value 878string name = (string)(QilLiteral)qilName; 889nsUri = (string)(QilLiteral)qilNs; 937string name = (string)(QilLiteral)qilName; 948nsUri = (string)(QilLiteral)qilNs; 1107string name = (string)(QilLiteral)qilName; 1182if (IsDebug || !(val is QilIterator || val is QilLiteral)) 1555string lang = (string)(QilLiteral)result; 1589return _f.String(XsltLibrary.LangToNameInternal((string)(QilLiteral)lang, fwdCompat, (IErrorHelper)this)); 1606string dataType = (string)(QilLiteral)result; 1692string value = (string)(QilLiteral)result; 2000letterValue = (string)(QilLiteral)result; 2041string value = (string)(QilLiteral)result; 2074string groupingSize = (string)(QilLiteral)result;
System\Xml\Xsl\Xslt\QilGeneratorEnv.cs (3)
414string keyName = (QilLiteral)name; 593throw new XslLoadException(SR.Xslt_NoDecimalFormat, (string)(QilLiteral)formatName); 645string name = (QilLiteral)qilName;
System\Xml\Xsl\Xslt\QilStrConcatenator.cs (1)
64_builder.Append((string)(QilLiteral)value);