118 references to FunctionType
dotnet-svcutil-lib (118)
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 (8)
13using FT = MS.Internal.Xml.XPath.Function.FunctionType; 18private FT _funcType; 20public BooleanFunctions(FT funcType, Query arg) 43case FT.FuncBoolean: return toBoolean(nodeIterator); 44case FT.FuncNot: return Not(nodeIterator); 45case FT.FuncTrue: return true; 46case FT.FuncFalse: return false; 47case FT.FuncLang: return Lang(nodeIterator);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\Function.cs (6)
47private FunctionType _functionType; 53public Function(FunctionType ftype, ArrayList argumentList) 61_functionType = FunctionType.FuncUserDefined; 67public Function(FunctionType ftype) 72public Function(FunctionType ftype, AstNode arg) 89public FunctionType TypeOfFunction { get { return _functionType; } }
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\NodeFunctions.cs (9)
13using FT = MS.Internal.Xml.XPath.Function.FunctionType; 18private FT _funcType; 21public NodeFunctions(FT funcType, Query arg) 52case FT.FuncPosition: 54case FT.FuncLast: 56case FT.FuncNameSpaceUri: 63case FT.FuncLocalName: 70case FT.FuncName: 77case FT.FuncCount:
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\NumberFunctions.cs (8)
14using FT = MS.Internal.Xml.XPath.Function.FunctionType; 19private FT _ftype; 21public NumberFunctions(FT ftype, Query arg) 53case FT.FuncNumber: return Number(nodeIterator); 54case FT.FuncSum: return Sum(nodeIterator); 55case FT.FuncFloor: return Floor(nodeIterator); 56case FT.FuncCeiling: return Ceiling(nodeIterator); 57case FT.FuncRound: return Round(nodeIterator);
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 (32)
13using FT = Function.FunctionType; 263prevCond = new LogicalExpr(Operator.Op.EQ, new NodeFunctions(FT.FuncPosition, null), prevCond); 360case FT.FuncLast: 364case FT.FuncPosition: 368case FT.FuncCount: 369return new NodeFunctions(FT.FuncCount, 372case FT.FuncID: 376case FT.FuncLocalName: 377case FT.FuncNameSpaceUri: 378case FT.FuncName: 389case FT.FuncString: 390case FT.FuncConcat: 391case FT.FuncStartsWith: 392case FT.FuncContains: 393case FT.FuncSubstringBefore: 394case FT.FuncSubstringAfter: 395case FT.FuncSubstring: 396case FT.FuncStringLength: 397case FT.FuncNormalize: 398case FT.FuncTranslate: 400case FT.FuncNumber: 401case FT.FuncSum: 402case FT.FuncFloor: 403case FT.FuncCeiling: 404case FT.FuncRound: 413return new NumberFunctions(Function.FunctionType.FuncNumber, null); 415case FT.FuncTrue: 416case FT.FuncFalse: 418case FT.FuncNot: 419case FT.FuncLang: 420case FT.FuncBoolean: 424case FT.FuncUserDefined:
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 (35)
545if (pi.FType == Function.FunctionType.FuncConcat) 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); 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));