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