28 references to TokenKind
Microsoft.CodeAnalysis (28)
CommandLine\AnalyzerConfig.SectionNameMatching.cs (28)
130var tokenKind = lexer.Lex(); 131if (tokenKind == TokenKind.SimpleCharacter) 178if (nameLexer.Lex() != TokenKind.SimpleCharacter) 237var tokenKind = lexer.Lex(); 240case TokenKind.BadToken: 243case TokenKind.SimpleCharacter: 247case TokenKind.Question: 251case TokenKind.Star: 256case TokenKind.StarStar: 260case TokenKind.OpenCurly: 291case TokenKind.CloseCurly: 294case TokenKind.Comma: 297case TokenKind.OpenBracket: 375if (lexer.Lex() != TokenKind.OpenCurly) 423if (lexer.Lex() != TokenKind.OpenCurly) 447if (numEnd is null || lexer.IsDone || lexer.Lex() != TokenKind.CloseCurly) 471public TokenKind Lex() 483return TokenKind.StarStar; 488return TokenKind.Star; 494return TokenKind.Question; 498return TokenKind.OpenCurly; 502return TokenKind.Comma; 506return TokenKind.CloseCurly; 510return TokenKind.OpenBracket; 518return TokenKind.BadToken; 521return TokenKind.SimpleCharacter; 526return TokenKind.SimpleCharacter; 533/// Call after getting <see cref="TokenKind.SimpleCharacter" /> from <see cref="Lex()" />