109 references to LexKind
dotnet-svcutil-lib (109)
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\XPathParser.cs (83)
29
if (scanner.Kind != XPathScanner.
LexKind
.Eof)
41
if (scanner.Kind != XPathScanner.
LexKind
.Eof)
109
_scanner.Kind == XPathScanner.
LexKind
.Eq ? Operator.Op.EQ :
110
_scanner.Kind == XPathScanner.
LexKind
.Ne ? Operator.Op.NE :
131
_scanner.Kind == XPathScanner.
LexKind
.Lt ? Operator.Op.LT :
132
_scanner.Kind == XPathScanner.
LexKind
.Le ? Operator.Op.LE :
133
_scanner.Kind == XPathScanner.
LexKind
.Gt ? Operator.Op.GT :
134
_scanner.Kind == XPathScanner.
LexKind
.Ge ? Operator.Op.GE :
155
_scanner.Kind == XPathScanner.
LexKind
.Plus ? Operator.Op.PLUS :
156
_scanner.Kind == XPathScanner.
LexKind
.Minus ? Operator.Op.MINUS :
177
_scanner.Kind == XPathScanner.
LexKind
.Star ? Operator.Op.MUL :
195
while (_scanner.Kind == XPathScanner.
LexKind
.Minus)
218
if (_scanner.Kind != XPathScanner.
LexKind
.Union)
251
if (_scanner.Kind == XPathScanner.
LexKind
.Slash)
256
else if (_scanner.Kind == XPathScanner.
LexKind
.SlashSlash)
274
while (_scanner.Kind == XPathScanner.
LexKind
.LBracket)
290
PassToken(XPathScanner.
LexKind
.LBracket);
292
PassToken(XPathScanner.
LexKind
.RBracket);
300
if (_scanner.Kind == XPathScanner.
LexKind
.Slash)
311
else if (_scanner.Kind == XPathScanner.
LexKind
.SlashSlash)
330
if (XPathScanner.
LexKind
.SlashSlash == _scanner.Kind)
335
else if (XPathScanner.
LexKind
.Slash == _scanner.Kind)
349
private static bool IsStep(XPathScanner.
LexKind
lexKind)
352
lexKind == XPathScanner.
LexKind
.Dot ||
353
lexKind == XPathScanner.
LexKind
.DotDot ||
354
lexKind == XPathScanner.
LexKind
.At ||
355
lexKind == XPathScanner.
LexKind
.Axe ||
356
lexKind == XPathScanner.
LexKind
.Star ||
357
lexKind == XPathScanner.
LexKind
.Name // NodeTest is also Name
365
if (XPathScanner.
LexKind
.Dot == _scanner.Kind)
370
else if (XPathScanner.
LexKind
.DotDot == _scanner.Kind)
380
case XPathScanner.
LexKind
.At: //>> '@'
384
case XPathScanner.
LexKind
.Axe: //>> AxisName '::'
397
while (XPathScanner.
LexKind
.LBracket == _scanner.Kind)
412
case XPathScanner.
LexKind
.Name:
427
PassToken(XPathScanner.
LexKind
.LParens);
431
if (_scanner.Kind != XPathScanner.
LexKind
.RParens)
433
CheckToken(XPathScanner.
LexKind
.String);
439
PassToken(XPathScanner.
LexKind
.RParens);
452
case XPathScanner.
LexKind
.Star:
466
scanner.Kind == XPathScanner.
LexKind
.String ||
467
scanner.Kind == XPathScanner.
LexKind
.Number ||
468
scanner.Kind == XPathScanner.
LexKind
.Dollar ||
469
scanner.Kind == XPathScanner.
LexKind
.LParens ||
470
scanner.Kind == XPathScanner.
LexKind
.Name && scanner.CanBeFunction && !IsNodeType(scanner)
481
case XPathScanner.
LexKind
.String:
485
case XPathScanner.
LexKind
.Number:
489
case XPathScanner.
LexKind
.Dollar:
491
CheckToken(XPathScanner.
LexKind
.Name);
495
case XPathScanner.
LexKind
.LParens:
502
PassToken(XPathScanner.
LexKind
.RParens);
504
case XPathScanner.
LexKind
.Name:
520
PassToken(XPathScanner.
LexKind
.Name);
521
PassToken(XPathScanner.
LexKind
.LParens);
522
if (_scanner.Kind != XPathScanner.
LexKind
.RParens)
527
if (_scanner.Kind == XPathScanner.
LexKind
.RParens)
531
PassToken(XPathScanner.
LexKind
.Comma);
534
PassToken(XPathScanner.
LexKind
.RParens);
612
if (_scanner.Kind != XPathScanner.
LexKind
.Union)
628
case XPathScanner.
LexKind
.Slash:
631
if (_scanner.Kind == XPathScanner.
LexKind
.Eof || _scanner.Kind == XPathScanner.
LexKind
.Union)
636
case XPathScanner.
LexKind
.SlashSlash:
640
case XPathScanner.
LexKind
.Name:
648
case XPathScanner.
LexKind
.Slash:
651
case XPathScanner.
LexKind
.SlashSlash:
676
PassToken(XPathScanner.
LexKind
.LParens);
677
CheckToken(XPathScanner.
LexKind
.String);
680
PassToken(XPathScanner.
LexKind
.RParens);
686
PassToken(XPathScanner.
LexKind
.LParens);
687
CheckToken(XPathScanner.
LexKind
.String);
690
PassToken(XPathScanner.
LexKind
.Comma);
691
CheckToken(XPathScanner.
LexKind
.String);
694
PassToken(XPathScanner.
LexKind
.RParens);
706
if (XPathScanner.
LexKind
.SlashSlash == _scanner.Kind)
711
else if (XPathScanner.
LexKind
.Slash == _scanner.Kind)
727
case XPathScanner.
LexKind
.At: //>> '@'
731
case XPathScanner.
LexKind
.Axe: //>> AxisName '::'
747
while (XPathScanner.
LexKind
.LBracket == _scanner.Kind)
756
private void CheckToken(XPathScanner.
LexKind
t)
764
private void PassToken(XPathScanner.
LexKind
t)
778
_scanner.Kind == XPathScanner.
LexKind
.Name &&
880
Debug.Assert(scaner.Kind == XPathScanner.
LexKind
.Axe);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\XPathScanner.cs (26)
19
private
LexKind
_kind;
71
public
LexKind
Kind { get { return _kind; } }
77
Debug.Assert(_kind ==
LexKind
.Name || _kind ==
LexKind
.Axe);
87
Debug.Assert(_kind ==
LexKind
.Name);
97
Debug.Assert(_kind ==
LexKind
.String);
107
Debug.Assert(_kind ==
LexKind
.Number);
119
Debug.Assert(_kind ==
LexKind
.Name);
135
_kind =
LexKind
.Eof;
150
_kind = (
LexKind
)Convert.ToInt32(this.CurerntChar, CultureInfo.InvariantCulture);
154
_kind =
LexKind
.Lt;
158
_kind =
LexKind
.Le;
163
_kind =
LexKind
.Gt;
167
_kind =
LexKind
.Ge;
172
_kind =
LexKind
.Bang;
176
_kind =
LexKind
.Ne;
181
_kind =
LexKind
.Dot;
185
_kind =
LexKind
.DotDot;
190
_kind =
LexKind
.Number;
195
_kind =
LexKind
.Slash;
199
_kind =
LexKind
.SlashSlash;
205
_kind =
LexKind
.String;
211
_kind =
LexKind
.Number;
220
_kind =
LexKind
.Name;
232
_kind =
LexKind
.Axe;
266
_kind =
LexKind
.Axe;