70 instantiations of Scanner
Microsoft.Build (1)
Evaluation\Conditionals\Parser.cs (1)
108_lexer = new Scanner(expression, _options);
Microsoft.Build.Engine.UnitTests (69)
Scanner_Tests.cs (69)
86Scanner lexer = new Scanner("a=b", ParserOptions.AllowProperties); 98Scanner lexer = new Scanner("$(", ParserOptions.AllowProperties); 102lexer = new Scanner("$x", ParserOptions.AllowProperties); 117Scanner lexer = new Scanner(pattern, ParserOptions.AllowProperties); 133Scanner lexer = new Scanner(pattern, ParserOptions.AllowProperties); 144Scanner lexer = new Scanner("@(", ParserOptions.AllowAll); 149lexer = new Scanner("@x", ParserOptions.AllowAll); 154lexer = new Scanner("@(x", ParserOptions.AllowAll); 159lexer = new Scanner("@(x->'%(y)", ParserOptions.AllowAll); 164lexer = new Scanner("@(x->'%(y)', 'x", ParserOptions.AllowAll); 169lexer = new Scanner("@(x->'%(y)', 'x'", ParserOptions.AllowAll); 182Scanner lexer = new Scanner("false or 'abc", ParserOptions.AllowAll); 187lexer = new Scanner("\'", ParserOptions.AllowAll); 198Scanner lexer = new Scanner("1234", ParserOptions.AllowAll); 203lexer = new Scanner("-1234", ParserOptions.AllowAll); 208lexer = new Scanner("+1234", ParserOptions.AllowAll); 213lexer = new Scanner("1234.1234", ParserOptions.AllowAll); 218lexer = new Scanner(".1234", ParserOptions.AllowAll); 223lexer = new Scanner("1234.", ParserOptions.AllowAll); 227lexer = new Scanner("0x1234", ParserOptions.AllowAll); 231lexer = new Scanner("0X1234abcd", ParserOptions.AllowAll); 235lexer = new Scanner("0x1234ABCD", ParserOptions.AllowAll); 246Scanner lexer = new Scanner("$(foo)", ParserOptions.AllowAll); 249lexer = new Scanner("@(foo)", ParserOptions.AllowAll); 252lexer = new Scanner("abcde", ParserOptions.AllowAll); 257lexer = new Scanner("'abc-efg'", ParserOptions.AllowAll); 262lexer = new Scanner("and", ParserOptions.AllowAll); 266lexer = new Scanner("or", ParserOptions.AllowAll); 270lexer = new Scanner("AnD", ParserOptions.AllowAll); 274lexer = new Scanner("Or", ParserOptions.AllowAll); 285Scanner lexer = new Scanner("(", ParserOptions.AllowAll); 288lexer = new Scanner(")", ParserOptions.AllowAll); 291lexer = new Scanner(",", ParserOptions.AllowAll); 294lexer = new Scanner("==", ParserOptions.AllowAll); 297lexer = new Scanner("!=", ParserOptions.AllowAll); 300lexer = new Scanner("<", ParserOptions.AllowAll); 303lexer = new Scanner(">", ParserOptions.AllowAll); 306lexer = new Scanner("<=", ParserOptions.AllowAll); 309lexer = new Scanner(">=", ParserOptions.AllowAll); 312lexer = new Scanner("!", ParserOptions.AllowAll); 323Scanner lexer = new Scanner("@(Foo, ' ')", ParserOptions.AllowAll); 327lexer = new Scanner("'@(Foo, ' ')'", ParserOptions.AllowAll); 331lexer = new Scanner("'%40(( '", ParserOptions.AllowAll); 335lexer = new Scanner("'@(Complex_ItemType-123, ';')' == ''", ParserOptions.AllowAll); 347Scanner lexer = new Scanner("Foo()", ParserOptions.AllowAll); 353lexer = new Scanner("Foo( 1 )", ParserOptions.AllowAll); 360lexer = new Scanner("Foo( $(Property) )", ParserOptions.AllowAll); 367lexer = new Scanner("Foo( @(ItemList) )", ParserOptions.AllowAll); 374lexer = new Scanner("Foo( simplestring )", ParserOptions.AllowAll); 381lexer = new Scanner("Foo( 'Not a Simple String' )", ParserOptions.AllowAll); 388lexer = new Scanner("Foo( 'Not a Simple String', 1234 )", ParserOptions.AllowAll); 397lexer = new Scanner("Foo( $(Property), 'Not a Simple String', 1234 )", ParserOptions.AllowAll); 408lexer = new Scanner("Foo( @(ItemList), $(Property), simplestring, 'Not a Simple String', 1234 )", ParserOptions.AllowAll); 429Scanner lexer = new Scanner("'String with a $(Property) inside'", ParserOptions.AllowAll); 433lexer = new Scanner("'String with an embedded \\' in it'", ParserOptions.AllowAll); 437lexer = new Scanner("'String with a $(Property) inside'", ParserOptions.AllowAll); 441lexer = new Scanner("@(list, ' ')", ParserOptions.AllowAll); 445lexer = new Scanner("@(files->'%(Filename)')", ParserOptions.AllowAll); 455Scanner lexer = new Scanner("1234", ParserOptions.AllowAll); 458lexer = new Scanner("'abc-efg'==$(foo)", ParserOptions.AllowAll); 468lexer = new Scanner("$(debug)!=true", ParserOptions.AllowAll); 478lexer = new Scanner("$(VERSION)<5", ParserOptions.AllowAll); 497lexer = new Scanner("$(DEBUG) and $(FOO)", ParserOptions.AllowAll); 502lexer = new Scanner("1234$(DEBUG)0xabcd@(foo)asdf<>'foo'<=false>=true==1234!=", ParserOptions.AllowAll); 520lexer = new Scanner(" 1234 $(DEBUG) 0xabcd \n@(foo) \nasdf \n< \n> \n'foo' \n<= \nfalse \n>= \ntrue \n== \n 1234 \n!= ", ParserOptions.AllowAll); 545Scanner lexer = new Scanner("@(foo)", ParserOptions.AllowProperties); 549lexer = new Scanner("1234 '@(foo)'", ParserOptions.AllowProperties); 554lexer = new Scanner("'1234 @(foo)'", ParserOptions.AllowProperties); 565Scanner lexer = new Scanner("'$(DEBUG) == true", ParserOptions.AllowAll);
18 references to Scanner
Microsoft.Build (1)
Evaluation\Conditionals\Parser.cs (1)
45private Scanner _lexer;
Microsoft.Build.Engine.UnitTests (17)
Scanner_Tests.cs (17)
72private void AdvanceToScannerError(Scanner lexer) 86Scanner lexer = new Scanner("a=b", ParserOptions.AllowProperties); 98Scanner lexer = new Scanner("$(", ParserOptions.AllowProperties); 117Scanner lexer = new Scanner(pattern, ParserOptions.AllowProperties); 133Scanner lexer = new Scanner(pattern, ParserOptions.AllowProperties); 144Scanner lexer = new Scanner("@(", ParserOptions.AllowAll); 182Scanner lexer = new Scanner("false or 'abc", ParserOptions.AllowAll); 198Scanner lexer = new Scanner("1234", ParserOptions.AllowAll); 246Scanner lexer = new Scanner("$(foo)", ParserOptions.AllowAll); 285Scanner lexer = new Scanner("(", ParserOptions.AllowAll); 323Scanner lexer = new Scanner("@(Foo, ' ')", ParserOptions.AllowAll); 347Scanner lexer = new Scanner("Foo()", ParserOptions.AllowAll); 429Scanner lexer = new Scanner("'String with a $(Property) inside'", ParserOptions.AllowAll); 455Scanner lexer = new Scanner("1234", ParserOptions.AllowAll); 495Scanner lexer; 545Scanner lexer = new Scanner("@(foo)", ParserOptions.AllowProperties); 565Scanner lexer = new Scanner("'$(DEBUG) == true", ParserOptions.AllowAll);