56 references to Lex
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (56)
LexicalAndXml\LexicalTests.cs (56)
49
foreach (var token in
Lex
(text, options))
470
var tokens =
Lex
(text).ToList();
508
var tokens =
Lex
(text).ToList();
561
var tokens =
Lex
(text).ToArray();
1036
var token =
Lex
(text).First();
1528
var token =
Lex
(text).First();
1544
var token =
Lex
(text).First();
1562
var token =
Lex
(text).First();
3383
var token =
Lex
(text).First();
3485
var token =
Lex
("@0x0").First();
3521
token =
Lex
("@0b1c2d3e4f").First();
3833
var token =
Lex
("<<<<<<<").First();
3837
token =
Lex
(" <<<<<<<").First();
3843
token =
Lex
("<<<<<< ").First();
3847
token =
Lex
("<<<<<<< ").First();
3862
var token =
Lex
("{\r\n<<<<<<<").Skip(1).First();
3865
token =
Lex
("{\r\n <<<<<<<").Skip(1).First();
3870
token =
Lex
("{\r\n<<<<<< ").Skip(1).First();
3873
token =
Lex
("{\r\n<<<<<<< ").Skip(1).First();
3893
var token =
Lex
(">>>>>>>").First();
3896
token =
Lex
(" >>>>>>>").First();
3901
token =
Lex
(">>>>>> ").First();
3904
token =
Lex
(">>>>>>> ").First();
3916
var token =
Lex
("{\r\n>>>>>>>").Skip(1).First();
3919
token =
Lex
("{\r\n >>>>>>>").Skip(1).First();
3924
token =
Lex
("{\r\n>>>>>> ").Skip(1).First();
3927
token =
Lex
("{\r\n>>>>>>> ").Skip(1).First();
3937
var token =
Lex
(" =======").First();
3943
token =
Lex
("====== ").First();
3947
token =
Lex
("=======").First();
3953
token =
Lex
("======= trailing chars").First();
3965
token =
Lex
("======= Trailing\r\ndisabled text").First();
3988
token =
Lex
("======= Trailing\r\ndisabled text\r\n>>>> still disabled").First();
4010
token =
Lex
("======= Trailing\r\ndisabled text\r\n>>>>>>> Actually the end").First();
4043
token =
Lex
("======= Trailing\r\n>>>>>>> Actually the end").First();
4076
var token =
Lex
("{\r\n =======").Skip(1).First();
4082
token =
Lex
("{\r\n====== ").Skip(1).First();
4086
token =
Lex
("{\r\n=======").Skip(1).First();
4092
token =
Lex
("{\r\n======= trailing chars").Skip(1).First();
4099
token =
Lex
("{\r\n======= Trailing\r\ndisabled text").Skip(1).First();
4117
token =
Lex
("{\r\n======= Trailing\r\ndisabled text\r\n>>>> still disabled").Skip(1).First();
4134
token =
Lex
("{\r\n======= Trailing\r\ndisabled text\r\n>>>>>>> Actually the end").Skip(1).First();
4162
var token =
Lex
("""
4202
var token =
Lex
("""
4242
var token =
Lex
(" |||||||").First();
4248
token =
Lex
("|||||| ").First();
4252
token =
Lex
("|||||||").First();
4258
token =
Lex
("||||||| trailing chars").First();
4269
token =
Lex
("""
4290
token =
Lex
("""
4313
token =
Lex
("""
4343
token =
Lex
("""
4373
var token =
Lex
("""
4410
var token =
Lex
("""
4464
var token =
Lex
("""
4522
var token =
Lex
("""