2 writes to NodeType
System.Data.SqlXml (2)
System\Xml\Xsl\IlGen\XmlILOptimizerVisitor.cs (1)
322
local0.
NodeType
= QilNodeType.For;
System\Xml\Xsl\QIL\QilFunction.cs (1)
98
set { this.sideEffects.
NodeType
= value ? QilNodeType.True : QilNodeType.False; }
412 references to NodeType
System.Data.SqlXml (412)
System\Xml\Xsl\IlGen\TailCallAnalyzer.cs (2)
39
switch (nd.
NodeType
) {
51
if (ndLoop.Variable.
NodeType
== QilNodeType.Let || !ndLoop.Variable.Binding.XmlType.MaybeMany)
System\Xml\Xsl\IlGen\XmlILConstructAnalyzer.cs (21)
93
constrInfo = new XmlILConstructInfo(nd.
NodeType
);
408
if (ndConstr.
NodeType
== QilNodeType.Function) {
429
if (ndConstr.
NodeType
!= QilNodeType.Choice)
433
if (ndConstr.
NodeType
!= QilNodeType.RtfCtor)
438
this.withinElem = (ndConstr.
NodeType
== QilNodeType.ElementCtor);
440
switch (ndConstr.
NodeType
) {
454
default: Debug.Assert(false, ndConstr.
NodeType
+ " is not handled by XmlILStateAnalyzer."); break;
460
if (ndConstr.
NodeType
== QilNodeType.Choice)
464
if (ndConstr.
NodeType
== QilNodeType.Function)
479
switch (nd.
NodeType
) {
501
switch (nd.
NodeType
) {
515
switch (ndChild.
NodeType
) {
733
Debug.Assert(ndElem.
NodeType
== QilNodeType.ElementCtor);
766
if (ndCopy.
NodeType
== QilNodeType.AttributeCtor) {
780
if (ndAttr.Left.
NodeType
== QilNodeType.LiteralQName) {
881
switch (nd.
NodeType
) {
949
switch (nd.
NodeType
) {
956
nodeType = (nd.
NodeType
== QilNodeType.ElementCtor) ? XPathNodeType.Element : XPathNodeType.Attribute;
964
Debug.Assert(nd.
NodeType
== QilNodeType.NamespaceDecl);
972
if (nd.
NodeType
== QilNodeType.AttributeCtor && ns.Length == 0 ||
997
Debug.Assert(nd.
NodeType
!= QilNodeType.NamespaceDecl || !this.nsmgr.HasNamespace(prefix) || this.nsmgr.LookupNamespace(prefix) == ns,
System\Xml\Xsl\IlGen\XmlILOptimizerVisitor.cs (231)
90
switch (nd.
NodeType
) {
124
if (newNode.
NodeType
== QilNodeType.Let || newNode.
NodeType
== QilNodeType.For) {
160
switch (node.
NodeType
) {
201
if (node.
NodeType
!= QilNodeType.Let || !this.qil.GlobalVariableList.Contains(node))
337
if (!( (local1).
NodeType
== QilNodeType.For )) {
345
if (local1.
NodeType
== QilNodeType.For) {
389
if (local1.
NodeType
== QilNodeType.True) {
397
if (local1.
NodeType
== QilNodeType.False) {
405
if (local2.
NodeType
== QilNodeType.True) {
413
if (local2.
NodeType
== QilNodeType.False) {
443
if (local1.
NodeType
== QilNodeType.True) {
451
if (local1.
NodeType
== QilNodeType.False) {
459
if (local2.
NodeType
== QilNodeType.True) {
467
if (local2.
NodeType
== QilNodeType.False) {
488
if (local1.
NodeType
== QilNodeType.True) {
496
if (local1.
NodeType
== QilNodeType.False) {
522
if (local1.
NodeType
== QilNodeType.True) {
530
if (local1.
NodeType
== QilNodeType.False) {
538
if (local2.
NodeType
== QilNodeType.True) {
539
if (local3.
NodeType
== QilNodeType.False) {
548
if (local2.
NodeType
== QilNodeType.False) {
549
if (local3.
NodeType
== QilNodeType.True) {
558
if (local1.
NodeType
== QilNodeType.Not) {
567
if (local2.
NodeType
== QilNodeType.TextCtor) {
569
if (local3.
NodeType
== QilNodeType.TextCtor) {
607
if (local1.
NodeType
== QilNodeType.Sequence) {
647
if (nd.
NodeType
== QilNodeType.Sequence)
689
if (local1.
NodeType
== QilNodeType.Sequence) {
699
if (local2.
NodeType
== QilNodeType.Sequence) {
709
if (local1.
NodeType
== QilNodeType.XmlContext) {
710
if (local2.
NodeType
== QilNodeType.XmlContext) {
771
if (local1.
NodeType
== QilNodeType.Sequence) {
781
if (local2.
NodeType
== QilNodeType.Sequence) {
791
if (local1.
NodeType
== QilNodeType.XmlContext) {
792
if (local2.
NodeType
== QilNodeType.XmlContext) {
836
if (local1.
NodeType
== QilNodeType.Sequence) {
846
if (local2.
NodeType
== QilNodeType.Sequence) {
864
if (local1.
NodeType
== QilNodeType.XmlContext) {
865
if (local2.
NodeType
== QilNodeType.XmlContext) {
987
if (local1.
NodeType
== QilNodeType.LiteralDecimal) {
996
if (local1.
NodeType
== QilNodeType.LiteralDouble) {
1005
if (local1.
NodeType
== QilNodeType.LiteralInt32) {
1014
if (local1.
NodeType
== QilNodeType.LiteralInt64) {
1219
if (local1.
NodeType
== QilNodeType.LiteralString) {
1256
if (local1.
NodeType
== QilNodeType.LiteralString) {
1258
if (local2.
NodeType
== QilNodeType.Sequence) {
1342
if (local1.
NodeType
== QilNodeType.XsltConvert) {
1345
if (local4.
NodeType
== QilNodeType.LiteralType) {
1359
if (local1.
NodeType
== QilNodeType.XsltGenerateId) {
1362
if (local2.
NodeType
== QilNodeType.XsltGenerateId) {
1375
if (local1.
NodeType
== QilNodeType.Length) {
1377
if (local2.
NodeType
== QilNodeType.LiteralInt32) {
1389
if (local1.
NodeType
== QilNodeType.Length) {
1390
if (local2.
NodeType
== QilNodeType.LiteralInt32) {
1441
if (local1.
NodeType
== QilNodeType.XsltConvert) {
1444
if (local4.
NodeType
== QilNodeType.LiteralType) {
1458
if (local1.
NodeType
== QilNodeType.Add) {
1472
if (local1.
NodeType
== QilNodeType.XsltGenerateId) {
1475
if (local2.
NodeType
== QilNodeType.XsltGenerateId) {
1488
if (local1.
NodeType
== QilNodeType.XsltGenerateId) {
1491
if (local2.
NodeType
== QilNodeType.StrConcat) {
1493
if (local5.
NodeType
== QilNodeType.Loop) {
1496
if (local6.
NodeType
== QilNodeType.For) {
1499
if (local8.
NodeType
== QilNodeType.XsltGenerateId) {
1517
if (local1.
NodeType
== QilNodeType.StrConcat) {
1519
if (local4.
NodeType
== QilNodeType.Loop) {
1522
if (local5.
NodeType
== QilNodeType.For) {
1525
if (local7.
NodeType
== QilNodeType.XsltGenerateId) {
1528
if (local2.
NodeType
== QilNodeType.XsltGenerateId) {
1546
if (local1.
NodeType
== QilNodeType.Length) {
1548
if (local3.
NodeType
== QilNodeType.Union) {
1552
if (local2.
NodeType
== QilNodeType.LiteralInt32) {
1567
if (local1.
NodeType
== QilNodeType.Length) {
1569
if (local3.
NodeType
== QilNodeType.Union) {
1573
if (local2.
NodeType
== QilNodeType.LiteralInt32) {
1588
if (local1.
NodeType
== QilNodeType.Length) {
1589
if (local2.
NodeType
== QilNodeType.LiteralInt32) {
1640
if (local1.
NodeType
== QilNodeType.XsltConvert) {
1643
if (local4.
NodeType
== QilNodeType.LiteralType) {
1657
if (local1.
NodeType
== QilNodeType.Length) {
1659
if (local2.
NodeType
== QilNodeType.LiteralInt32) {
1671
if (local1.
NodeType
== QilNodeType.Length) {
1672
if (local2.
NodeType
== QilNodeType.LiteralInt32) {
1723
if (local1.
NodeType
== QilNodeType.XsltConvert) {
1726
if (local4.
NodeType
== QilNodeType.LiteralType) {
1740
if (local1.
NodeType
== QilNodeType.Length) {
1741
if (local2.
NodeType
== QilNodeType.LiteralInt32) {
1792
if (local1.
NodeType
== QilNodeType.XsltConvert) {
1795
if (local4.
NodeType
== QilNodeType.LiteralType) {
1809
if (local1.
NodeType
== QilNodeType.Length) {
1810
if (local2.
NodeType
== QilNodeType.LiteralInt32) {
1861
if (local1.
NodeType
== QilNodeType.XsltConvert) {
1864
if (local4.
NodeType
== QilNodeType.LiteralType) {
1878
if (local1.
NodeType
== QilNodeType.Length) {
1879
if (local2.
NodeType
== QilNodeType.LiteralInt32) {
1998
if (local1.
NodeType
== QilNodeType.For) {
2000
if (local3.
NodeType
== QilNodeType.For) {
2011
if (local1.
NodeType
== QilNodeType.For) {
2013
if (local3.
NodeType
== QilNodeType.Sequence) {
2025
if (local2.
NodeType
== QilNodeType.Sequence) {
2044
if (local1.
NodeType
== QilNodeType.For) {
2047
if (local2.
NodeType
== QilNodeType.TextCtor) {
2058
if ((( (local1).
NodeType
== QilNodeType.Let ) || ( ( ( (QilNode) (local1)[0] ).XmlType ).IsSingleton )) && ( !OptimizerPatterns.Read(local1).MatchesPattern(OptimizerPatternName.MaybeSideEffects) )) {
2068
if (local2.
NodeType
== QilNodeType.Conditional) {
2072
if (local4.
NodeType
== QilNodeType.Sequence) {
2085
if (local2.
NodeType
== QilNodeType.Conditional) {
2090
if (local5.
NodeType
== QilNodeType.Sequence) {
2102
if (local1.
NodeType
== QilNodeType.For) {
2103
if (local2.
NodeType
== QilNodeType.Conditional) {
2107
if (local5.
NodeType
== QilNodeType.Sequence) {
2122
if (local1.
NodeType
== QilNodeType.For) {
2123
if (local2.
NodeType
== QilNodeType.Conditional) {
2128
if (local6.
NodeType
== QilNodeType.Sequence) {
2142
if (local2.
NodeType
== QilNodeType.Loop) {
2145
if (local3.
NodeType
== QilNodeType.For) {
2158
if (local1.
NodeType
== QilNodeType.For) {
2175
if (local1.
NodeType
== QilNodeType.For) {
2187
if (local1.
NodeType
== QilNodeType.For) {
2197
if (local1.
NodeType
== QilNodeType.For) {
2232
if (local2.
NodeType
== QilNodeType.False) {
2241
if (local2.
NodeType
== QilNodeType.True) {
2249
if (local1.
NodeType
== QilNodeType.For) {
2251
if (local3.
NodeType
== QilNodeType.Content) {
2253
if (local2.
NodeType
== QilNodeType.And) {
2256
if (local5.
NodeType
== QilNodeType.IsType) {
2260
if (local7.
NodeType
== QilNodeType.LiteralType) {
2263
if (local9.
NodeType
== QilNodeType.Eq) {
2266
if (local10.
NodeType
== QilNodeType.NameOf) {
2269
if (local12.
NodeType
== QilNodeType.LiteralQName) {
2287
if (local1.
NodeType
== QilNodeType.For) {
2289
if (local3.
NodeType
== QilNodeType.Loop) {
2303
if (( !OptimizerPatterns.Read(local1).MatchesPattern(OptimizerPatternName.MaybeSideEffects) ) && (!( ( (QilNode) (local1)[0] ).
NodeType
== QilNodeType.OptimizeBarrier ))) {
2313
if (local2.
NodeType
== QilNodeType.Eq) {
2316
if (local3.
NodeType
== QilNodeType.PositionOf) {
2319
if (local5.
NodeType
== QilNodeType.LiteralInt32) {
2330
if (local2.
NodeType
== QilNodeType.Le) {
2333
if (local3.
NodeType
== QilNodeType.PositionOf) {
2336
if (local5.
NodeType
== QilNodeType.LiteralInt32) {
2347
if (local2.
NodeType
== QilNodeType.Lt) {
2350
if (local3.
NodeType
== QilNodeType.PositionOf) {
2353
if (local5.
NodeType
== QilNodeType.LiteralInt32) {
2364
if (local1.
NodeType
== QilNodeType.For) {
2372
if (local1.
NodeType
== QilNodeType.For) {
2375
if (local2.
NodeType
== QilNodeType.And) {
2378
if (local4.
NodeType
== QilNodeType.IsType) {
2382
if (local6.
NodeType
== QilNodeType.LiteralType) {
2385
if (local8.
NodeType
== QilNodeType.Eq) {
2388
if (local9.
NodeType
== QilNodeType.NameOf) {
2391
if (local11.
NodeType
== QilNodeType.LiteralQName) {
2408
if (local1.
NodeType
== QilNodeType.For) {
2411
if (local2.
NodeType
== QilNodeType.IsType) {
2415
if (local5.
NodeType
== QilNodeType.LiteralType) {
2429
if (local1.
NodeType
== QilNodeType.For) {
2431
if (local3.
NodeType
== QilNodeType.Content) {
2432
if (local2.
NodeType
== QilNodeType.IsType) {
2436
if (local6.
NodeType
== QilNodeType.LiteralType) {
2467
if (local1.
NodeType
== QilNodeType.For) {
2484
if (local1.
NodeType
== QilNodeType.XsltConvert) {
2487
if (local4.
NodeType
== QilNodeType.LiteralType) {
2520
if (local1.
NodeType
== QilNodeType.Loop) {
2523
if (local2.
NodeType
== QilNodeType.For) {
2525
if (local3.
NodeType
== QilNodeType.Loop) {
2528
if (local5.
NodeType
== QilNodeType.DescendantOrSelf) {
2530
if (local7.
NodeType
== QilNodeType.Filter) {
2547
if (local1.
NodeType
== QilNodeType.Loop) {
2550
if (local2.
NodeType
== QilNodeType.For) {
2552
if (local3.
NodeType
== QilNodeType.DescendantOrSelf) {
2554
if (local5.
NodeType
== QilNodeType.Filter) {
2570
if (local1.
NodeType
== QilNodeType.Filter) {
2573
if (local2.
NodeType
== QilNodeType.For) {
2588
if (local1.
NodeType
== QilNodeType.Loop) {
2591
if (local3.
NodeType
== QilNodeType.Filter) {
2594
if (local4.
NodeType
== QilNodeType.For) {
2612
if (local1.
NodeType
== QilNodeType.Loop) {
2615
if (local2.
NodeType
== QilNodeType.For) {
2632
if (local1.
NodeType
== QilNodeType.Loop) {
2644
if (local1.
NodeType
== QilNodeType.Loop) {
2647
if (local3.
NodeType
== QilNodeType.DocOrderDistinct) {
2671
if (local1.
NodeType
== QilNodeType.Loop) {
2674
if (local2.
NodeType
== QilNodeType.For) {
2687
if (local1.
NodeType
== QilNodeType.Loop) {
2689
if (local3.
NodeType
== QilNodeType.Invoke) {
2711
if (local2.
NodeType
== QilNodeType.Filter) {
2714
if (local5.
NodeType
== QilNodeType.For) {
2716
if (local7.
NodeType
== QilNodeType.Not) {
2718
if (local8.
NodeType
== QilNodeType.IsEmpty) {
2720
if (local9.
NodeType
== QilNodeType.Filter) {
2723
if (local10.
NodeType
== QilNodeType.For) {
2725
if (local12.
NodeType
== QilNodeType.Eq) {
2729
if (local14.
NodeType
== QilNodeType.Parameter) {
2767
if (local2.
NodeType
== QilNodeType.Filter) {
2770
if (local5.
NodeType
== QilNodeType.For) {
2772
if (local7.
NodeType
== QilNodeType.Eq) {
2775
if (local9.
NodeType
== QilNodeType.Parameter) {
2806
if (local1.
NodeType
== QilNodeType.Function) {
2808
if (local4.
NodeType
== QilNodeType.Sequence) {
2824
if (local1.
NodeType
== QilNodeType.Function) {
3310
if (local1.
NodeType
== QilNodeType.TextCtor) {
3393
if (local2.
NodeType
== QilNodeType.LiteralType) {
3404
if (local2.
NodeType
== QilNodeType.LiteralType) {
3415
if (local2.
NodeType
== QilNodeType.LiteralType) {
3441
if (local2.
NodeType
== QilNodeType.LiteralType) {
3454
if (local2.
NodeType
== QilNodeType.LiteralType) {
3466
if (local2.
NodeType
== QilNodeType.LiteralType) {
3478
if (local2.
NodeType
== QilNodeType.LiteralType) {
3491
if (local2.
NodeType
== QilNodeType.LiteralType) {
3516
if (local1.
NodeType
== QilNodeType.Sequence) {
3690
if (local2.
NodeType
== QilNodeType.LiteralType) {
3702
if (local2.
NodeType
== QilNodeType.LiteralType) {
3815
return this.parent != null && this.parent.
NodeType
== QilNodeType.PositionOf;
3901
if (nd.
NodeType
== QilNodeType.Let)
3904
if (nd.
NodeType
== QilNodeType.Parameter)
3950
switch (nd.
NodeType
) {
3997
switch (nd.
NodeType
) {
4026
if (nd.
NodeType
== QilNodeType.True)
4028
else if (nd.
NodeType
== QilNodeType.False)
4030
else if (nd.
NodeType
== QilNodeType.LiteralQName)
4042
if (child.
NodeType
== QilNodeType.Sequence)
4090
return FoldXsltConvert(ndLiteral, typTarget).
NodeType
!= QilNodeType.XsltConvert;
4102
if (ndDest.
NodeType
== QilNodeType.XsltConvert)
4107
if (ndDest.
NodeType
== QilNodeType.XsltConvert)
4160
if (left.
NodeType
== QilNodeType.LiteralDouble) {
4172
if (left.
NodeType
== QilNodeType.LiteralString) {
4205
Debug.Assert(left.
NodeType
== right.
NodeType
);
4210
switch (left.
NodeType
) {
4315
return patt.MatchesPattern(OptimizerPatternName.Step) && ((QilNode) patt.GetArgument(OptimizerPatternArgument.StepNode)).
NodeType
== stepType;
4328
if (nd.
NodeType
== QilNodeType.Function) {
4333
Debug.Assert(nd.
NodeType
== QilNodeType.Let || nd.
NodeType
== QilNodeType.Parameter, "Unexpected type of a global");
System\Xml\Xsl\IlGen\XmlIlVisitor.cs (43)
85
Debug.Assert(iter.
NodeType
== QilNodeType.Let || iter.
NodeType
== QilNodeType.Parameter);
180
Debug.Assert(iter.
NodeType
== QilNodeType.Parameter, "Only parameters may not have a default value");
208
Debug.Assert(iter.
NodeType
== QilNodeType.Parameter);
316
Debug.Fail("Visit" + parent.
NodeType
+ " should never be called");
822
if (ndCond.Right.
NodeType
== QilNodeType.Sequence && ndCond.Right.Count == 0) {
1377
this.helper.CallArithmeticOp(ndOp.
NodeType
, ndOp.XmlType.TypeCode);
1404
if (delimiter.
NodeType
== QilNodeType.LiteralString && ((string) (QilLiteral) delimiter).Length == 0) {
1409
if (listStrings.
NodeType
== QilNodeType.Sequence && listStrings.Count < 5) {
1443
if (listStrings.
NodeType
== QilNodeType.Sequence) {
1516
if (ndParsedTagName.Right.
NodeType
== QilNodeType.Sequence)
1581
QilNodeType relOp = ndComp.
NodeType
;
1683
ClrCompare(ndComp.
NodeType
== QilNodeType.Before ? QilNodeType.Lt : QilNodeType.Gt, XmlTypeCode.String);
1795
switch (step.
NodeType
) {
1837
kinds, name, (step.
NodeType
== QilNodeType.Ancestor) ? TriState.False : TriState.True, null);
1843
kinds, name, (step.
NodeType
== QilNodeType.Descendant) ? TriState.False : TriState.True, null);
1877
Debug.Assert(false, "Pattern " + step.
NodeType
+ " should have been handled.");
1961
if (ndIter.
NodeType
== QilNodeType.For || ndIter.XmlType.IsSingleton) {
1965
Debug.Assert(ndIter.
NodeType
== QilNodeType.Let || ndIter.
NodeType
== QilNodeType.Parameter);
2081
Debug.Assert(ndIter.
NodeType
== QilNodeType.For);
2097
Debug.Assert(ndSort.Variable.
NodeType
== QilNodeType.For);
2165
if (ndKey.Collation.
NodeType
== QilNodeType.LiteralString) {
2265
switch (step.
NodeType
) {
2274
kinds, name, (step.
NodeType
== QilNodeType.Descendant) ? TriState.False : TriState.True);
2293
Debug.Assert(false, "Pattern " + step.
NodeType
+ " should have been handled.");
2299
switch (step.
NodeType
) {
2303
kinds, name, (step.
NodeType
== QilNodeType.Ancestor) ? TriState.False : TriState.True, null);
2317
Debug.Assert(false, "Pattern " + step.
NodeType
+ " should have been handled.");
2886
switch (ndProp.
NodeType
) {
3699
Debug.Assert(ndDod.
NodeType
== QilNodeType.DocOrderDistinct && ndLoop != null);
3819
if (ndName.
NodeType
== QilNodeType.LiteralQName) {
3861
if (ndName.
NodeType
== QilNodeType.NameOf) {
3867
else if (ndName.
NodeType
== QilNodeType.StrParseQName) {
3897
switch (ndFirst.
NodeType
) {
3934
if (ndFirst.
NodeType
== QilNodeType.NameOf) {
3935
switch (ndSecond.
NodeType
) {
3944
if (ndSecond.
NodeType
== QilNodeType.LiteralQName) {
3954
Debug.Assert(ndSecond.
NodeType
== QilNodeType.NameOf);
4172
this.helper.CallStartTree(QilConstructorToNodeType(ndCtor.
NodeType
));
4176
switch (ndCtor.
NodeType
) {
4341
"QilNodeType " + nd.
NodeType
+ " cannot be stored using type " + this.iterCurr.Storage.ItemStorageType + ".");
4550
switch (nd.
NodeType
) {
System\Xml\Xsl\QIL\QilExpression.cs (1)
118
get { return this.isDebug.
NodeType
== QilNodeType.True; }
System\Xml\Xsl\QIL\QilFunction.cs (1)
97
get { return this.sideEffects.
NodeType
== QilNodeType.True; }
System\Xml\Xsl\QIL\QilPatternFactory.cs (15)
236
if (left.
NodeType
== QilNodeType.True || right.
NodeType
== QilNodeType.False) {
239
if (left.
NodeType
== QilNodeType.False || right.
NodeType
== QilNodeType.True) {
254
if (left.
NodeType
== QilNodeType.True || right.
NodeType
== QilNodeType.False) {
257
if (left.
NodeType
== QilNodeType.False || right.
NodeType
== QilNodeType.True) {
266
switch (child.
NodeType
) {
287
switch (condition.
NodeType
) {
496
if (expr.
NodeType
== QilNodeType.True) {
520
if (collection.
NodeType
== QilNodeType.DocOrderDistinct) {
533
Debug.Assert(args.
NodeType
== QilNodeType.FormalParameterList);
537
Debug.Assert(args.
NodeType
== QilNodeType.FormalParameterList);
542
Debug.Assert(args.
NodeType
== QilNodeType.ActualParameterList);
System\Xml\Xsl\QIL\QilScopedVisitor.cs (2)
39
switch (node.
NodeType
) {
68
switch (node.
NodeType
) {
System\Xml\Xsl\QIL\QilTypeChecker.cs (13)
31
switch (n.
NodeType
) {
169
Check(node[0].
NodeType
== QilNodeType.False || node[0].
NodeType
== QilNodeType.True, node, "IsDebug must either be True or False");
538
Check(node.Variable.
NodeType
== QilNodeType.For || node.Variable.
NodeType
== QilNodeType.Let, node, "Loop variable must be a For or Let iterator");
541
XmlQueryCardinality variableCard = node.Variable.
NodeType
== QilNodeType.Let ? XmlQueryCardinality.One : node.Variable.Binding.XmlType.Cardinality;
549
Check(node.Variable.
NodeType
== QilNodeType.For || node.Variable.
NodeType
== QilNodeType.Let, node, "Filter variable must be a For or Let iterator");
595
Check(node[2].
NodeType
== QilNodeType.False || node[2].
NodeType
== QilNodeType.True, node, "SideEffects must either be True or False");
915
Check(node.
NodeType
== nodeType, node, "Node must have QilNodeType." + nodeType);
961
switch (body.
NodeType
) {
982
if (binary.Left.
NodeType
== QilNodeType.PositionOf) {
System\Xml\Xsl\QIL\QilVisitor.cs (5)
61
switch (child.
NodeType
) {
66
switch (parent.
NodeType
) {
85
return parent.
NodeType
== QilNodeType.Invoke;
103
switch (n.
NodeType
) {
239
switch (n.
NodeType
) {
System\Xml\Xsl\QIL\QilXmlReader.cs (4)
101
Debug.Assert(this.stk.Peek()[0].
NodeType
== QilNodeType.QilExpression, "Serialized qil tree did not contain a QilExpression node");
201
switch (list[i].
NodeType
) {
204
qil.IsDebug = list[i].
NodeType
== QilNodeType.True;
282
Debug.Assert(r.LocalName == Enum.GetName(typeof(QilNodeType), nd.
NodeType
), "Id '" + id + "' is not not bound to a " + r.LocalName + " forward decl");
System\Xml\Xsl\QIL\QilXmlWriter.cs (4)
157
if (node.
NodeType
== QilNodeType.Parameter) {
198
this.writer.WriteStartElement(Enum.GetName(typeof(QilNodeType), n.
NodeType
));
202
if (n.
NodeType
== QilNodeType.Function) {
263
this.writer.WriteStartElement("", Enum.GetName(typeof(QilNodeType), node.
NodeType
), "");
System\Xml\Xsl\XmlIlGenerator.cs (1)
200
Debug.Assert(ndParam.
NodeType
== QilNodeType.Parameter);
System\Xml\Xsl\XPath\XPathBuilder.cs (4)
259
if (left.
NodeType
== QilNodeType.Sequence) {
298
if (qilAxis.
NodeType
== QilNodeType.Filter) {
392
Debug.Assert(nodeset.
NodeType
== QilNodeType.DocOrderDistinct,
781
Debug.Assert(unknown.
NodeType
== QilNodeType.Unknown);
System\Xml\Xsl\XPath\XPathQilFactory.cs (7)
177
n.
NodeType
== QilNodeType.True ? (QilNode) String("true") :
178
n.
NodeType
== QilNodeType.False ? (QilNode) String("false") :
182
return (n.
NodeType
== QilNodeType.LiteralDouble
206
return (n.
NodeType
== QilNodeType.LiteralDouble
211
return (n.
NodeType
== QilNodeType.LiteralString
230
n.
NodeType
== QilNodeType.True ? (QilNode) Double(1) :
231
n.
NodeType
== QilNodeType.False ? (QilNode) Double(0) :
System\Xml\Xsl\Xslt\KeyMatchBuilder.cs (7)
77
n.
NodeType
== QilNodeType.Union ||
78
n.
NodeType
== QilNodeType.DocOrderDistinct ||
79
n.
NodeType
== QilNodeType.Filter ||
80
n.
NodeType
== QilNodeType.Loop
89
if (n.Variable.Binding.
NodeType
== QilNodeType.Root || n.Variable.Binding.
NodeType
== QilNodeType.Deref) {
93
if (n.Variable.Binding.
NodeType
== QilNodeType.Content) {
System\Xml\Xsl\Xslt\MatcherBuilder.cs (7)
159
while (node.
NodeType
== QilNodeType.And) {
164
if (!(node.
NodeType
== QilNodeType.IsType)) {
169
if (!(isType.Left == iterator && isType.Right.
NodeType
== QilNodeType.LiteralType)) {
183
if (lastAnd != null && lastAnd.Right.
NodeType
== QilNodeType.Eq) {
187
if (eq.Left.
NodeType
== QilNodeType.NameOf &&
188
((QilUnary)eq.Left).Child == iterator && eq.Right.
NodeType
== QilNodeType.LiteralQName
375
if (matcher.
NodeType
== QilNodeType.LiteralInt32) {
System\Xml\Xsl\Xslt\QilGenerator.cs (22)
245
if (init.
NodeType
== QilNodeType.Add) {
388
Debug.Assert(nsList[i].
NodeType
== QilNodeType.NamespaceDecl);
389
Debug.Assert(varList[i].
NodeType
== QilNodeType.NamespaceDecl);
556
Debug.Assert(tmpl != null && tmpl.Function != null && tmpl.Function.Definition.
NodeType
== QilNodeType.Unknown);
648
if (result.
NodeType
== QilNodeType.Sequence && result.Count == 0) {
754
if (qilName.
NodeType
== QilNodeType.LiteralString && (qilNs == null || qilNs.
NodeType
== QilNodeType.LiteralString)) {
802
if (qilName.
NodeType
== QilNodeType.LiteralString && (qilNs == null || qilNs.
NodeType
== QilNodeType.LiteralString)) {
914
if (avtParts.
NodeType
== QilNodeType.Sequence) {
934
if (qilName.
NodeType
== QilNodeType.LiteralString) {
1308
} else if (result.
NodeType
== QilNodeType.LiteralString) {
1334
} else if (lang.
NodeType
== QilNodeType.LiteralString) {
1346
if (result.
NodeType
== QilNodeType.LiteralString) {
1416
if (result.
NodeType
== QilNodeType.LiteralString) {
1520
if (pattern.
NodeType
== QilNodeType.Error) {
1523
} else if (pattern.
NodeType
== QilNodeType.Sequence) {
1682
if (result.
NodeType
== QilNodeType.LiteralString) {
1714
} else if (result.
NodeType
== QilNodeType.LiteralString) {
1739
} else if (result.
NodeType
== QilNodeType.LiteralString) {
1802
if (result.
NodeType
== QilNodeType.Sequence) {
2394
Debug.Assert(let.
NodeType
== QilNodeType.Let);
System\Xml\Xsl\Xslt\QilGeneratorEnv.cs (7)
85
if (var.
NodeType
== QilNodeType.Parameter && varType.IsNode && varType.IsNotRtf && varType.MaybeMany && !varType.IsDod) {
346
if (name.
NodeType
== QilNodeType.LiteralString) {
479
if (formatName.
NodeType
== QilNodeType.LiteralString) {
501
if (formatPicture.
NodeType
== QilNodeType.LiteralString) {
546
if (name.
NodeType
== QilNodeType.LiteralString) {
566
if (name.
NodeType
== QilNodeType.LiteralString) {
580
if (name.
NodeType
== QilNodeType.LiteralString) {
System\Xml\Xsl\Xslt\QilStrConcatenator.cs (1)
58
if (value.
NodeType
== QilNodeType.LiteralString) {
System\Xml\Xsl\Xslt\XPathPatternBuilder.cs (14)
50
Debug.Assert(filter.
NodeType
== QilNodeType.Filter, "XPathPatternBuilder expected to generate list of Filters on top level");
52
Debug.Assert(filter.Variable.Binding.
NodeType
== QilNodeType.Unknown); // fixupNode
81
Debug.Assert(right.
NodeType
== QilNodeType.Filter, "LocationPathPattern must be compiled into a filter");
82
if (left.
NodeType
== QilNodeType.Sequence) {
86
Debug.Assert(left.
NodeType
== QilNodeType.Filter, "LocationPathPattern must be compiled into a filter");
175
if (left.
NodeType
== QilNodeType.Nop) {
182
Debug.Assert(left.
NodeType
== QilNodeType.Filter);
186
if (right.
NodeType
== QilNodeType.Nop) {
193
Debug.Assert(right.
NodeType
== QilNodeType.Filter);
267
args.Count == 1 && args[0].
NodeType
== QilNodeType.LiteralString,
275
args[0].
NodeType
== QilNodeType.LiteralString && args[1].
NodeType
== QilNodeType.LiteralString,
316
Debug.Assert(parent.
NodeType
== QilNodeType.Filter);
335
Debug.Assert(context.Variable.
NodeType
== QilNodeType.For, "It shouldn't be Let, becaus predicates in PatternBuilder don't produce cached tuples.");