293 references to NodeType
System.Data.Linq (293)
SqlClient\Common\SqlFactory.cs (1)
597
if (sel != null && sel.Selection != null && sel.Selection.
NodeType
!= SqlNodeType.OptionalValue) {
SqlClient\Common\SqlNode.cs (12)
174
if (this.
NodeType
== SqlNodeType.Column) {
180
else if (this.
NodeType
== SqlNodeType.ColumnRef) {
183
else if (this.
NodeType
== SqlNodeType.OptionalValue) {
186
else if (this.
NodeType
== SqlNodeType.Value ||
187
this.
NodeType
== SqlNodeType.Parameter) {
566
throw Error.UnexpectedNode(value.
NodeType
);
609
throw Error.UnexpectedNode(node.
NodeType
);
625
throw Error.UnexpectedNode(node.
NodeType
);
718
throw Error.UnexpectedNode(node.
NodeType
);
926
if (value == null && (this.
NodeType
!= SqlNodeType.Count && this.
NodeType
!= SqlNodeType.LongCount))
1570
while (c.Expression != null && c.Expression.
NodeType
== SqlNodeType.ColumnRef) {
SqlClient\Common\SqlNodeTypeOperators.cs (1)
177
switch (expr.
NodeType
) {
SqlClient\Common\SqlVisitor.cs (6)
25
switch (node.
NodeType
) {
262
if (expr.
NodeType
== SqlNodeType.Value) {
265
throw Error.UnexpectedNode(expr.
NodeType
);
404
switch(ss.
NodeType
) {
410
throw Error.UnexpectedNode(ss.
NodeType
);
620
switch (exp.
NodeType
) {
SqlClient\Query\MethodCallConverter.cs (11)
36
if (IsComparison(bo.
NodeType
)
37
&& bo.Left.
NodeType
== SqlNodeType.MethodCall
38
&& bo.Right.
NodeType
== SqlNodeType.Value) {
71
return IsComparison(bo.
NodeType
)
72
&& bo.Left.
NodeType
== SqlNodeType.MethodCall
73
&& bo.Right.
NodeType
== SqlNodeType.Value
152
bo = this.MakeCompareTo(call.Object, call.Arguments[0], bo.
NodeType
, iValue) ?? bo;
156
bo = this.MakeCompareTo(call.Arguments[0], call.Arguments[1], bo.
NodeType
, iValue) ?? bo;
166
bo = this.MakeCompareTo(call.Arguments[0], emptyStr, bo.
NodeType
, iValue) ?? bo;
169
bo = this.MakeCompareTo(call.Arguments[0], call.Arguments[1], bo.
NodeType
, iValue) ?? bo;
318
while (@else.
NodeType
== SqlNodeType.SearchedCase) {
SqlClient\Query\QueryConverter.cs (29)
107
if (retNode.
NodeType
== SqlNodeType.MethodCall) {
259
if (sel.Selection.
NodeType
!= SqlNodeType.AliasRef ||
281
if (node.
NodeType
== SqlNodeType.Value) {
301
else if (node.
NodeType
== SqlNodeType.Multiset || node.
NodeType
== SqlNodeType.Element) {
304
else if (node.
NodeType
== SqlNodeType.ClientArray) {
307
else if (node.
NodeType
== SqlNodeType.ClientParameter) {
337
if (expr.
NodeType
== SqlNodeType.Value) {
424
else if ((project.
NodeType
== SqlNodeType.Element || project.
NodeType
== SqlNodeType.ScalarSubSelect) &&
430
if (project.
NodeType
== SqlNodeType.Element) {
665
if (array.
NodeType
== SqlNodeType.ClientParameter
666
&& index.
NodeType
== SqlNodeType.Value) {
707
else if (expr.
NodeType
== SqlNodeType.Value && ((SqlValue)expr).Value == null) {
710
else if (expr.
NodeType
== SqlNodeType.ClientParameter) {
813
while (@else.
NodeType
== SqlNodeType.SearchedCase) {
931
if (takeExp.
NodeType
== SqlNodeType.Value) {
943
if (skipExp.
NodeType
== SqlNodeType.Value) {
978
switch (selection.
NodeType
) {
1045
if (skipExp.
NodeType
== SqlNodeType.Value) {
1494
if (select.Selection.
NodeType
!= SqlNodeType.AliasRef || select.OrderBy.Count > 0) {
1516
System.Diagnostics.Debug.Assert(select.Selection.
NodeType
== SqlNodeType.AliasRef);
1758
switch (expr.
NodeType
) {
1779
if (seqNode.
NodeType
== SqlNodeType.ClientArray) {
1783
else if (seqNode.
NodeType
== SqlNodeType.Value) {
1949
if (exp.
NodeType
== SqlNodeType.Value) {
2672
if (r.
NodeType
== SqlNodeType.Value) {
2772
switch (select.Selection.
NodeType
) {
2869
switch (expr.
NodeType
) {
SqlClient\Query\SimpleExpression.cs (1)
40
switch (node.
NodeType
) {
SqlClient\Query\SqlAggregateChecker.cs (1)
34
switch (uo.
NodeType
) {
SqlClient\Query\SqlBinder.cs (72)
175
switch (bo.
NodeType
) {
199
switch (bo.
NodeType
) {
209
bool equal = bo.
NodeType
!= SqlNodeType.NE && bo.
NodeType
!= SqlNodeType.NE2V;
210
bool isTwoValue = bo.
NodeType
== SqlNodeType.EQ2V || bo.
NodeType
== SqlNodeType.NE2V;
245
switch (bo.
NodeType
) {
303
switch (bo.
NodeType
) {
335
return this.VisitExpression(sql.ValueFromObject(bo.
NodeType
== SqlNodeType.NE, false, bo.SourceExpression));
342
(bo.
NodeType
== SqlNodeType.EQ) == (leftPossibleTypes[0] == rightPossibleTypes[0]),
351
return this.VisitExpression(sql.Binary(bo.
NodeType
, leftDt.Discriminator, rightDt.Discriminator));
374
if (typeExpression.
NodeType
== SqlNodeType.DiscriminatedType) {
384
else if (typeExpression.
NodeType
== SqlNodeType.Value) {
388
} else if (typeExpression.
NodeType
== SqlNodeType.SearchedCase) {
396
throw Error.UnexpectedNode(typeExpression.
NodeType
);
406
while (obj.
NodeType
== SqlNodeType.OptionalValue
407
|| obj.
NodeType
== SqlNodeType.OuterJoinedValue) {
408
if (obj.
NodeType
== SqlNodeType.OptionalValue) {
415
if (obj.
NodeType
== SqlNodeType.TypeCase) {
479
switch (target.
NodeType
) {
520
System.Diagnostics.Debug.Assert(false, "Don't know how to apply 'as' to " + target.
NodeType
);
539
if (uo.
NodeType
== SqlNodeType.IsNull || uo.
NodeType
== SqlNodeType.IsNotNull) {
544
if (uo.Operand.
NodeType
==SqlNodeType.OuterJoinedValue) {
546
if (ojv.Operand.
NodeType
== SqlNodeType.OptionalValue) {
549
new SqlUnary(uo.
NodeType
, uo.ClrType, uo.SqlType,
554
else if (ojv.Operand.
NodeType
== SqlNodeType.TypeCase) {
556
return new SqlUnary(uo.
NodeType
, uo.ClrType, uo.SqlType,
570
if ((uo.
NodeType
== SqlNodeType.Not || uo.
NodeType
== SqlNodeType.Not2V) && uo.Operand.
NodeType
== SqlNodeType.Value) {
574
else if (uo.
NodeType
== SqlNodeType.Not2V) {
589
else if (uo.
NodeType
== SqlNodeType.Convert && uo.Operand.
NodeType
== SqlNodeType.Value) {
593
else if (uo.
NodeType
== SqlNodeType.IsNull || uo.
NodeType
== SqlNodeType.IsNotNull) {
596
return sql.ValueFromObject(uo.
NodeType
== SqlNodeType.IsNotNull, false, uo.SourceExpression);
599
switch (exp.
NodeType
) {
602
if (uo.
NodeType
== SqlNodeType.IsNull) {
608
if (cq.Query.
NodeType
== SqlNodeType.Element) {
610
if (uo.
NodeType
== SqlNodeType.IsNull) {
615
return sql.ValueFromObject(uo.
NodeType
== SqlNodeType.IsNotNull, false, uo.SourceExpression);
628
values.Add(VisitUnaryOperator(sql.Unary(uo.
NodeType
, when.Value, when.Value.SourceExpression)));
638
SqlUnary un = new SqlUnary(uo.
NodeType
, uo.ClrType, uo.SqlType, when.TypeBinding, when.TypeBinding.SourceExpression);
650
return sql.Value(typeof(bool), this.typeProvider.From(typeof(int)), (val.Value == null) == (uo.
NodeType
== SqlNodeType.IsNull), val.IsClientSpecified, uo.SourceExpression);
654
else if (uo.
NodeType
== SqlNodeType.Treat) {
677
if (mm.IsAssociation && ma.Expression != null && ma.Expression.
NodeType
!= SqlNodeType.Link
706
switch (exp.
NodeType
) {
767
if (when.TypeBinding.
NodeType
== SqlNodeType.New) {
874
if (rexp.
NodeType
== SqlNodeType.Member && !SqlColumnizer.CanBeColumn(rexp)) {
878
if (this.canUseOuterApply && exp.
NodeType
== SqlNodeType.Element && this.currentSelect != null) {
907
throw Error.UnexpectedNode(result.
NodeType
);
960
if (ss.
NodeType
== SqlNodeType.Element && ss.Select.Selection.
NodeType
== SqlNodeType.Multiset) {
970
else if (ss.
NodeType
== SqlNodeType.Element && ss.Select.Selection.
NodeType
== SqlNodeType.Element) {
1024
if (a.Node.
NodeType
== SqlNodeType.Table) {
1071
if (shared.Expression.
NodeType
== SqlNodeType.ColumnRef) {
1095
if (expr.
NodeType
== SqlNodeType.Value && expr.SqlType.CanBeColumn) {
1181
if (select.Where != null && select.Where.
NodeType
== SqlNodeType.Value && (bool)((SqlValue)select.Where).Value) {
1216
switch (node.
NodeType
) {
1230
if (e.
NodeType
!= SqlNodeType.OuterJoinedValue) {
1266
throw Error.UnexpectedNode(node.
NodeType
);
1276
switch (node.
NodeType
) {
1366
&& node.
NodeType
== SqlNodeType.Element
1408
if (location.
NodeType
== SqlNodeType.Join)
1453
while (node.
NodeType
== SqlNodeType.OuterJoinedValue) {
1466
if (expr.
NodeType
== SqlNodeType.Value) {
1470
if (expr.
NodeType
== SqlNodeType.Link) {
1487
else if (expr.
NodeType
== SqlNodeType.Grouping) {
1490
else if (expr.
NodeType
== SqlNodeType.ClientCase) {
1549
if (aref != null && aref.Alias.Node.
NodeType
== SqlNodeType.Table) {
SqlClient\Query\SqlBooleanizer.cs (2)
20
if (select.Where != null && select.Where.
NodeType
== SqlNodeType.Coalesce) {
22
if (bin.Right.
NodeType
== SqlNodeType.Value) {
SqlClient\Query\SqlBooleanMismatchVisitor.cs (3)
51
if (uo.
NodeType
.IsUnaryOperatorExpectingPredicateOperand()) {
60
if (bo.
NodeType
.IsBinaryOperatorExpectingPredicateOperands()) {
123
switch (exp.
NodeType
) {
SqlClient\Query\SqlCaseSimplifier.cs (9)
37
switch (bo.
NodeType
) {
42
if (bo.Left.
NodeType
== SqlNodeType.SimpleCase &&
43
bo.Right.
NodeType
== SqlNodeType.Value &&
45
return this.DistributeOperatorIntoCase(bo.
NodeType
, (SqlSimpleCase)bo.Left, bo.Right);
47
else if (bo.Right.
NodeType
== SqlNodeType.SimpleCase &&
48
bo.Left.
NodeType
==SqlNodeType.Value &&
50
return this.DistributeOperatorIntoCase(bo.
NodeType
, (SqlSimpleCase)bo.Right, bo.Left);
63
if (when.Value.
NodeType
!= SqlNodeType.Value) {
113
allValuesLiteral = allValuesLiteral && when.Value.
NodeType
== SqlNodeType.Value;
SqlClient\Query\SqlColumnizer.cs (6)
49
if (expr.
NodeType
== SqlNodeType.Column ||
50
expr.
NodeType
== SqlNodeType.ColumnRef) {
122
switch (expr.
NodeType
) {
144
switch (expr.
NodeType
) {
169
&& expression.
NodeType
!= SqlNodeType.Column
172
switch (expression.
NodeType
) {
SqlClient\Query\SqlComparer.cs (8)
26
if (node1.
NodeType
== SqlNodeType.SimpleCase)
29
if (node2.
NodeType
== SqlNodeType.SimpleCase)
32
if (node1.
NodeType
!= node2.
NodeType
) {
34
if (node1.
NodeType
== SqlNodeType.ExprSet) {
41
else if (node2.
NodeType
== SqlNodeType.ExprSet) {
53
switch (node1.
NodeType
) {
297
if (result.
NodeType
== SqlNodeType.SimpleCase) {
SqlClient\Query\SqlDeflator.cs (4)
67
while (expr != null && expr.
NodeType
== SqlNodeType.ColumnRef) {
241
switch (expr.
NodeType
) {
362
if (c.Expression != null && c.Expression.
NodeType
!= SqlNodeType.ColumnRef) {
481
if (c.Expression != null && c.Expression.
NodeType
!= SqlNodeType.ColumnRef) {
SqlClient\Query\SqlDuplicator.cs (5)
23
switch (node.
NodeType
) {
89
return new SqlBinary(bo.
NodeType
, bo.ClrType, bo.SqlType, left, right, bo.Method);
163
return new SqlSubSelect(sqlExpr.
NodeType
, sqlExpr.ClrType, sqlExpr.SqlType, (SqlSelect)this.Visit(sqlExpr.Select));
188
return new SqlSubSelect(sms.
NodeType
, sms.ClrType, sms.SqlType, (SqlSelect)this.Visit(sms.Select));
294
return new SqlUnary(uo.
NodeType
, uo.ClrType, uo.SqlType, (SqlExpression)this.Visit(uo.Operand), uo.Method, uo.SourceExpression);
SqlClient\Query\SqlExpander.cs (6)
70
throw Error.CouldNotHandleAliasRef(node.
NodeType
);
118
switch (exprs[0].
NodeType
) {
202
if (exprs[i] == null || exprs[i].
NodeType
!= SqlNodeType.New)
238
if (exprs[i] == null || exprs[i].
NodeType
!= SqlNodeType.Link)
290
if (exprs[i] == null || exprs[i].
NodeType
!= SqlNodeType.OptionalValue) {
305
if (exprs[i] == null || exprs[i].
NodeType
!= SqlNodeType.OuterJoinedValue) {
SqlClient\Query\SqlExpressionNullability.cs (1)
24
switch (expr.
NodeType
) {
SqlClient\Query\SqlFlattener.cs (9)
114
if (col.Expression.
NodeType
== SqlNodeType.ExprSet && c.Expression.
NodeType
!= SqlNodeType.ExprSet) {
195
else if (expr.
NodeType
== SqlNodeType.TypeCase) {
202
else if (expr.
NodeType
== SqlNodeType.Link) {
213
else if (expr.
NodeType
== SqlNodeType.OptionalValue) {
218
else if (expr.
NodeType
== SqlNodeType.OuterJoinedValue) {
221
else if (expr.
NodeType
== SqlNodeType.DiscriminatedType) {
229
if (expr.
NodeType
!= SqlNodeType.ColumnRef &&
230
expr.
NodeType
!= SqlNodeType.ExprSet) {
SqlClient\Query\SqlFormatter.cs (13)
80
switch (node.
NodeType
) {
100
if (outer.
NodeType
!= node.
NodeType
)
123
switch (uo.
NodeType
) {
126
this.sb.Append(GetOperator(uo.
NodeType
));
132
this.sb.Append(GetOperator(uo.
NodeType
));
143
this.sb.Append(GetOperator(uo.
NodeType
));
157
sb.Append(GetOperator(uo.
NodeType
));
177
throw Error.InvalidFormatNode(uo.
NodeType
);
208
switch (bo.
NodeType
) {
219
sb.Append(GetOperator(bo.
NodeType
));
869
if (src.
NodeType
== SqlNodeType.Join) {
1216
switch (exp.
NodeType
) {
SqlClient\Query\SqlMethodCallConverter.cs (12)
48
return uo.
NodeType
== SqlNodeType.Convert &&
651
if (uo.
NodeType
== SqlNodeType.Convert) {
1287
switch (bo.
NodeType
) {
1509
if (pattern.
NodeType
== SqlNodeType.Value) {
1514
else if (pattern.
NodeType
== SqlNodeType.ClientParameter) {
1543
if (pattern.
NodeType
== SqlNodeType.Value) {
1548
else if (pattern.
NodeType
== SqlNodeType.ClientParameter) {
1577
if (pattern.
NodeType
== SqlNodeType.Value) {
1582
else if (pattern.
NodeType
== SqlNodeType.ClientParameter) {
2092
if (roundingMethod.
NodeType
!= SqlNodeType.Value) {
2476
if (pattern.
NodeType
== SqlNodeType.Value) {
2482
else if (pattern.
NodeType
== SqlNodeType.ClientParameter) {
SqlClient\Query\SqlMethodTransformer.cs (1)
58
switch (unary.
NodeType
) {
SqlClient\Query\SqlNamer.cs (2)
134
switch (c.Expression.
NodeType
) {
232
switch (e.
NodeType
) {
SqlClient\Query\SqlParameterizer.cs (2)
136
switch (bo.
NodeType
) {
185
switch (result.
NodeType
) {
SqlClient\Query\SqlRemoveConstantOrderBy.cs (2)
27
while (expr.
NodeType
== SqlNodeType.DiscriminatedType) {
30
switch (expr.
NodeType
) {
SqlClient\Query\SqlRetyper.cs (23)
32
if (uo.
NodeType
!= SqlNodeType.Convert && uo.Operand != null && uo.Operand.SqlType != null) {
33
uo.SetSqlType(this.typeProvider.PredictTypeForUnary(uo.
NodeType
, uo.Operand.SqlType));
61
if (bo.
NodeType
.IsComparisonOperator()
64
if (bo.Left.
NodeType
== SqlNodeType.Convert) {
68
return VisitBinaryOperator(new SqlBinary(bo.
NodeType
, bo.ClrType, bo.SqlType, conv.Operand, bo.Right));
71
if (bo.Right.
NodeType
== SqlNodeType.Convert) {
75
return VisitBinaryOperator(new SqlBinary(bo.
NodeType
, bo.ClrType, bo.SqlType, bo.Left, conv.Operand));
79
if (bo.Right != null && bo.
NodeType
!= SqlNodeType.Concat) {
84
bo = sql.Binary(bo.
NodeType
, left, right);
86
bo.SetSqlType(typeProvider.PredictTypeForBinary(bo.
NodeType
, left.SqlType, right.SqlType));
88
if (bo.
NodeType
.IsComparisonOperator()) {
92
(expr, val) => (val.
NodeType
== SqlNodeType.Value || val.
NodeType
== SqlNodeType.ClientParameter) &&
93
!(expr.
NodeType
== SqlNodeType.Value || expr.
NodeType
== SqlNodeType.ClientParameter) &&
143
(like.Pattern.
NodeType
== SqlNodeType.Value || like.Pattern.
NodeType
== SqlNodeType.ClientParameter)) {
227
if (arg2.
NodeType
== SqlNodeType.Value) {
234
} else if (arg2.
NodeType
== SqlNodeType.ClientParameter && arg2.SqlType != arg1.SqlType) {
289
if (arg2.
NodeType
== SqlNodeType.Value) {
292
else if (arg1.
NodeType
== SqlNodeType.Value) {
295
else if (arg2.
NodeType
== SqlNodeType.ClientParameter && arg2.SqlType != arg1.SqlType) {
298
else if (arg1.
NodeType
== SqlNodeType.ClientParameter && arg1.SqlType != arg2.SqlType) {
SqlClient\Query\SqlSupersetValidator.cs (9)
125
throw Error.UnexpectedNode(aref.
NodeType
);
145
if (bo.
NodeType
== SqlNodeType.EQ || bo.
NodeType
== SqlNodeType.NE ||
146
bo.
NodeType
== SqlNodeType.EQ2V || bo.
NodeType
== SqlNodeType.NE2V ||
147
bo.
NodeType
== SqlNodeType.GT || bo.
NodeType
== SqlNodeType.GE ||
148
bo.
NodeType
== SqlNodeType.LT || bo.
NodeType
== SqlNodeType.LE ) {
SqlClient\Query\SqlTopReducer.cs (1)
29
if (select.Top.
NodeType
== SqlNodeType.Value) {
SqlClient\Query\SqlTypeConverter.cs (1)
73
if (uo.
NodeType
!= SqlNodeType.Convert) {
SqlClient\Query\Translator.cs (24)
287
expr.
NodeType
== SqlNodeType.EQ || expr.
NodeType
== SqlNodeType.NE ||
288
expr.
NodeType
== SqlNodeType.EQ2V || expr.
NodeType
== SqlNodeType.NE2V);
292
if (eRight.
NodeType
== SqlNodeType.Element) {
297
select.Where = sql.Binary(expr.
NodeType
, sql.DoNotVisitExpression(eLeft), aref);
300
else if (eLeft.
NodeType
== SqlNodeType.Element) {
305
select.Where = sql.Binary(expr.
NodeType
, sql.DoNotVisitExpression(eRight), aref);
312
if (eLeft.
NodeType
== SqlNodeType.TypeCase) {
315
if (eRight.
NodeType
== SqlNodeType.TypeCase) {
325
(eLeft.
NodeType
!= SqlNodeType.New || eLeft.SqlType.CanBeColumn) &&
326
(eRight.
NodeType
!= SqlNodeType.New || eRight.SqlType.CanBeColumn)) {
327
if (expr.
NodeType
== SqlNodeType.EQ2V || expr.
NodeType
== SqlNodeType.NE2V) {
328
return this.TranslateEqualsOp(expr.
NodeType
, sql.DoNotVisitExpression(expr.Left), sql.DoNotVisitExpression(expr.Right), false);
362
SqlNodeType eqKind = (expr.
NodeType
== SqlNodeType.EQ2V || expr.
NodeType
== SqlNodeType.NE2V) ? SqlNodeType.EQ2V : SqlNodeType.EQ;
372
if (expr.
NodeType
== SqlNodeType.NE || expr.
NodeType
== SqlNodeType.NE2V) {
447
System.Diagnostics.Debug.Assert(expr.
NodeType
== SqlNodeType.IsNull || expr.
NodeType
== SqlNodeType.IsNotNull);
458
SqlNodeType combo = (expr.
NodeType
== SqlNodeType.IsNull) ? SqlNodeType.Or : SqlNodeType.And;
460
SqlExpression compare = sql.Unary(expr.
NodeType
, sql.DoNotVisitExpression(exprs[i]), expr.SourceExpression);
479
if (when.TypeBinding.
NodeType
== SqlNodeType.New) {
SqlClient\Query\TypeSource.cs (1)
57
switch (node.
NodeType
) {
SqlClient\Reader\ObjectReaderCompiler.cs (11)
348
switch (node.
NodeType
) {
472
if (node1.
NodeType
!= node2.
NodeType
||
477
switch (node1.
NodeType
) {
728
switch (node.
NodeType
) {
1330
if (expr.
NodeType
== SqlNodeType.Link) {
1333
else if (expr.
NodeType
== SqlNodeType.ClientCase) {
1409
if (expr.
NodeType
== SqlNodeType.ClientCase) {
1412
else if (expr.
NodeType
== SqlNodeType.Link) {
1421
Type clientElementType = cq.Query.
NodeType
== SqlNodeType.Multiset ? TypeSystem.GetElementType(cq.ClrType) : cq.ClrType;
1435
if (cq.Arguments[i].
NodeType
== SqlNodeType.ColumnRef) {
SqlClient\SqlProvider.cs (3)
970
Type clientElementType = cq.Query.
NodeType
== SqlNodeType.Multiset ? TypeSystem.GetElementType(cq.ClrType) : cq.ClrType;
1625
switch (node.
NodeType
) {
1639
if (sel == null && node.
NodeType
== SqlNodeType.Block) {
SqlClient\SqlTypeSystemProvider.cs (1)
1238
if (functionCall.Arguments[2].
NodeType
== SqlNodeType.Value) {