100 references to Tokens
System.Data (100)
fx\src\data\System\Data\Filter\ExpressionParser.cs (98)
55
internal readonly
Tokens
token;
58
internal ReservedWords(string word,
Tokens
token, int op) {
67
new ReservedWords("And",
Tokens
.BinaryOp, Operators.And),
73
new ReservedWords("Between",
Tokens
.BinaryOp, Operators.Between),
75
new ReservedWords("Child",
Tokens
.Child, Operators.Noop),
76
new ReservedWords("False",
Tokens
.ZeroOp, Operators.False),
77
new ReservedWords("In",
Tokens
.BinaryOp, Operators.In),
78
new ReservedWords("Is",
Tokens
.BinaryOp, Operators.Is),
79
new ReservedWords("Like",
Tokens
.BinaryOp, Operators.Like),
80
new ReservedWords("Not",
Tokens
.UnaryOp, Operators.Not),
81
new ReservedWords("Null",
Tokens
.ZeroOp, Operators.Null),
82
new ReservedWords("Or",
Tokens
.BinaryOp, Operators.Or),
83
new ReservedWords("Parent",
Tokens
.Parent, Operators.Noop),
84
new ReservedWords("True",
Tokens
.ZeroOp, Operators.True),
103
internal
Tokens
token;
167
while (token !=
Tokens
.EOS) {
172
case
Tokens
.EOS:
194
case
Tokens
.Name:
195
case
Tokens
.Parent:
196
case
Tokens
.Numeric:
197
case
Tokens
.Decimal:
198
case
Tokens
.Float:
199
case
Tokens
.StringConst:
200
case
Tokens
.Date:
216
if (opInfo.type == Nodes.Binop && opInfo.op == Operators.In && token !=
Tokens
.Parent) {
224
case
Tokens
.Parent:
232
if (token ==
Tokens
.LeftParen) {
234
ScanToken(
Tokens
.Name);
236
ScanToken(
Tokens
.RightParen);
237
ScanToken(
Tokens
.Dot);
241
CheckToken(
Tokens
.Dot);
252
ScanToken(
Tokens
.Name);
260
case
Tokens
.Name:
271
case
Tokens
.Numeric:
275
case
Tokens
.Decimal:
279
case
Tokens
.Float:
283
case
Tokens
.StringConst:
290
case
Tokens
.Date:
305
case
Tokens
.LeftParen:
363
case
Tokens
.RightParen:
415
case
Tokens
.ListSeparator:
448
case
Tokens
.BinaryOp:
479
case
Tokens
.UnaryOp; // fall through to UnaryOperator;
481
case
Tokens
.UnaryOp:
486
case
Tokens
.ZeroOp:
498
case
Tokens
.Dot:
505
if (token ==
Tokens
.Name) {
535
Debug.Assert(token ==
Tokens
.LeftParen, "ParseAggregateArgument(): Invalid argument, token <> '('");
544
if (token !=
Tokens
.Child) {
545
if (token !=
Tokens
.Name)
549
ScanToken(
Tokens
.RightParen);
553
child = (token ==
Tokens
.Child);
559
if (token ==
Tokens
.LeftParen) {
561
ScanToken(
Tokens
.Name);
563
ScanToken(
Tokens
.RightParen);
564
ScanToken(
Tokens
.Dot);
568
CheckToken(
Tokens
.Dot);
571
ScanToken(
Tokens
.Name);
573
ScanToken(
Tokens
.RightParen);
738
internal void CheckToken(
Tokens
token) {
744
internal
Tokens
Scan() {
748
token =
Tokens
.None;
757
token =
Tokens
.EOS;
768
token =
Tokens
.LeftParen;
772
token =
Tokens
.RightParen;
777
CheckToken(
Tokens
.Date);
782
CheckToken(
Tokens
.StringConst);
786
token =
Tokens
.BinaryOp;
791
token =
Tokens
.BinaryOp;
801
token =
Tokens
.BinaryOp;
816
token =
Tokens
.BinaryOp;
821
token =
Tokens
.BinaryOp;
826
token =
Tokens
.BinaryOp;
831
token =
Tokens
.BinaryOp;
836
token =
Tokens
.BinaryOp;
842
token =
Tokens
.BinaryOp;
847
token =
Tokens
.BinaryOp;
851
token =
Tokens
.BinaryOp;
855
token =
Tokens
.BinaryOp;
863
CheckToken(
Tokens
.Name);
868
CheckToken(
Tokens
.Name);
875
token =
Tokens
.ListSeparator;
884
token =
Tokens
.Dot;
892
token =
Tokens
.BinaryConst;
904
if (token !=
Tokens
.None) {
912
if (token !=
Tokens
.None) {
913
CheckToken(
Tokens
.Name);
919
token =
Tokens
.Unknown;
965
token =
Tokens
.Float;
967
token =
Tokens
.Decimal;
969
token =
Tokens
.Numeric;
980
token =
Tokens
.Name;
1009
token =
Tokens
.Name;
1028
token =
Tokens
.Date;
1043
Debug.Assert(token ==
Tokens
.Name, "Exprecing an identifier.");
1073
Debug.Assert(token ==
Tokens
.Name, "Exprecing an identifier.");
1094
token =
Tokens
.StringConst;
1098
internal void ScanToken(
Tokens
token) {
fx\src\data\System\Data\Filter\FilterException.cs (2)
165
static public Exception UnknownToken(
Tokens
tokExpected,
Tokens
tokCurr, int position) {