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