System\Xml\XPath\Internal\XPathAncestorIterator.cs (2)
10public XPathAncestorIterator(XPathNavigator nav, XPathNodeType type, bool matchSelf) : base(nav, type, matchSelf) { }
11public XPathAncestorIterator(XPathNavigator nav, string name, string namespaceURI, bool matchSelf) : base(nav, name, namespaceURI, matchSelf) { }
System\Xml\XPath\Internal\XPathDescendantIterator.cs (2)
12public XPathDescendantIterator(XPathNavigator nav, XPathNodeType type, bool matchSelf) : base(nav, type, matchSelf) { }
13public XPathDescendantIterator(XPathNavigator nav, string name, string namespaceURI, bool matchSelf) : base(nav, name, namespaceURI, matchSelf) { }
System\Xml\Xsl\IlGen\GenerateHelper.cs (20)
99if (storageType == typeof(XPathNavigator))
146else if (storageType != typeof(XPathItem) && storageType != typeof(XPathNavigator))
290public static readonly MethodInfo QNameEqualLit = typeof(XmlQueryRuntime).GetMethod("IsQNameEqual", new[] { typeof(XPathNavigator), typeof(int), typeof(int) })!;
291public static readonly MethodInfo QNameEqualNav = typeof(XmlQueryRuntime).GetMethod("IsQNameEqual", new[] { typeof(XPathNavigator), typeof(XPathNavigator) })!;
324public static readonly MethodInfo NavClone = typeof(XPathNavigator).GetMethod("Clone")!;
325public static readonly MethodInfo NavLocalName = typeof(XPathNavigator).GetMethod("get_LocalName")!;
326public static readonly MethodInfo NavMoveAttr = typeof(XPathNavigator).GetMethod("MoveToAttribute", new[] { typeof(string), typeof(string) })!;
327public static readonly MethodInfo NavMoveId = typeof(XPathNavigator).GetMethod("MoveToId")!;
328public static readonly MethodInfo NavMoveParent = typeof(XPathNavigator).GetMethod("MoveToParent")!;
329public static readonly MethodInfo NavMoveRoot = typeof(XPathNavigator).GetMethod("MoveToRoot")!;
330public static readonly MethodInfo NavMoveTo = typeof(XPathNavigator).GetMethod("MoveTo")!;
331public static readonly MethodInfo NavNmsp = typeof(XPathNavigator).GetMethod("get_NamespaceURI")!;
332public static readonly MethodInfo NavPrefix = typeof(XPathNavigator).GetMethod("get_Prefix")!;
333public static readonly MethodInfo NavSamePos = typeof(XPathNavigator).GetMethod("IsSamePosition")!;
334public static readonly MethodInfo NavType = typeof(XPathNavigator).GetMethod("get_NodeType")!;
363public static readonly MethodInfo StartElemCopyName = typeof(XmlQueryOutput).GetMethod("WriteStartElementComputed", new[] { typeof(XPathNavigator) })!;
367public static readonly MethodInfo StartAttrCopyName = typeof(XmlQueryOutput).GetMethod("WriteStartAttributeComputed", new[] { typeof(XPathNavigator) })!;
454{ typeof(XPathNavigator), new XmlILStorageMethods(typeof(XPathNavigator)) },
System\Xml\Xsl\IlGen\XmlIlTypeHelper.cs (18)
33if (!qyTyp.IsStrict && storageType != typeof(XPathNavigator))
41if (!qyTyp.IsStrict && storageType != typeof(IList<XPathNavigator>))
51typeof(XPathNavigator), // XmlTypeCode.Node
52typeof(XPathNavigator), // XmlTypeCode.Document
53typeof(XPathNavigator), // XmlTypeCode.Element
54typeof(XPathNavigator), // XmlTypeCode.Attribute
55typeof(XPathNavigator), // XmlTypeCode.Namespace
56typeof(XPathNavigator), // XmlTypeCode.ProcessingInstruction
57typeof(XPathNavigator), // XmlTypeCode.Comment
58typeof(XPathNavigator), // XmlTypeCode.Text
109typeof(IList<XPathNavigator>), // XmlTypeCode.Node
110typeof(IList<XPathNavigator>), // XmlTypeCode.Document
111typeof(IList<XPathNavigator>), // XmlTypeCode.Element
112typeof(IList<XPathNavigator>), // XmlTypeCode.Attribute
113typeof(IList<XPathNavigator>), // XmlTypeCode.Namespace
114typeof(IList<XPathNavigator>), // XmlTypeCode.ProcessingInstruction
115typeof(IList<XPathNavigator>), // XmlTypeCode.Comment
116typeof(IList<XPathNavigator>), // XmlTypeCode.Text
System\Xml\Xsl\IlGen\XmlIlVisitor.cs (30)
411locNav = _helper.DeclareLocal("$$$navDoc", typeof(XPathNavigator));
418_iterCurr.Storage = StorageDescriptor.Local(locNav, typeof(XPathNavigator), false);
1282locNav = _helper.DeclareLocal("$$$navSet", typeof(XPathNavigator));
1332_iterCurr.Storage = StorageDescriptor.Current(locIter, methCurrent, typeof(XPathNavigator));
1337_iterCurr.SetIterator(lblNext, StorageDescriptor.Current(locIter, methCurrent, typeof(XPathNavigator)));
1958GenerateSimpleIterator(typeof(XPathNavigator), locIter, XmlILMethods.ElemContentNext, XmlILMethods.ElemContentCurrent);
1977GenerateSimpleIterator(typeof(XPathNavigator), locIter, XmlILMethods.KindContentNext, XmlILMethods.KindContentCurrent);
2076_iterCurr.EnsureItemStorageType(nodes.XmlType!, typeof(XPathNavigator));
2094_iterCurr.Storage = StorageDescriptor.Stack(typeof(XPathNavigator), true);
2398NestedVisitEnsureCache(ndDod.Child, typeof(XPathNavigator));
2536_iterCurr.Storage = StorageDescriptor.Stack(typeof(XPathNavigator), true);
2603LocalBuilder locNav = _helper.DeclareLocal("$$$navAttr", typeof(XPathNavigator));
2615_iterCurr.Storage = StorageDescriptor.Local(locNav, typeof(XPathNavigator), false);
2625LocalBuilder locNav = _helper.DeclareLocal("$$$navParent", typeof(XPathNavigator));
2635_iterCurr.Storage = StorageDescriptor.Local(locNav, typeof(XPathNavigator), false);
2645LocalBuilder locNav = _helper.DeclareLocal("$$$navRoot", typeof(XPathNavigator));
2654_iterCurr.Storage = StorageDescriptor.Local(locNav, typeof(XPathNavigator), false);
2669_iterCurr.Storage = StorageDescriptor.Stack(typeof(XPathNavigator), false);
2767GenerateSimpleIterator(typeof(XPathNavigator), locIter, XmlILMethods.IdNext, XmlILMethods.IdCurrent);
3063_iterCurr.Storage = StorageDescriptor.Stack(typeof(XPathNavigator), false);
3445NestedVisitEnsureStack(ndVal.Child, typeof(XPathNavigator), false);
3520NestedVisitEnsureStack(ndGenId.Child, typeof(XPathNavigator), false);
3533_iterCurr.EnsureItemStorageType(ndGenId.Child.XmlType, typeof(XPathNavigator));
3932GenerateSimpleIterator(typeof(XPathNavigator), locIter, methNext, methCurrent);
3961GenerateSimpleIterator(typeof(XPathNavigator), locIter, methNext, methCurrent);
4005GenerateContainerIterator(ndDod, locIter, lblOnEndNested, methNext, methCurrent, typeof(XPathNavigator));
4861if (_iterCurr.Storage.ItemStorageType == typeof(XPathNavigator) || itemStorageType == typeof(XPathNavigator))
4871cacheType = (GetItemStorageType(nd) == typeof(XPathNavigator)) ? typeof(XPathNavigator) : itemStorageType;
System\Xml\Xsl\Runtime\TreeIterators.cs (39)
17private XPathNavigator? _navCurrent, _navEnd;
23public void Create(XPathNavigator input, XmlNavigatorFilter filter, bool orSelf)
61public XPathNavigator Current
76private XPathNavigator _navCurrent, _navRoot, _navEnd;
102public IteratorResult MoveNext(XPathNavigator input)
138public XPathNavigator Current
151private XPathNavigator _navCurrent;
157public void Create(XPathNavigator context, XmlNavigatorFilter filter)
185public XPathNavigator Current
200private XPathNavigator _navCurrent;
206public void Create(XPathNavigator context, XmlNavigatorFilter filter, bool orSelf)
243public XPathNavigator Current
257private XPathNavigator _navCurrent;
262public void Create(XPathNavigator context, XmlNavigatorFilter filter, bool orSelf)
288public XPathNavigator Current
304private XPathNavigator _navCurrent;
310public void Create(XPathNavigator input, XmlNavigatorFilter filter)
339public XPathNavigator Current
348internal static bool MoveFirst(XmlNavigatorFilter filter, XPathNavigator nav)
398private XPathNavigator _navCurrent, _navNext;
425public IteratorResult MoveNext(XPathNavigator input)
486public XPathNavigator Current
497XPathNavigator navTemp;
541private XPathNavigator _navCurrent;
546public void Create(XPathNavigator context, XmlNavigatorFilter filter)
581public XPathNavigator Current
597private XPathNavigator _navCurrent;
602public void Create(XPathNavigator context, XmlNavigatorFilter filter)
628public XPathNavigator Current
642private XPathNavigator _navCurrent;
648public void Create(XPathNavigator input, XmlNavigatorFilter filter)
687public XPathNavigator Current
720private XPathNavigator _navCurrent, _navNext;
747public IteratorResult MoveNext(XPathNavigator input)
823public XPathNavigator Current
863private XPathNavigator _navCurrent, _navEnd;
877public void Create(XPathNavigator start, XmlNavigatorFilter filter, XPathNavigator end)
937public XPathNavigator Current
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (33)
430public bool IsQNameEqual(XPathNavigator n1, XPathNavigator n2)
444public bool IsQNameEqual(XPathNavigator navigator, int indexLocalName, int indexNamespaceUri)
506else if (destinationType == typeof(XPathNavigator[]))
509IList<XPathNavigator> seq = (IList<XPathNavigator>)value;
510XPathNavigator[] navArray = new XPathNavigator[seq.Count];
667if (value is XPathNavigator navigator)
688private static XPathNavigator EnsureNavigator(object? value)
690XPathNavigator? nav = value as XPathNavigator;
763switch (((XPathNavigator)item).NodeType)
795XPathNavigator nav = (XPathNavigator)item;
850public int ComparePosition(XPathNavigator navigatorThis, XPathNavigator navigatorThat)
858public IList<XPathNavigator> DocOrderDistinct(IList<XPathNavigator> seq)
872public string GenerateId(XPathNavigator navigator)
886public bool FindIndex(XPathNavigator context, int indexId, out XmlILIndex index)
888XPathNavigator navRoot;
906if (((XPathNavigator)docIndexes[i]!).IsSamePosition(navRoot))
923public void AddNewIndex(XPathNavigator context, int indexId, XmlILIndex index)
925XPathNavigator navRoot;
1012public XPathNavigator EndRtfConstruction(out XmlQueryOutput output)
1030public XPathNavigator TextRtfConstruction(string text, string baseUri)
1059internal static XPathNavigator SyncToNavigator(XPathNavigator? navigatorThis, XPathNavigator navigatorThat)
1070public static int OnCurrentNodeChanged(XPathNavigator currentNode)
1076private static bool IsInheritedNamespace(XPathNavigator node)
1079XPathNavigator nav = node.Clone();
System\Xml\Xsl\XsltOld\XsltCompileContext.cs (32)
104public override bool PreserveWhitespace(XPathNavigator node)
293private Hashtable BuildKeyTable(Key key, XPathNavigator root)
305XPathNavigator node = sel.Current!;
319private static void AddKeyValue(Hashtable keyTable, string key, XPathNavigator value, bool checkDuplicates)
330value.ComparePosition((XPathNavigator?)list[list.Count - 1]) != XmlNodeOrder.Before,
337if (value.ComparePosition((XPathNavigator?)list[list.Count - 1]) == XmlNodeOrder.Same)
345value.ComparePosition((XPathNavigator?)list[list.Count - 1]) != XmlNodeOrder.Same,
353private static void EvaluateKey(XPathNavigator? node, Query matchExpr, string matchStr, Query useExpr, Hashtable keyTable)
496XPathNavigator? nav = _processor!.Current;
553if (typeof(XPathNavigator).IsAssignableFrom(type) || typeof(IXPathNavigable).IsAssignableFrom(type))
631public abstract object Invoke(XsltContext xsltContext, object[] args, XPathNavigator docContext);
644public static XPathNavigator ToNavigator(object argument)
646XPathNavigator? nav = argument as XPathNavigator;
685XPathNavigator? nav = argument as XPathNavigator;
700XPathNavigator? nav = argument as XPathNavigator;
745public override object Invoke(XsltContext xsltContext, object[] args, XPathNavigator docContext)
754public override object Invoke(XsltContext xsltContext, object[] args, XPathNavigator docContext)
763public override object Invoke(XsltContext xsltContext, object[] args, XPathNavigator docContext)
788public override object Invoke(XsltContext xsltContext, object[] args, XPathNavigator docContext)
798public override object Invoke(XsltContext xsltContext, object[] args, XPathNavigator docContext)
808public override object Invoke(XsltContext xsltContext, object[] args, XPathNavigator docContext)
820public override object Invoke(XsltContext xsltContext, object[] args, XPathNavigator docContext)
856public override object Invoke(XsltContext xsltContext, object[] args, XPathNavigator docContext)
865XPathNavigator root = docContext.Clone();
900else if (resultCollection[0] is XPathNavigator)
925Debug.Assert(resultCollection[0] is XPathNavigator);
938public override object Invoke(XsltContext xsltContext, object[] args, XPathNavigator docContext)
948public override object Invoke(XsltContext xsltContext, object[] args, XPathNavigator docContext)
993public override object Invoke(XsltContext xsltContext, object[] args, XPathNavigator docContext)
System\Xml\Xslt\XslTransform.cs (11)
72public void Load(XPathNavigator stylesheet)
79public void Load(XPathNavigator stylesheet, XmlResolver? resolver)
116public XmlReader Transform(XPathNavigator input, XsltArgumentList? args, XmlResolver? resolver)
123public XmlReader Transform(XPathNavigator input, XsltArgumentList? args)
128public void Transform(XPathNavigator input, XsltArgumentList? args, XmlWriter output, XmlResolver? resolver)
135public void Transform(XPathNavigator input, XsltArgumentList? args, XmlWriter output)
139public void Transform(XPathNavigator input, XsltArgumentList? args, Stream output, XmlResolver? resolver)
146public void Transform(XPathNavigator input, XsltArgumentList? args, Stream output)
151public void Transform(XPathNavigator input, XsltArgumentList? args, TextWriter output, XmlResolver? resolver)
158public void Transform(XPathNavigator input, XsltArgumentList? args, TextWriter output)
243private void Compile(XPathNavigator stylesheet, XmlResolver? resolver)