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