100 references to Tokens
System.Data.Common (100)
System\Data\Filter\ExpressionParser.cs (98)
53
internal readonly
Tokens
_token;
56
internal ReservedWords(string word,
Tokens
token, int op)
66
new ReservedWords("And",
Tokens
.BinaryOp, Operators.And),
72
new ReservedWords("Between",
Tokens
.BinaryOp, Operators.Between),
74
new ReservedWords("Child",
Tokens
.Child, Operators.Noop),
75
new ReservedWords("False",
Tokens
.ZeroOp, Operators.False),
76
new ReservedWords("In",
Tokens
.BinaryOp, Operators.In),
77
new ReservedWords("Is",
Tokens
.BinaryOp, Operators.Is),
78
new ReservedWords("Like",
Tokens
.BinaryOp, Operators.Like),
79
new ReservedWords("Not",
Tokens
.UnaryOp, Operators.Not),
80
new ReservedWords("Null",
Tokens
.ZeroOp, Operators.Null),
81
new ReservedWords("Or",
Tokens
.BinaryOp, Operators.Or),
82
new ReservedWords("Parent",
Tokens
.Parent, Operators.Noop),
83
new ReservedWords("True",
Tokens
.ZeroOp, Operators.True),
102
internal
Tokens
_token;
170
while (_token !=
Tokens
.EOS)
177
case
Tokens
.EOS:
202
case
Tokens
.Name:
203
case
Tokens
.Parent:
204
case
Tokens
.Numeric:
205
case
Tokens
.Decimal:
206
case
Tokens
.Float:
207
case
Tokens
.StringConst:
208
case
Tokens
.Date:
226
if (opInfo._type == Nodes.Binop && opInfo._op == Operators.In && _token !=
Tokens
.Parent)
236
case
Tokens
.Parent:
245
if (_token ==
Tokens
.LeftParen)
248
ScanToken(
Tokens
.Name);
250
ScanToken(
Tokens
.RightParen);
251
ScanToken(
Tokens
.Dot);
256
CheckToken(
Tokens
.Dot);
264
ScanToken(
Tokens
.Name);
271
case
Tokens
.Name:
281
case
Tokens
.Numeric:
285
case
Tokens
.Decimal:
289
case
Tokens
.Float:
293
case
Tokens
.StringConst:
300
case
Tokens
.Date:
315
case
Tokens
.LeftParen:
378
case
Tokens
.RightParen:
436
case
Tokens
.ListSeparator:
469
case
Tokens
.BinaryOp:
505
case
Tokens
.UnaryOp; // fall through to UnaryOperator;
507
case
Tokens
.UnaryOp:
512
case
Tokens
.ZeroOp:
525
case
Tokens
.Dot:
533
if (_token ==
Tokens
.Name)
562
Debug.Assert(_token ==
Tokens
.LeftParen, "ParseAggregateArgument(): Invalid argument, token <> '('");
572
if (_token !=
Tokens
.Child)
574
if (_token !=
Tokens
.Name)
578
ScanToken(
Tokens
.RightParen);
582
child = (_token ==
Tokens
.Child);
588
if (_token ==
Tokens
.LeftParen)
591
ScanToken(
Tokens
.Name);
593
ScanToken(
Tokens
.RightParen);
594
ScanToken(
Tokens
.Dot);
599
CheckToken(
Tokens
.Dot);
602
ScanToken(
Tokens
.Name);
604
ScanToken(
Tokens
.RightParen);
776
internal void CheckToken(
Tokens
token)
784
internal
Tokens
Scan()
789
_token =
Tokens
.None;
800
_token =
Tokens
.EOS;
811
_token =
Tokens
.LeftParen;
815
_token =
Tokens
.RightParen;
820
CheckToken(
Tokens
.Date);
825
CheckToken(
Tokens
.StringConst);
829
_token =
Tokens
.BinaryOp;
834
_token =
Tokens
.BinaryOp;
845
_token =
Tokens
.BinaryOp;
862
_token =
Tokens
.BinaryOp;
867
_token =
Tokens
.BinaryOp;
872
_token =
Tokens
.BinaryOp;
877
_token =
Tokens
.BinaryOp;
882
_token =
Tokens
.BinaryOp;
888
_token =
Tokens
.BinaryOp;
893
_token =
Tokens
.BinaryOp;
897
_token =
Tokens
.BinaryOp;
901
_token =
Tokens
.BinaryOp;
909
CheckToken(
Tokens
.Name);
914
CheckToken(
Tokens
.Name);
922
_token =
Tokens
.ListSeparator;
934
_token =
Tokens
.Dot;
942
_token =
Tokens
.BinaryConst;
955
if (_token !=
Tokens
.None)
965
if (_token !=
Tokens
.None)
967
CheckToken(
Tokens
.Name);
973
_token =
Tokens
.Unknown;
1026
_token =
Tokens
.Float;
1028
_token =
Tokens
.Decimal;
1030
_token =
Tokens
.Numeric;
1042
_token =
Tokens
.Name;
1076
_token =
Tokens
.Name;
1098
_token =
Tokens
.Date;
1111
Debug.Assert(_token ==
Tokens
.Name, "Exprecing an identifier.");
1145
Debug.Assert(_token ==
Tokens
.Name, "Exprecing an identifier.");
1170
_token =
Tokens
.StringConst;
1174
internal void ScanToken(
Tokens
token)
System\Data\Filter\FilterException.cs (2)
161
public static Exception UnknownToken(
Tokens
tokExpected,
Tokens
tokCurr, int position)