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