145 references to IsNext
Microsoft.Build (6)
Evaluation\Conditionals\Parser.cs (6)
115if (!_lexer.IsNext(Token.TokenType.EndOfInput)) 131if (!_lexer.IsNext(Token.TokenType.EndOfInput)) 185if (!_lexer.IsNext(Token.TokenType.EndOfInput)) 194if (_lexer.IsNext(Token.TokenType.EndOfInput)) 337if (!_lexer.IsNext(Token.TokenType.RightParenthesis)) 384if (_lexer.IsNext(token))
Microsoft.Build.Engine.UnitTests (139)
Scanner_Tests.cs (139)
74while (lexer.Advance() && !lexer.IsNext(Token.TokenType.EndOfInput)) 200Assert.True(lexer.IsNext(Token.TokenType.Numeric)); 205Assert.True(lexer.IsNext(Token.TokenType.Numeric)); 210Assert.True(lexer.IsNext(Token.TokenType.Numeric)); 215Assert.True(lexer.IsNext(Token.TokenType.Numeric)); 220Assert.True(lexer.IsNext(Token.TokenType.Numeric)); 225Assert.True(lexer.IsNext(Token.TokenType.Numeric)); 229Assert.True(lexer.IsNext(Token.TokenType.Numeric)); 233Assert.True(lexer.IsNext(Token.TokenType.Numeric)); 237Assert.True(lexer.IsNext(Token.TokenType.Numeric)); 248Assert.True(lexer.IsNext(Token.TokenType.Property)); 251Assert.True(lexer.IsNext(Token.TokenType.ItemList)); 254Assert.True(lexer.IsNext(Token.TokenType.String)); 259Assert.True(lexer.IsNext(Token.TokenType.String)); 264Assert.True(lexer.IsNext(Token.TokenType.And)); 268Assert.True(lexer.IsNext(Token.TokenType.Or)); 272Assert.True(lexer.IsNext(Token.TokenType.And)); 276Assert.True(lexer.IsNext(Token.TokenType.Or)); 287Assert.True(lexer.IsNext(Token.TokenType.LeftParenthesis)); 290Assert.True(lexer.IsNext(Token.TokenType.RightParenthesis)); 293Assert.True(lexer.IsNext(Token.TokenType.Comma)); 296Assert.True(lexer.IsNext(Token.TokenType.EqualTo)); 299Assert.True(lexer.IsNext(Token.TokenType.NotEqualTo)); 302Assert.True(lexer.IsNext(Token.TokenType.LessThan)); 305Assert.True(lexer.IsNext(Token.TokenType.GreaterThan)); 308Assert.True(lexer.IsNext(Token.TokenType.LessThanOrEqualTo)); 311Assert.True(lexer.IsNext(Token.TokenType.GreaterThanOrEqualTo)); 314Assert.True(lexer.IsNext(Token.TokenType.Not)); 324Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.ItemList)); 325Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.EndOfInput)); 328Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.String)); 329Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.EndOfInput)); 332Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.String)); 333Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.EndOfInput)); 336Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.String)); 337Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.EqualTo)); 338Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.String)); 339Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.EndOfInput)); 348Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.Function)); 350Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.LeftParenthesis)); 351Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.RightParenthesis)); 354Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.Function)); 356Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.LeftParenthesis)); 357Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.Numeric)); 358Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.RightParenthesis)); 361Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.Function)); 363Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.LeftParenthesis)); 364Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.Property)); 365Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.RightParenthesis)); 368Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.Function)); 370Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.LeftParenthesis)); 371Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.ItemList)); 372Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.RightParenthesis)); 375Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.Function)); 377Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.LeftParenthesis)); 378Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.String)); 379Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.RightParenthesis)); 382Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.Function)); 384Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.LeftParenthesis)); 385Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.String)); 386Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.RightParenthesis)); 389Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.Function)); 391Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.LeftParenthesis)); 392Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.String)); 393Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.Comma)); 394Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.Numeric)); 395Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.RightParenthesis)); 398Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.Function)); 400Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.LeftParenthesis)); 401Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.Property)); 402Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.Comma)); 403Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.String)); 404Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.Comma)); 405Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.Numeric)); 406Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.RightParenthesis)); 409Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.Function)); 411Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.LeftParenthesis)); 412Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.ItemList)); 413Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.Comma)); 414Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.Property)); 415Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.Comma)); 416Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.String)); 417Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.Comma)); 418Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.String)); 419Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.Comma)); 420Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.Numeric)); 421Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.RightParenthesis)); 430Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.String)); 434Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.String)); 438Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.String)); 442Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.ItemList)); 446Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.ItemList)); 460Assert.True(lexer.IsNext(Token.TokenType.String)); 462Assert.True(lexer.IsNext(Token.TokenType.EqualTo)); 464Assert.True(lexer.IsNext(Token.TokenType.Property)); 466Assert.True(lexer.IsNext(Token.TokenType.EndOfInput)); 470Assert.True(lexer.IsNext(Token.TokenType.Property)); 472Assert.True(lexer.IsNext(Token.TokenType.NotEqualTo)); 474Assert.True(lexer.IsNext(Token.TokenType.String)); 476Assert.True(lexer.IsNext(Token.TokenType.EndOfInput)); 480Assert.True(lexer.IsNext(Token.TokenType.Property)); 482Assert.True(lexer.IsNext(Token.TokenType.LessThan)); 484Assert.True(lexer.IsNext(Token.TokenType.Numeric)); 486Assert.True(lexer.IsNext(Token.TokenType.EndOfInput)); 498Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.Property)); 499Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.And)); 500Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.Property)); 503Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.Numeric)); 504Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.Property)); 505Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.Numeric)); 506Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.ItemList)); 507Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.String)); 508Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.LessThan)); 509Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.GreaterThan)); 510Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.String)); 511Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.LessThanOrEqualTo)); 512Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.String)); 513Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.GreaterThanOrEqualTo)); 514Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.String)); 515Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.EqualTo)); 516Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.Numeric)); 517Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.NotEqualTo)); 518Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.EndOfInput)); 521Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.Numeric)); 522Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.Property)); 523Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.Numeric)); 524Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.ItemList)); 525Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.String)); 526Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.LessThan)); 527Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.GreaterThan)); 528Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.String)); 529Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.LessThanOrEqualTo)); 530Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.String)); 531Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.GreaterThanOrEqualTo)); 532Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.String)); 533Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.EqualTo)); 534Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.Numeric)); 535Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.NotEqualTo)); 536Assert.True(lexer.Advance() && lexer.IsNext(Token.TokenType.EndOfInput));