44 references to Variable
System.Private.Xml (44)
System\Xml\Xsl\IlGen\TailCallAnalyzer.cs (2)
53
if (ndLoop.
Variable
.NodeType == QilNodeType.Let || !ndLoop.
Variable
.Binding!.XmlType!.MaybeMany)
System\Xml\Xsl\IlGen\XmlIlVisitor.cs (13)
1873
StartBinding(ndLoop.
Variable
);
1878
EndBinding(ndLoop.
Variable
);
1894
StartBinding(ndFilter.
Variable
);
1905
EndBinding(ndFilter.
Variable
);
2265
Debug.Assert(ndSort.
Variable
.NodeType == QilNodeType.For);
2285
StartBinding(ndSort.
Variable
);
2290
_iterCurr.EnsureItemStorageType(ndSort.
Variable
.XmlType!, GetItemStorageType(ndSort.
Variable
));
2317
EndBinding(ndSort.
Variable
);
2318
EndNestedIterator(ndSort.
Variable
);
4000
StartBinding(ndLoop.
Variable
);
4001
EndBinding(ndLoop.
Variable
);
4002
EndNestedIterator(ndLoop.
Variable
);
System\Xml\Xsl\QIL\QilScopedVisitor.cs (2)
58
BeginScope(((QilLoop)node).
Variable
);
89
EndScope(((QilLoop)node).
Variable
);
System\Xml\Xsl\QIL\QilTypeChecker.cs (10)
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");
612
XmlQueryType? filterType = FindFilterType(node.
Variable
, node.Body);
616
return XmlQueryTypeFactory.AtMost(node.
Variable
.Binding!.XmlType!, node.
Variable
.Binding.XmlType!.Cardinality);
627
XmlQueryType varType = node.
Variable
.Binding!.XmlType!;
System\Xml\Xsl\Xslt\KeyMatchBuilder.cs (7)
101
if (n.
Variable
.Binding!.NodeType == QilNodeType.Root || n.
Variable
.Binding.NodeType == QilNodeType.Deref)
106
if (n.
Variable
.Binding.NodeType == QilNodeType.Content)
109
QilUnary content = (QilUnary)n.
Variable
.Binding;
113
n.
Variable
.Binding = f.Loop(it, content);
116
n.
Variable
.Binding = Visit(n.
Variable
.Binding);
System\Xml\Xsl\Xslt\MatcherBuilder.cs (1)
129
_iterator = filter.
Variable
;
System\Xml\Xsl\Xslt\QilGenerator.cs (1)
1832
_refReplacer.Replace(filter.Body, filter.
Variable
, testNode),
System\Xml\Xsl\Xslt\XPathPatternBuilder.cs (8)
53
Debug.Assert(filter.
Variable
.XmlType!.IsSubtypeOf(T.NodeNotRtf));
54
Debug.Assert(filter.
Variable
.Binding!.NodeType == QilNodeType.Unknown); // fixupNode
61
filter.
Variable
.Binding = newBinding;
217
FixupFilterBinding(parentFilter, ancestor ? _f.Ancestor(lastParent.
Variable
) : _f.Parent(lastParent.
Variable
));
244
QilIterator current = nodeFilter.
Variable
;
265
siblingFilter.
Variable
.Binding = sibling;
377
Debug.Assert(context.
Variable
.NodeType == QilNodeType.For, "It shouldn't be Let, becaus predicates in PatternBuilder don't produce cached tuples.");