189 references to XslNodeType
System.Data.SqlXml (189)
System\Xml\Xsl\Xslt\Compiler.cs (3)
162
Debug.Assert(var.NodeType ==
XslNodeType
.Variable || var.NodeType ==
XslNodeType
.Param);
164
if (var.NodeType ==
XslNodeType
.Variable) {
System\Xml\Xsl\Xslt\QilGenerator.cs (54)
417
Debug.Assert(tmpl.NodeType ==
XslNodeType
.AttributeSet || tmpl.NodeType ==
XslNodeType
.Template);
441
Debug.Assert(tmpl.NodeType ==
XslNodeType
.Template);
447
if (node.NodeType ==
XslNodeType
.Text) {
452
if (node.NodeType ==
XslNodeType
.Param) {
606
XslNodeType
nodeType = node.NodeType;
607
if (nodeType ==
XslNodeType
.Param) {
614
case
XslNodeType
.ApplyImports: result = CompileApplyImports (node); break;
615
case
XslNodeType
.ApplyTemplates: result = CompileApplyTemplates ((XslNodeEx)node); break;
616
case
XslNodeType
.Attribute: result = CompileAttribute ((NodeCtor)node); break;
617
case
XslNodeType
.CallTemplate: result = CompileCallTemplate ((XslNodeEx)node); break;
618
case
XslNodeType
.Choose: result = CompileChoose (node); break;
619
case
XslNodeType
.Comment: result = CompileComment (node); break;
620
case
XslNodeType
.Copy: result = CompileCopy (node); break;
621
case
XslNodeType
.CopyOf: result = CompileCopyOf (node); break;
622
case
XslNodeType
.Element: result = CompileElement ((NodeCtor)node); break;
623
case
XslNodeType
.Error: result = CompileError (node); break;
624
case
XslNodeType
.ForEach: result = CompileForEach ((XslNodeEx)node); break;
625
case
XslNodeType
.If: result = CompileIf (node); break;
626
case
XslNodeType
.List: result = CompileList (node); break;
627
case
XslNodeType
.LiteralAttribute: result = CompileLiteralAttribute(node); break;
628
case
XslNodeType
.LiteralElement: result = CompileLiteralElement (node); break;
629
case
XslNodeType
.Message: result = CompileMessage (node); break;
630
case
XslNodeType
.Nop: result = CompileNop (node); break;
631
case
XslNodeType
.Number: result = CompileNumber ((Number)node); break;
634
case
XslNodeType
.PI: result = CompilePI (node); break;
637
case
XslNodeType
.Text: result = CompileText ((Text)node); break;
638
case
XslNodeType
.UseAttributeSet: result = CompileUseAttributeSet (node); break;
639
case
XslNodeType
.ValueOf: result = CompileValueOf (node); break;
640
case
XslNodeType
.ValueOfDoe: result = CompileValueOfDoe (node); break;
641
case
XslNodeType
.Variable: result = CompileVariable (node); break;
653
if (nodeType !=
XslNodeType
.LiteralAttribute && nodeType !=
XslNodeType
.UseAttributeSet) {
658
if (nodeType ==
XslNodeType
.Variable) {
999
Debug.Assert(withParam.NodeType ==
XslNodeType
.WithParam);
1033
Debug.Assert(node.NodeType ==
XslNodeType
.ApplyImports);
1196
Debug.Assert(when.NodeType ==
XslNodeType
.If || when.NodeType ==
XslNodeType
.Otherwise);
1198
if (when.NodeType ==
XslNodeType
.Otherwise) {
1232
Debug.Assert(node.NodeType ==
XslNodeType
.Variable);
1240
Debug.Assert(node.NodeType ==
XslNodeType
.Variable || node.NodeType ==
XslNodeType
.Param || node.NodeType ==
XslNodeType
.WithParam);
1271
Debug.Assert(withParam.NodeType ==
XslNodeType
.WithParam);
1443
Debug.Assert(sort.NodeType ==
XslNodeType
.Sort);
1866
Debug.Assert(varPar.NodeType ==
XslNodeType
.Variable || varPar.NodeType ==
XslNodeType
.Param);
1869
if (varPar.NodeType ==
XslNodeType
.Variable) {
1895
Debug.Assert(varPar.NodeType ==
XslNodeType
.Variable || varPar.NodeType ==
XslNodeType
.Param);
2100
node.NodeType ==
XslNodeType
.ApplyTemplates && sheet is RootLevel ||
2101
node.NodeType ==
XslNodeType
.ApplyImports && sheet is Stylesheet
2151
Debug.Assert(actualArgs[actArg].NodeType ==
XslNodeType
.WithParam, "All Sorts was removed in CompileSorts()");
2218
Debug.Assert(actualArgs[i].NodeType ==
XslNodeType
.WithParam, "All Sorts was removed in CompileSorts()");
System\Xml\Xsl\Xslt\Stylesheet.cs (2)
80
Debug.Assert(var.NodeType ==
XslNodeType
.Variable || var.NodeType ==
XslNodeType
.Param);
System\Xml\Xsl\Xslt\XslAst.cs (39)
77
public readonly
XslNodeType
NodeType;
86
public XslNode(
XslNodeType
nodeType, QilName name, object arg, XslVersion xslVer) {
93
public XslNode(
XslNodeType
nodeType) {
172
public ProtoTemplate(
XslNodeType
nt, QilName name, XslVersion xslVer) : base(nt, name, null, xslVer) {}
185
public AttributeSet(QilName name, XslVersion xslVer) : base(
XslNodeType
.AttributeSet, name, xslVer) {}
196
Debug.Assert(node != null && node.NodeType ==
XslNodeType
.List);
213
: base(
XslNodeType
.Template, name, xslVer)
252
public VarPar(
XslNodeType
nt, QilName name, string select, XslVersion xslVer) : base(nt, name, select, xslVer) {}
262
: base(
XslNodeType
.Sort, null, select, xslVer)
284
: base(
XslNodeType
.Key, name, null, xslVer)
332
XslVersion xslVer) : base(
XslNodeType
.Number, null, null, xslVer)
350
public NodeCtor(
XslNodeType
nt, string nameAvt, string nsAvt, XslVersion xslVer)
362
: base(
XslNodeType
.Text, null, data, xslVer)
372
public XslNodeEx(
XslNodeType
t, QilName name, object arg, ContextInfo ctxInfo, XslVersion xslVer)
379
public XslNodeEx(
XslNodeType
t, QilName name, object arg, XslVersion xslVer) : base(t, name, arg, xslVer) {
384
public static XslNode XslNode(
XslNodeType
nodeType, QilName name, string arg, XslVersion xslVer) {
389
return new XslNode(
XslNodeType
.ApplyImports, mode, sheet, xslVer);
393
return new XslNodeEx(
XslNodeType
.ApplyTemplates, mode, select, ctxInfo, xslVer);
398
return new XslNodeEx(
XslNodeType
.ApplyTemplates, mode, /*select:*/null, XslVersion.Current);
402
return new NodeCtor(
XslNodeType
.Attribute, nameAvt, nsAvt, xslVer);
410
return new XslNodeEx(
XslNodeType
.CallTemplate, name, null, ctxInfo, XslVersion.Current);
414
return new XslNode(
XslNodeType
.Choose);
418
return new XslNode(
XslNodeType
.Comment);
422
return new XslNode(
XslNodeType
.Copy);
426
return new XslNode(
XslNodeType
.CopyOf, null, select, xslVer);
430
return new NodeCtor(
XslNodeType
.Element, nameAvt, nsAvt, xslVer);
434
return new XslNode(
XslNodeType
.Error, null, message, XslVersion.Current);
438
return new XslNodeEx(
XslNodeType
.ForEach, null, select, ctxInfo, xslVer);
442
return new XslNode(
XslNodeType
.If, null, test, xslVer);
450
return new XslNode(
XslNodeType
.List);
454
return new XslNode(
XslNodeType
.LiteralAttribute, name, value, xslVer);
458
return new XslNode(
XslNodeType
.LiteralElement, name, null, XslVersion.Current);
462
return new XslNode(
XslNodeType
.Message, null, term, XslVersion.Current);
466
return new XslNode(
XslNodeType
.Nop);
477
return new XslNode(
XslNodeType
.Otherwise);
481
return new XslNode(
XslNodeType
.PI, null, name, xslVer);
501
return new XslNode(
XslNodeType
.UseAttributeSet, name, null, XslVersion.Current);
504
public static VarPar VarPar(
XslNodeType
nt, QilName name, string select, XslVersion xslVer) {
509
return VarPar(
XslNodeType
.WithParam, name, /*select*/null, XslVersion.Current);
System\Xml\Xsl\Xslt\XslAstAnalyzer.cs (41)
166
if (instr.NodeType ==
XslNodeType
.Text) {
169
if (instr.NodeType !=
XslNodeType
.Param) {
336
if (currentTemplate != null && (node.NodeType ==
XslNodeType
.Variable || node.NodeType ==
XslNodeType
.Param)) {
383
if (instr.NodeType ==
XslNodeType
.WithParam) {
438
Debug.Assert(instr.NodeType ==
XslNodeType
.WithParam);
451
if (instr.NodeType ==
XslNodeType
.Text) {
454
if (instr.NodeType !=
XslNodeType
.Param) {
524
if (child.NodeType ==
XslNodeType
.Sort) {
677
if (typeDonor != null && node.NodeType !=
XslNodeType
.WithParam) {
1149
(1 << (int)
XslNodeType
.Param) |
1150
(1 << (int)
XslNodeType
.Variable) |
1151
(1 << (int)
XslNodeType
.WithParam) |
1152
(1 << (int)
XslNodeType
.ApplyTemplates) |
1153
(1 << (int)
XslNodeType
.CopyOf) |
1154
(1 << (int)
XslNodeType
.ForEach) |
1155
(1 << (int)
XslNodeType
.If) |
1157
(1 << (int)
XslNodeType
.Sort) |
1158
(1 << (int)
XslNodeType
.ValueOf) |
1159
(1 << (int)
XslNodeType
.ValueOfDoe);
1163
(1 << (int)
XslNodeType
.Attribute) |
1164
(1 << (int)
XslNodeType
.Comment) |
1165
(1 << (int)
XslNodeType
.Copy) |
1166
(1 << (int)
XslNodeType
.Element) |
1167
(1 << (int)
XslNodeType
.ForEach) |
1168
(1 << (int)
XslNodeType
.If) | // also used for xsl:when
1169
(1 << (int)
XslNodeType
.Message) |
1170
(1 << (int)
XslNodeType
.Otherwise) |
1171
(1 << (int)
XslNodeType
.Param) |
1172
(1 << (int)
XslNodeType
.PI) |
1173
(1 << (int)
XslNodeType
.Template) |
1174
(1 << (int)
XslNodeType
.Variable) |
1175
(1 << (int)
XslNodeType
.WithParam) |
1176
(1 << (int)
XslNodeType
.LiteralAttribute) |
1177
(1 << (int)
XslNodeType
.LiteralElement);
1180
private static bool NodeTypeTest(
XslNodeType
nodetype, int flags) {
1227
if (child.NodeType ==
XslNodeType
.Variable || child.NodeType ==
XslNodeType
.Param) {
1230
if (child.NodeType ==
XslNodeType
.Param) {
1294
var withparam = AstFactory.VarPar(
XslNodeType
.WithParam, paramname, '$' + paramname.QualifiedName, XslVersion.Current);
1300
var param = AstFactory.VarPar(
XslNodeType
.Param, paramname, null, XslVersion.Current);
System\Xml\Xsl\Xslt\XsltLoader.cs (19)
344
LoadGlobalVariableOrParameter(ctxInfo.nsList,
XslNodeType
.Variable);
346
LoadGlobalVariableOrParameter(ctxInfo.nsList,
XslNodeType
.Param);
661
case
XslNodeType
.UseAttributeSet:
669
case
XslNodeType
.List:
922
private void LoadGlobalVariableOrParameter(NsDecl stylesheetNsList,
XslNodeType
nodeType) {
1715
return SetInfo(f.XslNode(doe ?
XslNodeType
.ValueOfDoe :
XslNodeType
.ValueOf, null, select, input.XslVersion),
1752
XslNodeType
nodeType = (
1753
Ref.Equal(localName, atoms.Variable ) ?
XslNodeType
.Variable :
1754
Ref.Equal(localName, atoms.Param ) ?
XslNodeType
.Param :
1755
Ref.Equal(localName, atoms.WithParam) ?
XslNodeType
.WithParam :
1756
XslNodeType
.Unknown
1758
Debug.Assert(nodeType !=
XslNodeType
.Unknown);
1761
nodeType ==
XslNodeType
.Variable ? variableAttributes :
1762
nodeType ==
XslNodeType
.Param ? paramAttributes :
1770
if (nodeType ==
XslNodeType
.Param && curFunction != null) {
1785
if (nodeType ==
XslNodeType
.Param && curTemplate == null) {
2346
Debug.Assert(withParam.NodeType ==
XslNodeType
.WithParam);
2348
if (node.NodeType ==
XslNodeType
.WithParam && node.Name.Equals(withParam.Name)) {
System\Xml\Xsl\Xslt\XslVisitor.cs (31)
13
case
XslNodeType
.ApplyImports : return VisitApplyImports ((XslNode) node);
14
case
XslNodeType
.ApplyTemplates : return VisitApplyTemplates ((XslNode) node);
15
case
XslNodeType
.Attribute : return VisitAttribute ((NodeCtor) node);
16
case
XslNodeType
.AttributeSet : return VisitAttributeSet ((AttributeSet)node);
17
case
XslNodeType
.CallTemplate : return VisitCallTemplate ((XslNode) node);
18
case
XslNodeType
.Choose : return VisitChoose ((XslNode) node);
19
case
XslNodeType
.Comment : return VisitComment ((XslNode) node);
20
case
XslNodeType
.Copy : return VisitCopy ((XslNode) node);
21
case
XslNodeType
.CopyOf : return VisitCopyOf ((XslNode) node);
22
case
XslNodeType
.Element : return VisitElement ((NodeCtor) node);
23
case
XslNodeType
.Error : return VisitError ((XslNode) node);
24
case
XslNodeType
.ForEach : return VisitForEach ((XslNode) node);
25
case
XslNodeType
.If : return VisitIf ((XslNode) node);
26
case
XslNodeType
.Key : return VisitKey ((Key) node);
27
case
XslNodeType
.List : return VisitList ((XslNode) node);
28
case
XslNodeType
.LiteralAttribute : return VisitLiteralAttribute((XslNode) node);
29
case
XslNodeType
.LiteralElement : return VisitLiteralElement ((XslNode) node);
30
case
XslNodeType
.Message : return VisitMessage ((XslNode) node);
31
case
XslNodeType
.Nop : return VisitNop ((XslNode) node);
32
case
XslNodeType
.Number : return VisitNumber ((Number) node);
33
case
XslNodeType
.Otherwise : return VisitOtherwise ((XslNode) node);
34
case
XslNodeType
.Param : return VisitParam ((VarPar) node);
35
case
XslNodeType
.PI : return VisitPI ((XslNode) node);
36
case
XslNodeType
.Sort : return VisitSort ((Sort) node);
37
case
XslNodeType
.Template : return VisitTemplate ((Template) node);
38
case
XslNodeType
.Text : return VisitText ((Text) node);
39
case
XslNodeType
.UseAttributeSet : return VisitUseAttributeSet ((XslNode) node);
40
case
XslNodeType
.ValueOf : return VisitValueOf ((XslNode) node);
41
case
XslNodeType
.ValueOfDoe : return VisitValueOfDoe ((XslNode) node);
42
case
XslNodeType
.Variable : return VisitVariable ((VarPar) node);
43
case
XslNodeType
.WithParam : return VisitWithParam ((VarPar) node);