147 references to Advance
Microsoft.Build (2)
Evaluation\Conditionals\Parser.cs (2)
109if (!_lexer.Advance()) 386if (!_lexer.Advance())
Microsoft.Build.Engine.UnitTests (145)
Scanner_Tests.cs (145)
74while (lexer.Advance() && !lexer.IsNext(Token.TokenType.EndOfInput)) 199Assert.True(lexer.Advance()); 204Assert.True(lexer.Advance()); 209Assert.True(lexer.Advance()); 214Assert.True(lexer.Advance()); 219Assert.True(lexer.Advance()); 224Assert.True(lexer.Advance()); 228Assert.True(lexer.Advance()); 232Assert.True(lexer.Advance()); 236Assert.True(lexer.Advance()); 247Assert.True(lexer.Advance()); 250Assert.True(lexer.Advance()); 253Assert.True(lexer.Advance()); 258Assert.True(lexer.Advance()); 263Assert.True(lexer.Advance()); 267Assert.True(lexer.Advance()); 271Assert.True(lexer.Advance()); 275Assert.True(lexer.Advance()); 286Assert.True(lexer.Advance()); 289Assert.True(lexer.Advance()); 292Assert.True(lexer.Advance()); 295Assert.True(lexer.Advance()); 298Assert.True(lexer.Advance()); 301Assert.True(lexer.Advance()); 304Assert.True(lexer.Advance()); 307Assert.True(lexer.Advance()); 310Assert.True(lexer.Advance()); 313Assert.True(lexer.Advance()); 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)); 456Assert.True(lexer.Advance()); 459Assert.True(lexer.Advance()); 461lexer.Advance(); 463lexer.Advance(); 465lexer.Advance(); 469Assert.True(lexer.Advance()); 471lexer.Advance(); 473lexer.Advance(); 475lexer.Advance(); 479Assert.True(lexer.Advance()); 481lexer.Advance(); 483lexer.Advance(); 485lexer.Advance(); 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)); 546Assert.False(lexer.Advance()); 550Assert.True(lexer.Advance()); 551Assert.False(lexer.Advance()); 555Assert.False(lexer.Advance()); 566Assert.False(lexer.Advance());