34 references to LexStartKind
Microsoft.ML.Transforms (34)
Expression\LexCharUtils.cs (17)
84
public readonly
LexStartKind
StartKind;
87
public LexCharInfo(
LexStartKind
sk, LexCharKind ck)
108
var info = new LexCharInfo(
LexStartKind
.Ident, LexCharKind.Ident | LexCharKind.HexDigit);
115
info = new LexCharInfo(
LexStartKind
.Ident, LexCharKind.Ident);
123
info = new LexCharInfo(
LexStartKind
.NumLit, LexCharKind.Digit | LexCharKind.HexDigit | LexCharKind.Ident);
127
_rgchi['.'] = new LexCharInfo(
LexStartKind
.NumLit, LexCharKind.Punc);
130
info = new LexCharInfo(
LexStartKind
.Space, LexCharKind.Space);
135
info = new LexCharInfo(
LexStartKind
.LineTerm, LexCharKind.LineTerm);
140
info = new LexCharInfo(
LexStartKind
.StrLit, LexCharKind.None);
143
_rgchi['@'] = new LexCharInfo(
LexStartKind
.Verbatim, LexCharKind.None);
144
_rgchi['/'] = new LexCharInfo(
LexStartKind
.Comment, LexCharKind.Punc);
145
_rgchi['#'] = new LexCharInfo(
LexStartKind
.PreProc, LexCharKind.None);
149
info = new LexCharInfo(
LexStartKind
.Punc, LexCharKind.Punc);
162
public static
LexStartKind
StartKind(char ch)
169
return
LexStartKind
.Ident;
171
return
LexStartKind
.Space;
172
return
LexStartKind
.None;
Expression\Lexer.cs (17)
171
LexStartKind
kind = LexCharUtils.StartKind(ChCur);
172
if (kind !=
LexStartKind
.Space && kind !=
LexStartKind
.PreProc)
177
case
LexStartKind
.Punc:
179
case
LexStartKind
.NumLit:
181
case
LexStartKind
.StrLit:
183
case
LexStartKind
.Verbatim:
186
if (LexCharUtils.StartKind(ChPeek(1)) ==
LexStartKind
.Ident)
191
case
LexStartKind
.Ident:
193
case
LexStartKind
.Comment:
195
case
LexStartKind
.Space:
197
case
LexStartKind
.LineTerm:
200
case
LexStartKind
.PreProc:
250
Contracts.Assert(LexCharUtils.StartKind(ChCur) ==
LexStartKind
.NumLit);
784
Contracts.Assert(LexCharUtils.StartKind(ChCur) ==
LexStartKind
.Space);
798
Contracts.Assert(LexCharUtils.StartKind(ChCur) ==
LexStartKind
.LineTerm);
839
} while (LexCharUtils.StartKind(ChNext()) ==
LexStartKind
.None && !Eof);