308 references to ValueDataType
System.ServiceModel (308)
System\ServiceModel\Dispatcher\QueryBranchOp.cs (3)
161Fx.Assert(context.Values[i].IsType(ValueDataType.Boolean), ""); 375ValueDataType newType; 383internal TypecastOpcode(ValueDataType newType)
System\ServiceModel\Dispatcher\QueryCoreOp.cs (9)
252ValueDataType type; 266case ValueDataType.Boolean: 267case ValueDataType.Double: 268case ValueDataType.String: 269case ValueDataType.Sequence: 304case ValueDataType.Boolean: 308case ValueDataType.Double: 312case ValueDataType.String: 316case ValueDataType.Sequence:
System\ServiceModel\Dispatcher\QueryFunctions.cs (128)
239static ValueDataType[] emptyParams = new ValueDataType[0]; 242ValueDataType[] paramTypes; 243ValueDataType returnType; 245internal QueryFunction(string name, ValueDataType returnType) 250internal QueryFunction(string name, ValueDataType returnType, QueryFunctionFlag flags) 255internal QueryFunction(string name, ValueDataType returnType, ValueDataType[] paramTypes) 260internal QueryFunction(string name, ValueDataType returnType, ValueDataType[] paramTypes, QueryFunctionFlag flags) 271internal ValueDataType[] ParamTypes 279internal ValueDataType ReturnType 389new XPathFunction(XPathFunctionID.Boolean, "boolean", ValueDataType.Boolean, new ValueDataType[] { ValueDataType.None }), 390new XPathFunction(XPathFunctionID.False, "false", ValueDataType.Boolean), 391new XPathFunction(XPathFunctionID.True, "true", ValueDataType.Boolean), 392new XPathFunction(XPathFunctionID.Not, "not", ValueDataType.Boolean, new ValueDataType[] { ValueDataType.Boolean }), 393new XPathFunction(XPathFunctionID.Lang, "lang", ValueDataType.Boolean, new ValueDataType[] { ValueDataType.String }), 395new XPathFunction(XPathFunctionID.Number, "number", ValueDataType.Double, new ValueDataType[] { ValueDataType.None }), 396new XPathFunction(XPathFunctionID.NumberDefault, "number", ValueDataType.Double), 397new XPathFunction(XPathFunctionID.Sum, "sum", ValueDataType.Double, new ValueDataType[] { ValueDataType.Sequence }), 398new XPathFunction(XPathFunctionID.Floor, "floor", ValueDataType.Double, new ValueDataType[] { ValueDataType.Double }), 399new XPathFunction(XPathFunctionID.Ceiling, "ceiling", ValueDataType.Double, new ValueDataType[] { ValueDataType.Double }), 400new XPathFunction(XPathFunctionID.Round, "round", ValueDataType.Double, new ValueDataType[] { ValueDataType.Double }), 402new XPathFunction(XPathFunctionID.String, "string", ValueDataType.String, new ValueDataType[] { ValueDataType.None }), 403new XPathFunction(XPathFunctionID.StringDefault, "string", ValueDataType.String, QueryFunctionFlag.UsesContextNode), 404new XPathFunction(XPathFunctionID.ConcatTwo, "concat", ValueDataType.String, new ValueDataType[] { ValueDataType.String, ValueDataType.String }), 405new XPathFunction(XPathFunctionID.ConcatThree, "concat", ValueDataType.String, new ValueDataType[] { ValueDataType.String, ValueDataType.String, ValueDataType.String }), 406new XPathFunction(XPathFunctionID.ConcatFour, "concat", ValueDataType.String, new ValueDataType[] { ValueDataType.String, ValueDataType.String, ValueDataType.String, ValueDataType.String }), 407new XPathFunction(XPathFunctionID.StartsWith, "starts-with", ValueDataType.Boolean, new ValueDataType[] { ValueDataType.String, ValueDataType.String }), 408new XPathFunction(XPathFunctionID.NormalizeSpace, "normalize-space", ValueDataType.String, new ValueDataType[] { ValueDataType.String }), 409new XPathFunction(XPathFunctionID.NormalizeSpaceDefault, "normalize-space", ValueDataType.String, QueryFunctionFlag.UsesContextNode), 410new XPathFunction(XPathFunctionID.Contains, "contains", ValueDataType.Boolean, new ValueDataType[] { ValueDataType.String, ValueDataType.String }), 411new XPathFunction(XPathFunctionID.SubstringBefore, "substring-before", ValueDataType.String, new ValueDataType[] { ValueDataType.String, ValueDataType.String }), 412new XPathFunction(XPathFunctionID.SubstringAfter, "substring-after", ValueDataType.String, new ValueDataType[] { ValueDataType.String, ValueDataType.String }), 413new XPathFunction(XPathFunctionID.Substring, "substring", ValueDataType.String, new ValueDataType[] { ValueDataType.String, ValueDataType.Double }), 414new XPathFunction(XPathFunctionID.SubstringLimit, "substring", ValueDataType.String, new ValueDataType[] { ValueDataType.String, ValueDataType.Double, ValueDataType.Double }), 415new XPathFunction(XPathFunctionID.StringLength, "string-length", ValueDataType.Double, new ValueDataType[] { ValueDataType.String }), 416new XPathFunction(XPathFunctionID.StringLengthDefault, "string-length", ValueDataType.Double, QueryFunctionFlag.UsesContextNode), 417new XPathFunction(XPathFunctionID.Translate, "translate", ValueDataType.String, new ValueDataType[] { ValueDataType.String, ValueDataType.String, ValueDataType.String }), 419new XPathFunction(XPathFunctionID.Last, "last", ValueDataType.Double, QueryFunctionFlag.UsesContextNode), 420new XPathFunction(XPathFunctionID.Position, "position", ValueDataType.Double, QueryFunctionFlag.UsesContextNode), 421new XPathFunction(XPathFunctionID.Count, "count", ValueDataType.Double, new ValueDataType[] { ValueDataType.Sequence }), 422new XPathFunction(XPathFunctionID.LocalName, "local-name", ValueDataType.String, new ValueDataType[] { ValueDataType.Sequence }), 423new XPathFunction(XPathFunctionID.LocalNameDefault, "local-name", ValueDataType.String, QueryFunctionFlag.UsesContextNode), 424new XPathFunction(XPathFunctionID.Name, "name", ValueDataType.String, new ValueDataType[] { ValueDataType.Sequence }), 425new XPathFunction(XPathFunctionID.NameDefault, "name", ValueDataType.String, QueryFunctionFlag.UsesContextNode), 426new XPathFunction(XPathFunctionID.NamespaceUri, "namespace-uri", ValueDataType.String, new ValueDataType[] { ValueDataType.Sequence }), 427new XPathFunction(XPathFunctionID.NamespaceUriDefault, "namespace-uri", ValueDataType.String, QueryFunctionFlag.UsesContextNode) 469: base("concat", ValueDataType.String, ConcatFunction.MakeTypes(argCount)) 518internal static ValueDataType[] MakeTypes(int size) 520ValueDataType[] t = new ValueDataType[size]; 523t[i] = ValueDataType.String; 533internal XPathFunction(XPathFunctionID functionID, string name, ValueDataType returnType) 539internal XPathFunction(XPathFunctionID functionID, string name, ValueDataType returnType, QueryFunctionFlag flags) 545internal XPathFunction(XPathFunctionID functionID, string name, ValueDataType returnType, ValueDataType[] argTypes) 570static void ConvertFirstArg(ProcessingContext context, ValueDataType type) 746values[arg.basePtr++].ConvertTo(context, ValueDataType.Boolean); 938values[arg.basePtr++].ConvertTo(context, ValueDataType.Double); 994values[arg.basePtr++].ConvertTo(context, ValueDataType.String); 1091XPathFunction.ConvertFirstArg(context, ValueDataType.String); 1283XPathFunction.ConvertFirstArg(context, ValueDataType.String);
System\ServiceModel\Dispatcher\QueryIntervalOp.cs (1)
1141if (ValueDataType.Sequence == val.Type)
System\ServiceModel\Dispatcher\QueryMatcher.cs (8)
396internal static OpcodeBlock CompileForInternalEngine(XPathMessageFilter filter, QueryCompilerFlags flags, IFunctionLibrary[] functionLibs, out ValueDataType returnType) 401internal static OpcodeBlock CompileForInternalEngine(string xpath, XmlNamespaceManager nsManager, QueryCompilerFlags flags, IFunctionLibrary[] functionLibs, out ValueDataType returnType) 405returnType = ValueDataType.None; 435internal static OpcodeBlock CompileForInternalEngine(string xpath, XmlNamespaceManager ns, QueryCompilerFlags flags, out ValueDataType returnType) 654ValueDataType returnType; 748ValueDataType returnType; 889ValueDataType returnType = ValueDataType.None;
System\ServiceModel\Dispatcher\QueryMath.cs (10)
64Fx.Assert(values[x].IsType(ValueDataType.Double), ""); 65Fx.Assert(values[y].IsType(ValueDataType.Double), ""); 91Fx.Assert(values[x].IsType(ValueDataType.Double), ""); 92Fx.Assert(values[y].IsType(ValueDataType.Double), ""); 118Fx.Assert(values[x].IsType(ValueDataType.Double), ""); 119Fx.Assert(values[y].IsType(ValueDataType.Double), ""); 144Fx.Assert(values[x].IsType(ValueDataType.Double), ""); 145Fx.Assert(values[y].IsType(ValueDataType.Double), ""); 170Fx.Assert(values[x].IsType(ValueDataType.Double), ""); 171Fx.Assert(values[y].IsType(ValueDataType.Double), "");
System\ServiceModel\Dispatcher\QueryPrefixOp.cs (3)
764Fx.Assert(context.Values[arg.basePtr].IsType(ValueDataType.String), ""); 773Fx.Assert(context.Values[i].IsType(ValueDataType.String), ""); 851if (ValueDataType.Sequence == val.Type)
System\ServiceModel\Dispatcher\QueryRelOp.cs (3)
312if (ValueDataType.Sequence == val.Type) 326Fx.Assert(val.Type == ValueDataType.String, ""); 360if (ValueDataType.Sequence == val.Type)
System\ServiceModel\Dispatcher\QueryResultOp.cs (10)
67ValueDataType resultType = context.Values[topFrame.basePtr].Type; 72case ValueDataType.Sequence: 78case ValueDataType.Boolean: 84case ValueDataType.String: 90case ValueDataType.Double: 188ValueDataType resultType = context.Values[topFrame.basePtr].Type; 193case ValueDataType.Sequence: 199case ValueDataType.Boolean: 205case ValueDataType.String: 211case ValueDataType.Double:
System\ServiceModel\Dispatcher\QuerySetOp.cs (2)
109Fx.Assert(context.Values[resultIndex].IsType(ValueDataType.Boolean), ""); 174Fx.Assert(ValueDataType.Sequence == values[i].Type, "");
System\ServiceModel\Dispatcher\QueryStack.cs (2)
277Fx.Assert(this.buffer[i].IsType(ValueDataType.Sequence), ""); 619Fx.Assert(this.stack.IsValidStackPtr(index) && this.buffer.buffer[index].IsType(ValueDataType.Sequence), "");
System\ServiceModel\Dispatcher\QueryValue.cs (73)
33ValueDataType type; 43this.type = ValueDataType.Boolean; 56this.type = ValueDataType.Double; 94Fx.Assert(this.IsType(ValueDataType.StackFrame), ""); 131this.type = ValueDataType.Sequence; 144this.type = ValueDataType.String; 149internal ValueDataType Type 159Fx.Assert(ValueDataType.Double == this.type, ""); 172if (ValueDataType.Sequence == this.type) 176this.type = ValueDataType.None; 187case ValueDataType.Boolean: 192case ValueDataType.Boolean: 194case ValueDataType.Double: 196case ValueDataType.Sequence: 198case ValueDataType.String: 202case ValueDataType.Double: 207case ValueDataType.Boolean: 209case ValueDataType.Double: 211case ValueDataType.Sequence: 213case ValueDataType.String: 217case ValueDataType.Sequence: 222case ValueDataType.Boolean: 224case ValueDataType.Double: 226case ValueDataType.Sequence: 228case ValueDataType.String: 232case ValueDataType.String: 237case ValueDataType.Boolean: 239case ValueDataType.Double: 241case ValueDataType.Sequence: 243case ValueDataType.String: 256case ValueDataType.Boolean: 259case ValueDataType.Double: 262case ValueDataType.Sequence: 265case ValueDataType.String: 270internal void ConvertTo(ProcessingContext context, ValueDataType newType) 284case ValueDataType.Boolean: 288case ValueDataType.Double: 292case ValueDataType.String: 297if (ValueDataType.Sequence == this.type) 312case ValueDataType.Boolean: 315case ValueDataType.Double: 318case ValueDataType.Sequence: 321case ValueDataType.String: 334case ValueDataType.Boolean: 337case ValueDataType.Double: 340case ValueDataType.Sequence: 343case ValueDataType.String: 371if (ValueDataType.Boolean != this.type) 381if (ValueDataType.Double != this.type) 391if (ValueDataType.Sequence != this.type) 401if (ValueDataType.String != this.type) 409internal bool IsType(ValueDataType type) 416Fx.Assert(ValueDataType.Double == this.type, ""); 422Fx.Assert(this.type == ValueDataType.Double, ""); 428Fx.Assert(this.type == ValueDataType.Boolean, ""); 434Fx.Assert(null != context && this.type == ValueDataType.Sequence && null != this.sequence, ""); 442this.type = ValueDataType.StackFrame; 461case ValueDataType.Boolean: 464case ValueDataType.Double: 467case ValueDataType.Sequence: 470case ValueDataType.String: 483case ValueDataType.Boolean: 486case ValueDataType.Double: 489case ValueDataType.Sequence: 492case ValueDataType.String: 505case ValueDataType.Boolean: 508case ValueDataType.Double: 511case ValueDataType.Sequence: 514case ValueDataType.String: 521if (ValueDataType.Sequence == this.type) 530if (ValueDataType.Sequence == this.type) 539if (ValueDataType.Sequence == this.type) 548if (ValueDataType.Sequence == this.type)
System\ServiceModel\Dispatcher\XPathCompiler.cs (24)
121if (subExpr.ReturnType != ValueDataType.Boolean) 123boolBlock.Append(new TypecastOpcode(ValueDataType.Boolean)); 134if (subExpr.ReturnType != ValueDataType.Boolean) 136boolBlock.Append(new TypecastOpcode(ValueDataType.Boolean)); 162if (subExpr.ReturnType != ValueDataType.Boolean) 164boolBlock.Append(new TypecastOpcode(ValueDataType.Boolean)); 245if (expr.ReturnType == ValueDataType.Sequence) 253if (expr.SubExprCount == 0 && expr.ReturnType == ValueDataType.Sequence) 280if (subExpr.Count > 1 && ValueDataType.Sequence != filterExpr.ReturnType) 287if (filterExpr.ReturnType == ValueDataType.Sequence) 361if (ValueDataType.None != function.ParamTypes[index]) 365if (function.ParamTypes[index] == ValueDataType.Sequence) 495if (ValueDataType.Double != mathExpr.Right.ReturnType) 497this.CompileTypecast(ValueDataType.Double); 500if (ValueDataType.Double != mathExpr.Left.ReturnType) 502this.CompileTypecast(ValueDataType.Double); 594if (expr.SubExpr[0].ReturnType == ValueDataType.Sequence) 656if (expr.ReturnType == ValueDataType.Double) 660else if (expr.ReturnType != ValueDataType.Boolean) 662this.CompileTypecast(ValueDataType.Boolean); 784void CompileTypecast(ValueDataType destType) 786Fx.Assert(ValueDataType.None != destType, ""); 801ValueDataType paramType = XPathXsltFunctionExpr.ConvertTypeFromXslt(expr.Function.ArgTypes[i]); 802if (ValueDataType.None != paramType)
System\ServiceModel\Dispatcher\XPathExpr.cs (21)
33ValueDataType returnType; 39internal XPathExpr(XPathExprType type, ValueDataType returnType, XPathExprList subExpr) 45internal XPathExpr(XPathExprType type, ValueDataType returnType) 71internal ValueDataType ReturnType 184internal XPathConjunctExpr(XPathExprType type, ValueDataType returnType, XPathExpr left, XPathExpr right) 217: base(XPathExprType.Relational, ValueDataType.Boolean, left, right) 240: base(XPathExprType.Math, ValueDataType.Double, left, right) 302internal static XPathResultType ConvertTypeToXslt(ValueDataType type) 306case ValueDataType.Boolean: 309case ValueDataType.Double: 312case ValueDataType.Sequence: 315case ValueDataType.String: 323internal static ValueDataType ConvertTypeFromXslt(XPathResultType type) 328return ValueDataType.Boolean; 331return ValueDataType.Double; 334return ValueDataType.Sequence; 337return ValueDataType.String; 385: base(XPathExprType.PathStep, ValueDataType.Sequence, predicates) 402internal XPathLiteralExpr(XPathExprType type, ValueDataType returnType) 427: base(XPathExprType.String, ValueDataType.String) 454: base(XPathExprType.Number, ValueDataType.Double)
System\ServiceModel\Dispatcher\XPathParser.cs (11)
30if (expr.ReturnType != ValueDataType.Sequence) 233XPathExpr andExpr = new XPathExpr(XPathExprType.And, ValueDataType.Boolean); 462return new XPathExpr(XPathExprType.LocationPath, ValueDataType.Sequence, path); 632XPathExpr orExpr = new XPathExpr(XPathExprType.Or, ValueDataType.Boolean); 673XPathExpr relPathExpr = new XPathExpr(XPathExprType.RelativePath, ValueDataType.Sequence, relPath); 675pathExpr = new XPathExpr(XPathExprType.Path, ValueDataType.Sequence); 689XPathExpr relPathExpr = new XPathExpr(XPathExprType.RelativePath, ValueDataType.Sequence, relPath); 690pathExpr = new XPathExpr(XPathExprType.Path, ValueDataType.Sequence); 942if (anyNegate && expr.ReturnType != ValueDataType.Double) 944expr.ReturnType = ValueDataType.Double; 969return new XPathConjunctExpr(XPathExprType.Union, ValueDataType.Sequence, leftExpr, rightExpr);