2 writes to NodeType
System.Private.Xml (2)
System\Xml\Xsl\IlGen\XmlILOptimizerVisitor.cs (1)
372
local0.
NodeType
= QilNodeType.For;
System\Xml\Xsl\QIL\QilFunction.cs (1)
106
set { _sideEffects.
NodeType
= value ? QilNodeType.True : QilNodeType.False; }
414 references to NodeType
System.Private.Xml (414)
System\Xml\Xsl\IlGen\TailCallAnalyzer.cs (2)
39
switch (nd.
NodeType
)
53
if (ndLoop.Variable.
NodeType
== QilNodeType.Let || !ndLoop.Variable.Binding!.XmlType!.MaybeMany)
System\Xml\Xsl\IlGen\XmlILConstructAnalyzer.cs (21)
98
constrInfo = new XmlILConstructInfo(nd.
NodeType
);
449
if (ndConstr.
NodeType
== QilNodeType.Function)
475
if (ndConstr.
NodeType
!= QilNodeType.Choice)
479
if (ndConstr.
NodeType
!= QilNodeType.RtfCtor)
484
this.withinElem = (ndConstr.
NodeType
== QilNodeType.ElementCtor);
486
switch (ndConstr.
NodeType
)
501
default: Debug.Fail($"{ndConstr.
NodeType
} is not handled by XmlILStateAnalyzer."); break;
507
if (ndConstr.
NodeType
== QilNodeType.Choice)
511
if (ndConstr.
NodeType
== QilNodeType.Function)
527
switch (nd.
NodeType
)
550
switch (nd.
NodeType
)
565
switch (ndChild.
NodeType
)
801
Debug.Assert(ndElem!.
NodeType
== QilNodeType.ElementCtor);
836
if (ndCopy.
NodeType
== QilNodeType.AttributeCtor)
855
if (ndAttr.Left.
NodeType
== QilNodeType.LiteralQName)
971
switch (nd.
NodeType
)
1042
switch (nd.
NodeType
)
1051
nodeType = (nd.
NodeType
== QilNodeType.ElementCtor) ? XPathNodeType.Element : XPathNodeType.Attribute;
1059
Debug.Assert(nd.
NodeType
== QilNodeType.NamespaceDecl);
1067
if (nd.
NodeType
== QilNodeType.AttributeCtor && ns.Length == 0 ||
1095
Debug.Assert(nd.
NodeType
!= QilNodeType.NamespaceDecl || !_nsmgr.HasNamespace(prefix) || _nsmgr.LookupNamespace(prefix) == ns,
System\Xml\Xsl\IlGen\XmlILOptimizerVisitor.cs (231)
98
switch (nd.
NodeType
)
132
if (newNode.
NodeType
== QilNodeType.Let || newNode.
NodeType
== QilNodeType.For)
175
switch (node.
NodeType
)
220
if (node.
NodeType
!= QilNodeType.Let || !_qil.GlobalVariableList.Contains(node))
392
if (!((local1).
NodeType
== QilNodeType.For))
403
if (local1.
NodeType
== QilNodeType.For)
461
if (local1.
NodeType
== QilNodeType.True)
472
if (local1.
NodeType
== QilNodeType.False)
483
if (local2.
NodeType
== QilNodeType.True)
494
if (local2.
NodeType
== QilNodeType.False)
534
if (local1.
NodeType
== QilNodeType.True)
545
if (local1.
NodeType
== QilNodeType.False)
556
if (local2.
NodeType
== QilNodeType.True)
567
if (local2.
NodeType
== QilNodeType.False)
595
if (local1.
NodeType
== QilNodeType.True)
606
if (local1.
NodeType
== QilNodeType.False)
639
if (local1.
NodeType
== QilNodeType.True)
650
if (local1.
NodeType
== QilNodeType.False)
661
if (local2.
NodeType
== QilNodeType.True)
663
if (local3.
NodeType
== QilNodeType.False)
675
if (local2.
NodeType
== QilNodeType.False)
677
if (local3.
NodeType
== QilNodeType.True)
689
if (local1.
NodeType
== QilNodeType.Not)
701
if (local2.
NodeType
== QilNodeType.TextCtor)
704
if (local3.
NodeType
== QilNodeType.TextCtor)
750
if (local1.
NodeType
== QilNodeType.Sequence)
805
if (nd.
NodeType
== QilNodeType.Sequence)
858
if (local1.
NodeType
== QilNodeType.Sequence)
872
if (local2.
NodeType
== QilNodeType.Sequence)
886
if (local1.
NodeType
== QilNodeType.XmlContext)
888
if (local2.
NodeType
== QilNodeType.XmlContext)
973
if (local1.
NodeType
== QilNodeType.Sequence)
987
if (local2.
NodeType
== QilNodeType.Sequence)
1001
if (local1.
NodeType
== QilNodeType.XmlContext)
1003
if (local2.
NodeType
== QilNodeType.XmlContext)
1063
if (local1.
NodeType
== QilNodeType.Sequence)
1077
if (local2.
NodeType
== QilNodeType.Sequence)
1102
if (local1.
NodeType
== QilNodeType.XmlContext)
1104
if (local2.
NodeType
== QilNodeType.XmlContext)
1267
if (local1.
NodeType
== QilNodeType.LiteralDecimal)
1279
if (local1.
NodeType
== QilNodeType.LiteralDouble)
1291
if (local1.
NodeType
== QilNodeType.LiteralInt32)
1303
if (local1.
NodeType
== QilNodeType.LiteralInt64)
1578
if (local1.
NodeType
== QilNodeType.LiteralString)
1627
if (local1.
NodeType
== QilNodeType.LiteralString)
1630
if (local2.
NodeType
== QilNodeType.Sequence)
1740
if (local1.
NodeType
== QilNodeType.XsltConvert)
1744
if (local4.
NodeType
== QilNodeType.LiteralType)
1763
if (local1.
NodeType
== QilNodeType.XsltGenerateId)
1768
if (local2.
NodeType
== QilNodeType.XsltGenerateId)
1785
if (local1.
NodeType
== QilNodeType.Length)
1788
if (local2.
NodeType
== QilNodeType.LiteralInt32)
1804
if (local1.
NodeType
== QilNodeType.Length)
1806
if (local2.
NodeType
== QilNodeType.LiteralInt32)
1876
if (local1.
NodeType
== QilNodeType.XsltConvert)
1880
if (local4.
NodeType
== QilNodeType.LiteralType)
1899
if (local1.
NodeType
== QilNodeType.Add)
1918
if (local1.
NodeType
== QilNodeType.XsltGenerateId)
1923
if (local2.
NodeType
== QilNodeType.XsltGenerateId)
1940
if (local1.
NodeType
== QilNodeType.XsltGenerateId)
1945
if (local2.
NodeType
== QilNodeType.StrConcat)
1948
if (local5.
NodeType
== QilNodeType.Loop)
1952
if (local6.
NodeType
== QilNodeType.For)
1957
if (local8.
NodeType
== QilNodeType.XsltGenerateId)
1979
if (local1.
NodeType
== QilNodeType.StrConcat)
1982
if (local4.
NodeType
== QilNodeType.Loop)
1986
if (local5.
NodeType
== QilNodeType.For)
1991
if (local7.
NodeType
== QilNodeType.XsltGenerateId)
1996
if (local2.
NodeType
== QilNodeType.XsltGenerateId)
2018
if (local1.
NodeType
== QilNodeType.Length)
2021
if (local3.
NodeType
== QilNodeType.Union)
2027
if (local2.
NodeType
== QilNodeType.LiteralInt32)
2046
if (local1.
NodeType
== QilNodeType.Length)
2049
if (local3.
NodeType
== QilNodeType.Union)
2055
if (local2.
NodeType
== QilNodeType.LiteralInt32)
2074
if (local1.
NodeType
== QilNodeType.Length)
2076
if (local2.
NodeType
== QilNodeType.LiteralInt32)
2146
if (local1.
NodeType
== QilNodeType.XsltConvert)
2150
if (local4.
NodeType
== QilNodeType.LiteralType)
2169
if (local1.
NodeType
== QilNodeType.Length)
2172
if (local2.
NodeType
== QilNodeType.LiteralInt32)
2188
if (local1.
NodeType
== QilNodeType.Length)
2190
if (local2.
NodeType
== QilNodeType.LiteralInt32)
2260
if (local1.
NodeType
== QilNodeType.XsltConvert)
2264
if (local4.
NodeType
== QilNodeType.LiteralType)
2283
if (local1.
NodeType
== QilNodeType.Length)
2285
if (local2.
NodeType
== QilNodeType.LiteralInt32)
2355
if (local1.
NodeType
== QilNodeType.XsltConvert)
2359
if (local4.
NodeType
== QilNodeType.LiteralType)
2378
if (local1.
NodeType
== QilNodeType.Length)
2380
if (local2.
NodeType
== QilNodeType.LiteralInt32)
2450
if (local1.
NodeType
== QilNodeType.XsltConvert)
2454
if (local4.
NodeType
== QilNodeType.LiteralType)
2473
if (local1.
NodeType
== QilNodeType.Length)
2475
if (local2.
NodeType
== QilNodeType.LiteralInt32)
2632
if (local1.
NodeType
== QilNodeType.For)
2635
if (local3.
NodeType
== QilNodeType.For)
2650
if (local1.
NodeType
== QilNodeType.For)
2653
if (local3.
NodeType
== QilNodeType.Sequence)
2670
if (local2.
NodeType
== QilNodeType.Sequence)
2696
if (local1.
NodeType
== QilNodeType.For)
2701
if (local2.
NodeType
== QilNodeType.TextCtor)
2715
if ((((local1).
NodeType
== QilNodeType.Let) || ((((QilNode)(local1)[0]).XmlType!).IsSingleton)) && (!OptimizerPatterns.Read(local1).MatchesPattern(OptimizerPatternName.MaybeSideEffects)))
2729
if (local2.
NodeType
== QilNodeType.Conditional)
2734
if (local4.
NodeType
== QilNodeType.Sequence)
2752
if (local2.
NodeType
== QilNodeType.Conditional)
2759
if (local5.
NodeType
== QilNodeType.Sequence)
2775
if (local1.
NodeType
== QilNodeType.For)
2777
if (local2.
NodeType
== QilNodeType.Conditional)
2782
if (local5.
NodeType
== QilNodeType.Sequence)
2802
if (local1.
NodeType
== QilNodeType.For)
2804
if (local2.
NodeType
== QilNodeType.Conditional)
2811
if (local6.
NodeType
== QilNodeType.Sequence)
2829
if (local2.
NodeType
== QilNodeType.Loop)
2833
if (local3.
NodeType
== QilNodeType.For)
2850
if (local1.
NodeType
== QilNodeType.For)
2876
if (local1.
NodeType
== QilNodeType.For)
2894
if (local1.
NodeType
== QilNodeType.For)
2909
if (local1.
NodeType
== QilNodeType.For)
2958
if (local2.
NodeType
== QilNodeType.False)
2970
if (local2.
NodeType
== QilNodeType.True)
2981
if (local1.
NodeType
== QilNodeType.For)
2984
if (local3.
NodeType
== QilNodeType.Content)
2987
if (local2.
NodeType
== QilNodeType.And)
2991
if (local5.
NodeType
== QilNodeType.IsType)
2997
if (local7.
NodeType
== QilNodeType.LiteralType)
3002
if (local9.
NodeType
== QilNodeType.Eq)
3006
if (local10.
NodeType
== QilNodeType.NameOf)
3011
if (local12.
NodeType
== QilNodeType.LiteralQName)
3032
if (local1.
NodeType
== QilNodeType.For)
3035
if (local3.
NodeType
== QilNodeType.Loop)
3053
if ((!OptimizerPatterns.Read(local1).MatchesPattern(OptimizerPatternName.MaybeSideEffects)) && (!(((QilNode)(local1)[0]).
NodeType
== QilNodeType.OptimizeBarrier)))
3067
if (local2.
NodeType
== QilNodeType.Eq)
3071
if (local3.
NodeType
== QilNodeType.PositionOf)
3076
if (local5.
NodeType
== QilNodeType.LiteralInt32)
3091
if (local2.
NodeType
== QilNodeType.Le)
3095
if (local3.
NodeType
== QilNodeType.PositionOf)
3100
if (local5.
NodeType
== QilNodeType.LiteralInt32)
3115
if (local2.
NodeType
== QilNodeType.Lt)
3119
if (local3.
NodeType
== QilNodeType.PositionOf)
3124
if (local5.
NodeType
== QilNodeType.LiteralInt32)
3139
if (local1.
NodeType
== QilNodeType.For)
3151
if (local1.
NodeType
== QilNodeType.For)
3156
if (local2.
NodeType
== QilNodeType.And)
3160
if (local4.
NodeType
== QilNodeType.IsType)
3166
if (local6.
NodeType
== QilNodeType.LiteralType)
3171
if (local8.
NodeType
== QilNodeType.Eq)
3175
if (local9.
NodeType
== QilNodeType.NameOf)
3180
if (local11.
NodeType
== QilNodeType.LiteralQName)
3201
if (local1.
NodeType
== QilNodeType.For)
3206
if (local2.
NodeType
== QilNodeType.IsType)
3212
if (local5.
NodeType
== QilNodeType.LiteralType)
3231
if (local1.
NodeType
== QilNodeType.For)
3234
if (local3.
NodeType
== QilNodeType.Content)
3236
if (local2.
NodeType
== QilNodeType.IsType)
3242
if (local6.
NodeType
== QilNodeType.LiteralType)
3281
if (local1.
NodeType
== QilNodeType.For)
3303
if (local1.
NodeType
== QilNodeType.XsltConvert)
3307
if (local4.
NodeType
== QilNodeType.LiteralType)
3351
if (local1.
NodeType
== QilNodeType.Loop)
3355
if (local2.
NodeType
== QilNodeType.For)
3358
if (local3.
NodeType
== QilNodeType.Loop)
3362
if (local5.
NodeType
== QilNodeType.DescendantOrSelf)
3365
if (local7.
NodeType
== QilNodeType.Filter)
3386
if (local1.
NodeType
== QilNodeType.Loop)
3390
if (local2.
NodeType
== QilNodeType.For)
3393
if (local3.
NodeType
== QilNodeType.DescendantOrSelf)
3396
if (local5.
NodeType
== QilNodeType.Filter)
3416
if (local1.
NodeType
== QilNodeType.Filter)
3420
if (local2.
NodeType
== QilNodeType.For)
3440
if (local1.
NodeType
== QilNodeType.Loop)
3444
if (local3.
NodeType
== QilNodeType.Filter)
3448
if (local4.
NodeType
== QilNodeType.For)
3472
if (local1.
NodeType
== QilNodeType.Loop)
3476
if (local2.
NodeType
== QilNodeType.For)
3499
if (local1.
NodeType
== QilNodeType.Loop)
3515
if (local1.
NodeType
== QilNodeType.Loop)
3519
if (local3.
NodeType
== QilNodeType.DocOrderDistinct)
3554
if (local1.
NodeType
== QilNodeType.Loop)
3558
if (local2.
NodeType
== QilNodeType.For)
3577
if (local1.
NodeType
== QilNodeType.Loop)
3580
if (local3.
NodeType
== QilNodeType.Invoke)
3607
if (local2.
NodeType
== QilNodeType.Filter)
3611
if (local5.
NodeType
== QilNodeType.For)
3614
if (local7.
NodeType
== QilNodeType.Not)
3617
if (local8.
NodeType
== QilNodeType.IsEmpty)
3620
if (local9.
NodeType
== QilNodeType.Filter)
3624
if (local10.
NodeType
== QilNodeType.For)
3627
if (local12.
NodeType
== QilNodeType.Eq)
3633
if (local14.
NodeType
== QilNodeType.Parameter)
3678
if (local2.
NodeType
== QilNodeType.Filter)
3682
if (local5.
NodeType
== QilNodeType.For)
3685
if (local7.
NodeType
== QilNodeType.Eq)
3689
if (local9.
NodeType
== QilNodeType.Parameter)
3726
if (local1.
NodeType
== QilNodeType.Function)
3729
if (local4.
NodeType
== QilNodeType.Sequence)
3752
if (local1.
NodeType
== QilNodeType.Function)
4406
if (local1.
NodeType
== QilNodeType.TextCtor)
4512
if (local2.
NodeType
== QilNodeType.LiteralType)
4527
if (local2.
NodeType
== QilNodeType.LiteralType)
4542
if (local2.
NodeType
== QilNodeType.LiteralType)
4577
if (local2.
NodeType
== QilNodeType.LiteralType)
4595
if (local2.
NodeType
== QilNodeType.LiteralType)
4611
if (local2.
NodeType
== QilNodeType.LiteralType)
4628
if (local2.
NodeType
== QilNodeType.LiteralType)
4646
if (local2.
NodeType
== QilNodeType.LiteralType)
4679
if (local1.
NodeType
== QilNodeType.Sequence)
4912
if (local2.
NodeType
== QilNodeType.LiteralType)
4928
if (local2.
NodeType
== QilNodeType.LiteralType)
5058
return this.parent != null && this.parent.
NodeType
== QilNodeType.PositionOf;
5155
if (nd.
NodeType
== QilNodeType.Let)
5158
if (nd.
NodeType
== QilNodeType.Parameter)
5208
switch (nd.
NodeType
)
5258
switch (nd.
NodeType
)
5290
if (nd.
NodeType
== QilNodeType.True)
5292
else if (nd.
NodeType
== QilNodeType.False)
5294
else if (nd.
NodeType
== QilNodeType.LiteralQName)
5308
if (child.
NodeType
== QilNodeType.Sequence)
5363
return FoldXsltConvert(ndLiteral, typTarget).
NodeType
!= QilNodeType.XsltConvert;
5376
if (ndDest.
NodeType
== QilNodeType.XsltConvert)
5381
if (ndDest.
NodeType
== QilNodeType.XsltConvert)
5438
if (left.
NodeType
== QilNodeType.LiteralDouble)
5451
if (left.
NodeType
== QilNodeType.LiteralString)
5489
Debug.Assert(left.
NodeType
== right.
NodeType
);
5496
switch (left.
NodeType
)
5617
return patt.MatchesPattern(OptimizerPatternName.Step) && ((QilNode)patt.GetArgument(OptimizerPatternArgument.StepNode)).
NodeType
== stepType;
5632
if (nd.
NodeType
== QilNodeType.Function)
5639
Debug.Assert(nd.
NodeType
== QilNodeType.Let || nd.
NodeType
== QilNodeType.Parameter, "Unexpected type of a global");
System\Xml\Xsl\IlGen\XmlIlVisitor.cs (44)
93
Debug.Assert(iter.
NodeType
== QilNodeType.Let || iter.
NodeType
== QilNodeType.Parameter);
193
Debug.Assert(iter.
NodeType
== QilNodeType.Parameter, "Only parameters may not have a default value");
223
Debug.Assert(iter.
NodeType
== QilNodeType.Parameter);
336
Debug.Fail($"Visit{parent.
NodeType
} should never be called");
882
if (ndCond.Right.
NodeType
== QilNodeType.Sequence && ndCond.Right.Count == 0)
1484
_helper.CallArithmeticOp(ndOp.
NodeType
, ndOp.XmlType!.TypeCode);
1513
if (delimiter.
NodeType
== QilNodeType.LiteralString && ((string)(QilLiteral)delimiter).Length == 0)
1519
if (listStrings.
NodeType
== QilNodeType.Sequence && listStrings.Count < 5)
1559
if (listStrings.
NodeType
== QilNodeType.Sequence)
1639
if (ndParsedTagName.Right.
NodeType
== QilNodeType.Sequence)
1711
QilNodeType relOp = ndComp.
NodeType
;
1821
ClrCompare(ndComp.
NodeType
== QilNodeType.Before ? QilNodeType.Lt : QilNodeType.Gt, XmlTypeCode.String);
1943
switch (step.
NodeType
)
1990
kinds, name, (step.
NodeType
== QilNodeType.Ancestor) ? TriState.False : TriState.True, null);
1996
kinds, name, (step.
NodeType
== QilNodeType.Descendant) ? TriState.False : TriState.True, null);
2030
Debug.Fail($"Pattern {step.
NodeType
} should have been handled.");
2117
if (ndIter.
NodeType
== QilNodeType.For || ndIter.XmlType!.IsSingleton)
2123
Debug.Assert(ndIter.
NodeType
== QilNodeType.Let || ndIter.
NodeType
== QilNodeType.Parameter);
2248
Debug.Assert(ndIter.
NodeType
== QilNodeType.For);
2265
Debug.Assert(ndSort.Variable.
NodeType
== QilNodeType.For);
2334
if (ndKey.Collation.
NodeType
== QilNodeType.LiteralString)
2445
switch (step.
NodeType
)
2455
kinds, name, (step.
NodeType
== QilNodeType.Descendant) ? TriState.False : TriState.True);
2474
Debug.Fail($"Pattern {step.
NodeType
} should have been handled.");
2481
switch (step.
NodeType
)
2486
kinds, name, (step.
NodeType
== QilNodeType.Ancestor) ? TriState.False : TriState.True, null);
2500
Debug.Fail($"Pattern {step.
NodeType
} should have been handled.");
3107
switch (ndProp.
NodeType
)
3137
Debug.Fail($"Unexpected node type {ndProp.
NodeType
}");
3988
Debug.Assert(ndDod.
NodeType
== QilNodeType.DocOrderDistinct && ndLoop != null);
4113
if (ndName.
NodeType
== QilNodeType.LiteralQName)
4163
if (ndName.
NodeType
== QilNodeType.NameOf)
4170
else if (ndName.
NodeType
== QilNodeType.StrParseQName)
4203
switch (ndFirst.
NodeType
)
4242
if (ndFirst.
NodeType
== QilNodeType.NameOf)
4244
switch (ndSecond.
NodeType
)
4255
if (ndSecond.
NodeType
== QilNodeType.LiteralQName)
4267
Debug.Assert(ndSecond.
NodeType
== QilNodeType.NameOf);
4504
_helper.CallStartTree(QilConstructorToNodeType(ndCtor.
NodeType
));
4508
switch (ndCtor.
NodeType
)
4698
$"QilNodeType {nd.
NodeType
} cannot be stored using type {_iterCurr.Storage.ItemStorageType}."
4927
switch (nd.
NodeType
)
System\Xml\Xsl\QIL\QilExpression.cs (1)
113
get { return _isDebug.
NodeType
== QilNodeType.True; }
System\Xml\Xsl\QIL\QilFunction.cs (1)
105
get { return _sideEffects.
NodeType
== QilNodeType.True; }
System\Xml\Xsl\QIL\QilPatternFactory.cs (15)
244
if (left.
NodeType
== QilNodeType.True || right.
NodeType
== QilNodeType.False)
248
if (left.
NodeType
== QilNodeType.False || right.
NodeType
== QilNodeType.True)
266
if (left.
NodeType
== QilNodeType.True || right.
NodeType
== QilNodeType.False)
270
if (left.
NodeType
== QilNodeType.False || right.
NodeType
== QilNodeType.True)
282
switch (child.
NodeType
)
306
switch (condition.
NodeType
)
552
if (expr.
NodeType
== QilNodeType.True)
580
if (collection.
NodeType
== QilNodeType.DocOrderDistinct)
595
Debug.Assert(args.
NodeType
== QilNodeType.FormalParameterList);
600
Debug.Assert(args.
NodeType
== QilNodeType.FormalParameterList);
606
Debug.Assert(args.
NodeType
== QilNodeType.ActualParameterList);
System\Xml\Xsl\QIL\QilScopedVisitor.cs (2)
39
switch (node.
NodeType
)
70
switch (node.
NodeType
)
System\Xml\Xsl\QIL\QilTypeChecker.cs (13)
26
return n.
NodeType
switch
166
Check(node[0].
NodeType
== QilNodeType.False || node[0].
NodeType
== QilNodeType.True, node, "IsDebug must either be True or False");
596
Check(node.Variable.
NodeType
== QilNodeType.For || node.Variable.
NodeType
== QilNodeType.Let, node, "Loop variable must be a For or Let iterator");
599
XmlQueryCardinality variableCard = node.Variable.
NodeType
== QilNodeType.Let ? XmlQueryCardinality.One : node.Variable.Binding!.XmlType!.Cardinality;
608
Check(node.Variable.
NodeType
== QilNodeType.For || node.Variable.
NodeType
== QilNodeType.Let, node, "Filter variable must be a For or Let iterator");
658
Check(node[2].
NodeType
== QilNodeType.False || node[2].
NodeType
== QilNodeType.True, node, "SideEffects must either be True or False");
1016
Check(node.
NodeType
== nodeType, node, $"Node must have QilNodeType.{nodeType}");
1069
switch (body.
NodeType
)
1091
if (binary.Left.
NodeType
== QilNodeType.PositionOf)
System\Xml\Xsl\QIL\QilValidationVisitor.cs (5)
81
if (parent.
NodeType
== QilNodeType.Parameter)
88
if (parent.
NodeType
== QilNodeType.GlobalVariableList ||
89
parent.
NodeType
== QilNodeType.GlobalParameterList ||
90
parent.
NodeType
== QilNodeType.FunctionList)
166
SetError(n, "Duplicate " + n.
NodeType
+ " node");
System\Xml\Xsl\QIL\QilVisitor.cs (5)
64
switch (child.
NodeType
)
70
switch (parent.
NodeType
)
90
return parent.
NodeType
== QilNodeType.Invoke;
109
return n.
NodeType
switch
247
return n.
NodeType
switch
System\Xml\Xsl\QIL\QilXmlWriter.cs (4)
165
if (node.
NodeType
== QilNodeType.Parameter)
209
this.writer.WriteStartElement(Enum.GetName(n.
NodeType
)!);
213
if (n.
NodeType
== QilNodeType.Function)
280
this.writer.WriteStartElement("", Enum.GetName(node.
NodeType
)!, "");
System\Xml\Xsl\XmlIlGenerator.cs (1)
210
Debug.Assert(ndParam.
NodeType
== QilNodeType.Parameter);
System\Xml\Xsl\XPath\XPathBuilder.cs (4)
308
if (left.
NodeType
== QilNodeType.Sequence)
355
if (qilAxis.
NodeType
== QilNodeType.Filter)
457
Debug.Assert(nodeset.
NodeType
== QilNodeType.DocOrderDistinct,
890
Debug.Assert(unknown.
NodeType
== QilNodeType.Unknown);
System\Xml\Xsl\XPath\XPathQilFactory.cs (7)
193
n.
NodeType
== QilNodeType.True ? (QilNode)String("true") :
194
n.
NodeType
== QilNodeType.False ? (QilNode)String("false") :
198
return (n.
NodeType
== QilNodeType.LiteralDouble
225
return (n.
NodeType
== QilNodeType.LiteralDouble
230
return (n.
NodeType
== QilNodeType.LiteralString
252
n.
NodeType
== QilNodeType.True ? (QilNode)Double(1) :
253
n.
NodeType
== QilNodeType.False ? (QilNode)Double(0) :
System\Xml\Xsl\Xslt\KeyMatchBuilder.cs (7)
87
n.
NodeType
== QilNodeType.Union ||
88
n.
NodeType
== QilNodeType.DocOrderDistinct ||
89
n.
NodeType
== QilNodeType.Filter ||
90
n.
NodeType
== QilNodeType.Loop
101
if (n.Variable.Binding!.
NodeType
== QilNodeType.Root || n.Variable.Binding.
NodeType
== QilNodeType.Deref)
106
if (n.Variable.Binding.
NodeType
== QilNodeType.Content)
System\Xml\Xsl\Xslt\MatcherBuilder.cs (7)
165
while (node.
NodeType
== QilNodeType.And)
171
if (!(node.
NodeType
== QilNodeType.IsType))
177
if (!(isType.Left == _iterator && isType.Right.
NodeType
== QilNodeType.LiteralType))
192
if (lastAnd != null && lastAnd.Right.
NodeType
== QilNodeType.Eq)
197
if (eq.Left.
NodeType
== QilNodeType.NameOf &&
198
((QilUnary)eq.Left).Child == _iterator && eq.Right.
NodeType
== QilNodeType.LiteralQName
421
if (matcher.
NodeType
== QilNodeType.LiteralInt32)
System\Xml\Xsl\Xslt\QilGenerator.cs (22)
269
if (init.
NodeType
== QilNodeType.Add)
446
Debug.Assert(nsList[i].
NodeType
== QilNodeType.NamespaceDecl);
447
Debug.Assert(varList[i].
NodeType
== QilNodeType.NamespaceDecl);
643
Debug.Assert(tmpl != null && tmpl.Function != null && tmpl.Function.Definition.
NodeType
== QilNodeType.Unknown);
748
if (result.
NodeType
== QilNodeType.Sequence && result.Count == 0)
876
if (qilName.
NodeType
== QilNodeType.LiteralString && (qilNs == null || qilNs.
NodeType
== QilNodeType.LiteralString))
935
if (qilName.
NodeType
== QilNodeType.LiteralString && (qilNs == null || qilNs.
NodeType
== QilNodeType.LiteralString))
1079
if (avtParts.
NodeType
== QilNodeType.Sequence)
1105
if (qilName.
NodeType
== QilNodeType.LiteralString)
1553
else if (result.
NodeType
== QilNodeType.LiteralString)
1587
else if (lang.
NodeType
== QilNodeType.LiteralString)
1604
if (result.
NodeType
== QilNodeType.LiteralString)
1690
if (result.
NodeType
== QilNodeType.LiteralString)
1810
if (pattern.
NodeType
== QilNodeType.Error)
1815
else if (pattern.
NodeType
== QilNodeType.Sequence)
1998
if (result.
NodeType
== QilNodeType.LiteralString)
2039
else if (result.
NodeType
== QilNodeType.LiteralString)
2072
else if (result.
NodeType
== QilNodeType.LiteralString)
2147
if (result.
NodeType
== QilNodeType.Sequence)
2869
Debug.Assert(let.
NodeType
== QilNodeType.Let);
System\Xml\Xsl\Xslt\QilGeneratorEnv.cs (7)
89
if (var.
NodeType
== QilNodeType.Parameter && varType.IsNode && varType.IsNotRtf && varType.MaybeMany && !varType.IsDod)
412
if (name.
NodeType
== QilNodeType.LiteralString)
572
if (formatName.
NodeType
== QilNodeType.LiteralString)
602
if (formatPicture.
NodeType
== QilNodeType.LiteralString)
655
if (name.
NodeType
== QilNodeType.LiteralString)
683
if (name.
NodeType
== QilNodeType.LiteralString)
702
if (name.
NodeType
== QilNodeType.LiteralString)
System\Xml\Xsl\Xslt\QilStrConcatenator.cs (1)
62
if (value.
NodeType
== QilNodeType.LiteralString)
System\Xml\Xsl\Xslt\XPathPatternBuilder.cs (14)
52
Debug.Assert(filter.
NodeType
== QilNodeType.Filter, "XPathPatternBuilder expected to generate list of Filters on top level");
54
Debug.Assert(filter.Variable.Binding!.
NodeType
== QilNodeType.Unknown); // fixupNode
84
Debug.Assert(right.
NodeType
== QilNodeType.Filter, "LocationPathPattern must be compiled into a filter");
85
if (left.
NodeType
== QilNodeType.Sequence)
92
Debug.Assert(left.
NodeType
== QilNodeType.Filter, "LocationPathPattern must be compiled into a filter");
192
if (left.
NodeType
== QilNodeType.Nop)
200
Debug.Assert(left.
NodeType
== QilNodeType.Filter);
205
if (right.
NodeType
== QilNodeType.Nop)
213
Debug.Assert(right.
NodeType
== QilNodeType.Filter);
298
args.Count == 1 && args[0].
NodeType
== QilNodeType.LiteralString,
308
args[0].
NodeType
== QilNodeType.LiteralString && args[1].
NodeType
== QilNodeType.LiteralString,
355
Debug.Assert(parent.
NodeType
== QilNodeType.Filter);
377
Debug.Assert(context.Variable.
NodeType
== QilNodeType.For, "It shouldn't be Let, becaus predicates in PatternBuilder don't produce cached tuples.");