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