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