1 write to _f
System.Private.Xml (1)
System\Xml\Xsl\XPath\XPathBuilder.cs (1)
58_f = _environment.Factory;
163 references to _f
System.Private.Xml (163)
System\Xml\Xsl\XPath\XPathBuilder.cs (163)
38XPathQilFactory IXPathEnvironment.Factory { get { return _f; } } 59this.fixupCurrent = _f.Unknown(T.NodeNotRtf); 60this.fixupPosition = _f.Unknown(T.DoubleX); 61this.fixupLast = _f.Unknown(T.DoubleX); 62_fixupVisitor = new FixupVisitor(_f, fixupCurrent, fixupPosition, fixupLast); 83result = _f.DocOrderDistinct(result); 105return _f.String(value); 110return _f.Double(value); 137left = _f.ConvertToBoolean(left); 138right = _f.ConvertToBoolean(right); 140op == XPathOperator.Or ? _f.Or(left, right) : 141/*default*/ _f.And(left, right) 149left = _f.ConvertToType(compType, left); 150right = _f.ConvertToType(compType, right); 154case XPathOperator.Eq: return _f.Eq(left, right); 155case XPathOperator.Ne: return _f.Ne(left, right); 156case XPathOperator.Lt: return _f.Lt(left, right); 157case XPathOperator.Le: return _f.Le(left, right); 158case XPathOperator.Gt: return _f.Gt(left, right); 159case XPathOperator.Ge: return _f.Ge(left, right); 177QilIterator it = _f.For(nodeset); 178return _f.Not(_f.IsEmpty(_f.Filter(it, CompareValues(op, _f.XPathNodeValue(it), val, compType)))); 207QilIterator leftEnd = _f.For(left); 208QilIterator rightEnd = _f.For(right); 209return _f.Not(_f.IsEmpty(_f.Loop(leftEnd, _f.Filter(rightEnd, CompareValues(op, _f.XPathNodeValue(leftEnd), _f.XPathNodeValue(rightEnd), compType))))); 220return _f.InvokeEqualityOperator(s_qilOperator[(int)op], left, right); 253return _f.InvokeRelationalOperator(s_qilOperator[(int)op], left, right); 279return _f.Negate(_f.ConvertToNumber(left)); 284left = _f.ConvertToNumber(left); 285right = _f.ConvertToNumber(right); 288case XPathOperator.Plus: return _f.Add(left, right); 289case XPathOperator.Minus: return _f.Subtract(left, right); 290case XPathOperator.Multiply: return _f.Multiply(left, right); 291case XPathOperator.Divide: return _f.Divide(left, right); 292case XPathOperator.Modulo: return _f.Modulo(left, right); 304return _f.EnsureNodeSet(right); 306left = _f.EnsureNodeSet(left); 307right = _f.EnsureNodeSet(right); 315return _f.Union(left, right); 337return _f.Sequence(); 344qilAxis = _f.Filter(itr = _f.For(qilAxis), _f.IsType(itr, T.NodeChoice(required))); 358filter.Body = _f.And(filter.Body, 359name != null && nsUri != null ? _f.Eq(_f.NameOf(itr), _f.QName(name, nsUri)) : // ns:bar || bar 360nsUri != null ? _f.Eq(_f.NamespaceUriOf(itr), _f.String(nsUri)) : // ns:* 361name != null ? _f.Eq(_f.LocalNameOf(itr), _f.String(name)) : // *:foo 362/*name == nsUri == null*/ _f.True() // * 368return _f.Filter(itr = _f.For(qilAxis), 369name != null && nsUri != null ? _f.Eq(_f.NameOf(itr), _f.QName(name, nsUri)) : // ns:bar || bar 370nsUri != null ? _f.Eq(_f.NamespaceUriOf(itr), _f.String(nsUri)) : // ns:* 371name != null ? _f.Eq(_f.LocalNameOf(itr), _f.String(name)) : // *:foo 372/*name == nsUri == null*/ _f.True() // * 397case XPathAxis.Ancestor: qilAxis = _f.Ancestor(currentNode); break; 398case XPathAxis.AncestorOrSelf: qilAxis = _f.AncestorOrSelf(currentNode); break; 399case XPathAxis.Attribute: qilAxis = _f.Content(currentNode); break; 400case XPathAxis.Child: qilAxis = _f.Content(currentNode); break; 401case XPathAxis.Descendant: qilAxis = _f.Descendant(currentNode); break; 402case XPathAxis.DescendantOrSelf: qilAxis = _f.DescendantOrSelf(currentNode); break; 403case XPathAxis.Following: qilAxis = _f.XPathFollowing(currentNode); break; 404case XPathAxis.FollowingSibling: qilAxis = _f.FollowingSibling(currentNode); break; 405case XPathAxis.Namespace: qilAxis = _f.XPathNamespace(currentNode); break; 406case XPathAxis.Parent: qilAxis = _f.Parent(currentNode); break; 407case XPathAxis.Preceding: qilAxis = _f.XPathPreceding(currentNode); break; 408case XPathAxis.PrecedingSibling: qilAxis = _f.PrecedingSibling(currentNode); break; 411case XPathAxis.Root: return _f.Root(currentNode); 424result = _f.BaseFactory.DocOrderDistinct(result); 442QilIterator leftIt = _f.For(_f.EnsureNodeSet(left)); 448return _f.DocOrderDistinct(_f.Loop(leftIt, right)); 466predicate = PredicateToBoolean(predicate, _f, this); 468return BuildOnePredicate(nodeset, predicate, isReverseStep, _f, _fixupVisitor, ref numFixupCurrent, ref numFixupPosition, ref numFixupLast); 567func.CastArguments(args, name, _f); 571case FuncId.Not: return _f.Not(args[0]); 574case FuncId.Count: return _f.XsltConvert(_f.Length(_f.DocOrderDistinct(args[0])), T.DoubleX); 575case FuncId.LocalName: return args.Count == 0 ? _f.LocalNameOf(GetCurrentNode()) : LocalNameOfFirstNode(args[0]); 576case FuncId.NamespaceUri: return args.Count == 0 ? _f.NamespaceUriOf(GetCurrentNode()) : NamespaceOfFirstNode(args[0]); 578case FuncId.String: return args.Count == 0 ? _f.XPathNodeValue(GetCurrentNode()) : _f.ConvertToString(args[0]); 579case FuncId.Number: return args.Count == 0 ? _f.XsltConvert(_f.XPathNodeValue(GetCurrentNode()), T.DoubleX) : _f.ConvertToNumber(args[0]); 580case FuncId.Boolean: return _f.ConvertToBoolean(args[0]); 581case FuncId.True: return _f.True(); 582case FuncId.False: return _f.False(); 583case FuncId.Id: return _f.DocOrderDistinct(_f.Id(GetCurrentNode(), args[0])); 584case FuncId.Concat: return _f.StrConcat(args); 585case FuncId.StartsWith: return _f.InvokeStartsWith(args[0], args[1]); 586case FuncId.Contains: return _f.InvokeContains(args[0], args[1]); 587case FuncId.SubstringBefore: return _f.InvokeSubstringBefore(args[0], args[1]); 588case FuncId.SubstringAfter: return _f.InvokeSubstringAfter(args[0], args[1]); 590return args.Count == 2 ? _f.InvokeSubstring(args[0], args[1]) : _f.InvokeSubstring(args[0], args[1], args[2]); 592return _f.XsltConvert(_f.StrLength(args.Count == 0 ? _f.XPathNodeValue(GetCurrentNode()) : args[0]), T.DoubleX); 594return _f.InvokeNormalizeSpace(args.Count == 0 ? _f.XPathNodeValue(GetCurrentNode()) : args[0]); 595case FuncId.Translate: return _f.InvokeTranslate(args[0], args[1], args[2]); 596case FuncId.Lang: return _f.InvokeLang(args[0], GetCurrentNode()); 597case FuncId.Sum: return Sum(_f.DocOrderDistinct(args[0])); 598case FuncId.Floor: return _f.InvokeFloor(args[0]); 599case FuncId.Ceiling: return _f.InvokeCeiling(args[0]); 600case FuncId.Round: return _f.InvokeRound(args[0]); 616return _f.LocalNameOf(arg); 621return _f.StrConcat(_f.Loop(i = _f.FirstNode(arg), _f.LocalNameOf(i))); 630return _f.NamespaceUriOf(arg); 635return _f.StrConcat(_f.Loop(i = _f.FirstNode(arg), _f.NamespaceUriOf(i))); 646return _f.Loop(p = _f.Let(_f.PrefixOf(arg)), _f.Loop(ln = _f.Let(_f.LocalNameOf(arg)), 647_f.Conditional(_f.Eq(_f.StrLength(p), _f.Int32(0)), ln, _f.StrConcat(p, _f.String(":"), ln) 652QilIterator let = _f.Let(arg); 653return _f.Loop(let, /*recursion:*/NameOf(let)); 667return _f.StrConcat(_f.Loop(i = _f.FirstNode(arg), NameOf(i))); 675return _f.Sum(_f.Sequence(_f.Double(0d), _f.Loop(i = _f.For(arg), _f.ConvertToNumber(i))));