1 type derived from QilLiteral
System.Data.SqlXml (1)
System\Xml\Xsl\QIL\QilName.cs (1)
18internal class QilName : QilLiteral {
7 instantiations of QilLiteral
System.Data.SqlXml (7)
System\Xml\Xsl\QIL\QilFactory.cs (7)
281QilLiteral n = new QilLiteral(QilNodeType.LiteralString, value); 288QilLiteral n = new QilLiteral(QilNodeType.LiteralInt32, value); 295QilLiteral n = new QilLiteral(QilNodeType.LiteralInt64, value); 302QilLiteral n = new QilLiteral(QilNodeType.LiteralDouble, value); 309QilLiteral n = new QilLiteral(QilNodeType.LiteralDecimal, value); 323QilLiteral n = new QilLiteral(QilNodeType.LiteralType, value); 330QilLiteral n = new QilLiteral(QilNodeType.LiteralObject, value);
193 references to QilLiteral
System.Data.SqlXml (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)
965prefix = (string) (QilLiteral) nd.Left; 966ns = (string) (QilLiteral) nd.Right;
System\Xml\Xsl\IlGen\XmlILOptimizerVisitor.cs (72)
988decimal local2 = (decimal)((QilLiteral)local1).Value; 997double local2 = (double)((QilLiteral)local1).Value; 1006int local2 = (int)((QilLiteral)local1).Value; 1015long local2 = (long)((QilLiteral)local1).Value; 1046if (( IsLiteral((local2)) ) && ( CanFoldArithmetic(QilNodeType.Add, (QilLiteral) local1, (QilLiteral) local2) )) { 1049return Replace(XmlILOptimization.EliminateAdd, local0, FoldArithmetic(QilNodeType.Add, (QilLiteral) local1, (QilLiteral) local2) ); 1088if (( IsLiteral((local2)) ) && ( CanFoldArithmetic(QilNodeType.Subtract, (QilLiteral) local1, (QilLiteral) local2) )) { 1091return Replace(XmlILOptimization.EliminateSubtract, local0, FoldArithmetic(QilNodeType.Subtract, (QilLiteral) local1, (QilLiteral) local2) ); 1120if (( IsLiteral((local2)) ) && ( CanFoldArithmetic(QilNodeType.Multiply, (QilLiteral) local1, (QilLiteral) local2) )) { 1123return Replace(XmlILOptimization.EliminateMultiply, local0, FoldArithmetic(QilNodeType.Multiply, (QilLiteral) local1, (QilLiteral) local2) ); 1162if (( IsLiteral((local2)) ) && ( CanFoldArithmetic(QilNodeType.Divide, (QilLiteral) local1, (QilLiteral) local2) )) { 1165return Replace(XmlILOptimization.EliminateDivide, local0, FoldArithmetic(QilNodeType.Divide, (QilLiteral) local1, (QilLiteral) local2) ); 1194if (( IsLiteral((local2)) ) && ( CanFoldArithmetic(QilNodeType.Modulo, (QilLiteral) local1, (QilLiteral) local2) )) { 1197return Replace(XmlILOptimization.EliminateModulo, local0, FoldArithmetic(QilNodeType.Modulo, (QilLiteral) local1, (QilLiteral) local2) ); 1220string local2 = (string)((QilLiteral)local1).Value; 1257string local3 = (string)((QilLiteral)local1).Value; 1266foreach (QilLiteral lit in local2) 1346XmlQueryType local5 = (XmlQueryType)((QilLiteral)local4).Value; 1378int local4 = (int)((QilLiteral)local2).Value; 1391int local4 = (int)((QilLiteral)local2).Value; 1445XmlQueryType local5 = (XmlQueryType)((QilLiteral)local4).Value; 1462if (( IsLiteral((local2)) ) && ( CanFoldArithmetic(QilNodeType.Subtract, (QilLiteral) local2, (QilLiteral) local4) )) { 1465return Replace(XmlILOptimization.NormalizeAddEq, local0, VisitEq(f.Eq(local3, FoldArithmetic(QilNodeType.Subtract, (QilLiteral) local2, (QilLiteral) local4) ))); 1553int local6 = (int)((QilLiteral)local2).Value; 1574int local6 = (int)((QilLiteral)local2).Value; 1590int local4 = (int)((QilLiteral)local2).Value; 1644XmlQueryType local5 = (XmlQueryType)((QilLiteral)local4).Value; 1660int local4 = (int)((QilLiteral)local2).Value; 1673int local4 = (int)((QilLiteral)local2).Value; 1727XmlQueryType local5 = (XmlQueryType)((QilLiteral)local4).Value; 1742int local4 = (int)((QilLiteral)local2).Value; 1796XmlQueryType local5 = (XmlQueryType)((QilLiteral)local4).Value; 1811int local4 = (int)((QilLiteral)local2).Value; 1865XmlQueryType local5 = (XmlQueryType)((QilLiteral)local4).Value; 1880int local4 = (int)((QilLiteral)local2).Value; 2261XmlQueryType local8 = (XmlQueryType)((QilLiteral)local7).Value; 2320int local6 = (int)((QilLiteral)local5).Value; 2337int local6 = (int)((QilLiteral)local5).Value; 2354int local6 = (int)((QilLiteral)local5).Value; 2383XmlQueryType local7 = (XmlQueryType)((QilLiteral)local6).Value; 2416XmlQueryType local6 = (XmlQueryType)((QilLiteral)local5).Value; 2437XmlQueryType local7 = (XmlQueryType)((QilLiteral)local6).Value; 2488XmlQueryType local5 = (XmlQueryType)((QilLiteral)local4).Value; 3394XmlQueryType local3 = (XmlQueryType)((QilLiteral)local2).Value; 3405XmlQueryType local3 = (XmlQueryType)((QilLiteral)local2).Value; 3416XmlQueryType local3 = (XmlQueryType)((QilLiteral)local2).Value; 3442XmlQueryType local3 = (XmlQueryType)((QilLiteral)local2).Value; 3455XmlQueryType local3 = (XmlQueryType)((QilLiteral)local2).Value; 3467XmlQueryType local3 = (XmlQueryType)((QilLiteral)local2).Value; 3479XmlQueryType local3 = (XmlQueryType)((QilLiteral)local2).Value; 3492XmlQueryType local3 = (XmlQueryType)((QilLiteral)local2).Value; 3691XmlQueryType local3 = (XmlQueryType)((QilLiteral)local2).Value; 3703XmlQueryType local3 = (XmlQueryType)((QilLiteral)local2).Value; 4033Debug.Assert(nd is QilLiteral, "All literals except True, False, and QName must use QilLiteral"); 4034return ((QilLiteral) nd).Value; 4195private bool CanFoldArithmetic(QilNodeType opType, QilLiteral left, QilLiteral right) { 4196return (FoldArithmetic(opType, left, right) is QilLiteral); 4204private QilNode FoldArithmetic(QilNodeType opType, QilLiteral left, QilLiteral right) {
System\Xml\Xsl\IlGen\XmlIlVisitor.cs (10)
505protected override QilNode VisitLiteralString(QilLiteral ndStr) { 514protected override QilNode VisitLiteralInt32(QilLiteral ndInt) { 523protected override QilNode VisitLiteralInt64(QilLiteral ndLong) { 532protected override QilNode VisitLiteralDouble(QilLiteral ndDbl) { 541protected override QilNode VisitLiteralDecimal(QilLiteral ndDec) { 1404if (delimiter.NodeType == QilNodeType.LiteralString && ((string) (QilLiteral) delimiter).Length == 0) { 2167this.helper.CallGetCollation(this.helper.StaticData.DeclareCollation((string) (QilLiteral) ndKey.Collation)); 2827string baseUri = (string) (QilLiteral) ndRtf.Right; 3899if ((int) (QilLiteral) ndFirst != 0) return false; 3903if ((int) (QilLiteral) ndFirst != 0) return false;
System\Xml\Xsl\QIL\QilExpression.cs (6)
126get { return (XmlWriterSettings) ((QilLiteral) this.defWSet).Value; } 129((QilLiteral) this.defWSet).Value = value; 137get { return (IList<WhitespaceRule>) ((QilLiteral) this.wsRules).Value; } 138set { ((QilLiteral) this.wsRules).Value = value; } 161get { return (IList<EarlyBoundInfo>) ((QilLiteral) this.earlBnd).Value; } 162set { ((QilLiteral) this.earlBnd).Value = value; }
System\Xml\Xsl\QIL\QilFactory.cs (14)
280public QilLiteral LiteralString(string value) { 281QilLiteral n = new QilLiteral(QilNodeType.LiteralString, value); 287public QilLiteral LiteralInt32(int value) { 288QilLiteral n = new QilLiteral(QilNodeType.LiteralInt32, value); 294public QilLiteral LiteralInt64(long value) { 295QilLiteral n = new QilLiteral(QilNodeType.LiteralInt64, value); 301public QilLiteral LiteralDouble(double value) { 302QilLiteral n = new QilLiteral(QilNodeType.LiteralDouble, value); 308public QilLiteral LiteralDecimal(decimal value) { 309QilLiteral n = new QilLiteral(QilNodeType.LiteralDecimal, value); 322public QilLiteral LiteralType(XmlQueryType value) { 323QilLiteral n = new QilLiteral(QilNodeType.LiteralType, value); 329public QilLiteral LiteralObject(object value) { 330QilLiteral n = new QilLiteral(QilNodeType.LiteralObject, value);
System\Xml\Xsl\QIL\QilInvokeEarlyBound.cs (2)
42get { return (MethodInfo) ((QilLiteral) Center).Value; } 43set { ((QilLiteral) Center).Value = value; }
System\Xml\Xsl\QIL\QilLiteral.cs (6)
43public static implicit operator string(QilLiteral literal) { 47public static implicit operator int(QilLiteral literal) { 51public static implicit operator long(QilLiteral literal) { 55public static implicit operator double(QilLiteral literal) { 59public static implicit operator decimal(QilLiteral literal) { 63public static implicit operator XmlQueryType(QilLiteral literal) {
System\Xml\Xsl\QIL\QilPatternFactory.cs (3)
38public QilLiteral String(string val) { 42public QilLiteral Int32(int val) { 46public QilLiteral Double(double val) {
System\Xml\Xsl\QIL\QilPatternVisitor.cs (7)
140protected override QilNode VisitLiteralString(QilLiteral n) { return NoReplace(n); } 141protected override QilNode VisitLiteralInt32(QilLiteral n) { return NoReplace(n); } 142protected override QilNode VisitLiteralInt64(QilLiteral n) { return NoReplace(n); } 143protected override QilNode VisitLiteralDouble(QilLiteral n) { return NoReplace(n); } 144protected override QilNode VisitLiteralDecimal(QilLiteral n) { return NoReplace(n); } 146protected override QilNode VisitLiteralType(QilLiteral n) { return NoReplace(n); } 147protected 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)
55case QilNodeType.LiteralString: return CheckLiteralString((QilLiteral)n); 56case QilNodeType.LiteralInt32: return CheckLiteralInt32((QilLiteral)n); 57case QilNodeType.LiteralInt64: return CheckLiteralInt64((QilLiteral)n); 58case QilNodeType.LiteralDouble: return CheckLiteralDouble((QilLiteral)n); 59case QilNodeType.LiteralDecimal: return CheckLiteralDecimal((QilLiteral)n); 61case QilNodeType.LiteralType: return CheckLiteralType((QilLiteral)n); 62case QilNodeType.LiteralObject: return CheckLiteralObject((QilLiteral)n); 290public XmlQueryType CheckLiteralString(QilLiteral node) { 295public XmlQueryType CheckLiteralInt32(QilLiteral node) { 300public XmlQueryType CheckLiteralInt64(QilLiteral node) { 305public XmlQueryType CheckLiteralDouble(QilLiteral node) { 310public XmlQueryType CheckLiteralDecimal(QilLiteral node) { 322public XmlQueryType CheckLiteralType(QilLiteral node) { 327public XmlQueryType CheckLiteralObject(QilLiteral node) { 745CheckClassAndNodeType(node.Right, typeof(QilLiteral), QilNodeType.LiteralString); 793CheckClassAndNodeType(node[1], typeof(QilLiteral), QilNodeType.LiteralType); 798CheckClassAndNodeType(node[1], typeof(QilLiteral), QilNodeType.LiteralType); 883CheckClassAndNodeType(node[1], typeof(QilLiteral), QilNodeType.LiteralType); 901Check(node is QilLiteral, node, "Node must be instance of QilLiteral"); 903Type clrType = ((QilLiteral) node).Value.GetType();
System\Xml\Xsl\QIL\QilVisitor.cs (14)
127case QilNodeType.LiteralString: return VisitLiteralString((QilLiteral)n); 128case QilNodeType.LiteralInt32: return VisitLiteralInt32((QilLiteral)n); 129case QilNodeType.LiteralInt64: return VisitLiteralInt64((QilLiteral)n); 130case QilNodeType.LiteralDouble: return VisitLiteralDouble((QilLiteral)n); 131case QilNodeType.LiteralDecimal: return VisitLiteralDecimal((QilLiteral)n); 133case QilNodeType.LiteralType: return VisitLiteralType((QilLiteral)n); 134case QilNodeType.LiteralObject: return VisitLiteralObject((QilLiteral)n); 285protected virtual QilNode VisitLiteralString(QilLiteral n) { return VisitChildren(n); } 286protected virtual QilNode VisitLiteralInt32(QilLiteral n) { return VisitChildren(n); } 287protected virtual QilNode VisitLiteralInt64(QilLiteral n) { return VisitChildren(n); } 288protected virtual QilNode VisitLiteralDouble(QilLiteral n) { return VisitChildren(n); } 289protected virtual QilNode VisitLiteralDecimal(QilLiteral n) { return VisitChildren(n); } 291protected virtual QilNode VisitLiteralType(QilLiteral n) { return VisitChildren(n); } 292protected virtual QilNode VisitLiteralObject(QilLiteral n) { return VisitChildren(n); }
System\Xml\Xsl\QIL\QilXmlWriter.cs (3)
142if (node is QilLiteral) { 144this.writer.WriteValue(Convert.ToString(((QilLiteral) node).Value, CultureInfo.InvariantCulture)); 219protected override QilNode VisitLiteralType(QilLiteral value) {
System\Xml\Xsl\XPath\XPathQilFactory.cs (4)
183? (QilNode) String(XPathConvert.DoubleToString((double)(QilLiteral)n)) 207? Boolean((double)(QilLiteral)n < 0 || 0 < (double)(QilLiteral)n) 212? Boolean(((string)(QilLiteral)n).Length != 0)
System\Xml\Xsl\Xslt\InvokeGenerator.cs (1)
124if (invokeArgs[prevArg] is QilLiteral) {
System\Xml\Xsl\Xslt\MatcherBuilder.cs (2)
192qname = (QilName)((QilLiteral)eq.Right).Value; 376Debug.Assert((int)(QilLiteral)matcher == NoMatch);
System\Xml\Xsl\Xslt\QilGenerator.cs (17)
391((QilLiteral)((QilBinary)nsList[i]).Right).Value != ((QilLiteral)((QilBinary)varList[i]).Right).Value || 392((QilLiteral)((QilBinary)nsList[i]).Left ).Value != ((QilLiteral)((QilBinary)varList[i]).Left ).Value 755string name = (string)(QilLiteral)qilName; 763nsUri = (string)(QilLiteral)qilNs; 803string name = (string)(QilLiteral)qilName; 811nsUri = (string)(QilLiteral)qilNs; 935string name = (string)(QilLiteral)qilName; 1002if (IsDebug || !(val is QilIterator || val is QilLiteral)) { 1309string lang = (string)(QilLiteral)result; 1335return f.Double(XsltLibrary.LangToLcidInternal((string)(QilLiteral)lang, fwdCompat, (IErrorHelper)this)); 1347string dataType = (string)(QilLiteral)result; 1417string value = (string)(QilLiteral)result; 1683letterValue = (string)(QilLiteral)result; 1715string value = (string)(QilLiteral)result; 1740string groupingSize = (string)(QilLiteral)result;
System\Xml\Xsl\Xslt\QilGeneratorEnv.cs (3)
347string keyName = (string)(QilLiteral)name; 492throw new XslLoadException(Res.Xslt_NoDecimalFormat, (string)(QilLiteral)formatName); 535string name = (string)(QilLiteral)qilName;
System\Xml\Xsl\Xslt\QilStrConcatenator.cs (1)
59builder.Append((string)(QilLiteral)value);