8 instantiations of Function
dotnet-svcutil-lib (8)
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\XPathParser.cs (8)
552arg = new Function(Function.FunctionType.FuncString, arg); 584arg = new Function(Function.FunctionType.FuncString, arg); 587arg = new Function(Function.FunctionType.FuncNumber, arg); 590arg = new Function(Function.FunctionType.FuncBoolean, arg); 597return new Function(pi.FType, argList); 600return new Function(prefix, name, argList); 681return new Function(pi.FType, argList); 695return new Function("", "key", argList);
64 references to Function
dotnet-svcutil-lib (64)
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\BooleanExpr.cs (2)
26opnd1 = new BooleanFunctions(Function.FunctionType.FuncBoolean, opnd1); 30opnd2 = new BooleanFunctions(Function.FunctionType.FuncBoolean, opnd2);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\BooleanFunctions.cs (1)
13using FT = MS.Internal.Xml.XPath.Function.FunctionType;
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\NodeFunctions.cs (2)
13using FT = MS.Internal.Xml.XPath.Function.FunctionType; 103public override XPathResultType StaticType { get { return Function.ReturnTypes[(int)_funcType]; } }
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\NumberFunctions.cs (1)
14using FT = MS.Internal.Xml.XPath.Function.FunctionType;
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\NumericExpr.cs (2)
30opnd1 = new NumberFunctions(Function.FunctionType.FuncNumber, opnd1); 34opnd2 = new NumberFunctions(Function.FunctionType.FuncNumber, opnd2);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\querybuilder.cs (4)
13using FT = Function.FunctionType; 354private Query ProcessFunction(Function root, out Props props) 413return new NumberFunctions(Function.FunctionType.FuncNumber, null); 487result = ProcessFunction((Function)root, out props);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\SortQuery.cs (1)
189evalQuery = new StringFunctions(Function.FunctionType.FuncString, new Query[] { evalQuery });
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\StringFunctions.cs (15)
18private Function.FunctionType _funcType; 21public StringFunctions(Function.FunctionType funcType, IList<Query> argList) 52case Function.FunctionType.FuncString: return toString(nodeIterator); 53case Function.FunctionType.FuncConcat: return Concat(nodeIterator); 54case Function.FunctionType.FuncStartsWith: return StartsWith(nodeIterator); 55case Function.FunctionType.FuncContains: return Contains(nodeIterator); 56case Function.FunctionType.FuncSubstringBefore: return SubstringBefore(nodeIterator); 57case Function.FunctionType.FuncSubstringAfter: return SubstringAfter(nodeIterator); 58case Function.FunctionType.FuncSubstring: return Substring(nodeIterator); 59case Function.FunctionType.FuncStringLength: return StringLength(nodeIterator); 60case Function.FunctionType.FuncNormalize: return Normalize(nodeIterator); 61case Function.FunctionType.FuncTranslate: return Translate(nodeIterator); 105if (_funcType == Function.FunctionType.FuncStringLength) 110_funcType == Function.FunctionType.FuncStartsWith || 111_funcType == Function.FunctionType.FuncContains
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\XPathParser.cs (36)
545if (pi.FType == Function.FunctionType.FuncConcat) 552arg = new Function(Function.FunctionType.FuncString, arg); 578if (!(arg is Variable) && !(arg is Function && arg.ReturnType == XPathResultType.Any)) 584arg = new Function(Function.FunctionType.FuncString, arg); 587arg = new Function(Function.FunctionType.FuncNumber, arg); 590arg = new Function(Function.FunctionType.FuncBoolean, arg); 805private Function.FunctionType _ftype; 810public Function.FunctionType FType { get { return _ftype; } } 815internal ParamInfo(Function.FunctionType ftype, int minargs, int maxargs, XPathResultType[] argTypes) 828table.Add("last", new ParamInfo(Function.FunctionType.FuncLast, 0, 0, s_temparray1)); 829table.Add("position", new ParamInfo(Function.FunctionType.FuncPosition, 0, 0, s_temparray1)); 830table.Add("name", new ParamInfo(Function.FunctionType.FuncName, 0, 1, s_temparray2)); 831table.Add("namespace-uri", new ParamInfo(Function.FunctionType.FuncNameSpaceUri, 0, 1, s_temparray2)); 832table.Add("local-name", new ParamInfo(Function.FunctionType.FuncLocalName, 0, 1, s_temparray2)); 833table.Add("count", new ParamInfo(Function.FunctionType.FuncCount, 1, 1, s_temparray2)); 834table.Add("id", new ParamInfo(Function.FunctionType.FuncID, 1, 1, s_temparray3)); 835table.Add("string", new ParamInfo(Function.FunctionType.FuncString, 0, 1, s_temparray3)); 836table.Add("concat", new ParamInfo(Function.FunctionType.FuncConcat, 2, 100, s_temparray4)); 837table.Add("starts-with", new ParamInfo(Function.FunctionType.FuncStartsWith, 2, 2, s_temparray5)); 838table.Add("contains", new ParamInfo(Function.FunctionType.FuncContains, 2, 2, s_temparray5)); 839table.Add("substring-before", new ParamInfo(Function.FunctionType.FuncSubstringBefore, 2, 2, s_temparray5)); 840table.Add("substring-after", new ParamInfo(Function.FunctionType.FuncSubstringAfter, 2, 2, s_temparray5)); 841table.Add("substring", new ParamInfo(Function.FunctionType.FuncSubstring, 2, 3, s_temparray6)); 842table.Add("string-length", new ParamInfo(Function.FunctionType.FuncStringLength, 0, 1, s_temparray4)); 843table.Add("normalize-space", new ParamInfo(Function.FunctionType.FuncNormalize, 0, 1, s_temparray4)); 844table.Add("translate", new ParamInfo(Function.FunctionType.FuncTranslate, 3, 3, s_temparray7)); 845table.Add("boolean", new ParamInfo(Function.FunctionType.FuncBoolean, 1, 1, s_temparray3)); 846table.Add("not", new ParamInfo(Function.FunctionType.FuncNot, 1, 1, s_temparray8)); 847table.Add("true", new ParamInfo(Function.FunctionType.FuncTrue, 0, 0, s_temparray8)); 848table.Add("false", new ParamInfo(Function.FunctionType.FuncFalse, 0, 0, s_temparray8)); 849table.Add("lang", new ParamInfo(Function.FunctionType.FuncLang, 1, 1, s_temparray4)); 850table.Add("number", new ParamInfo(Function.FunctionType.FuncNumber, 0, 1, s_temparray3)); 851table.Add("sum", new ParamInfo(Function.FunctionType.FuncSum, 1, 1, s_temparray2)); 852table.Add("floor", new ParamInfo(Function.FunctionType.FuncFloor, 1, 1, s_temparray9)); 853table.Add("ceiling", new ParamInfo(Function.FunctionType.FuncCeiling, 1, 1, s_temparray9)); 854table.Add("round", new ParamInfo(Function.FunctionType.FuncRound, 1, 1, s_temparray9));