116 references to ParseExpression
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (116)
Parser\ParseExpression.vb (116)
42Return ParseExpression(text.Value) 84ParseExpression("30 < 0") 89ParseExpression("30 <= 0") 94ParseExpression("AddressOf 3") 101ParseExpression("&H1") 102ParseExpression("&h1") 103ParseExpression("&H1") 104ParseExpression("&h1") 109ParseExpression("&O1") 110ParseExpression("&o1") 111ParseExpression("&O1") 112ParseExpression("&o1") 117ParseExpression("&B1") 118ParseExpression("&b1") 119ParseExpression("&B1") 120ParseExpression("&b1") 184ParseExpression("True") 185ParseExpression("False") 192ParseExpression("a") 193ParseExpression("B(Of X)") 194ParseExpression("B( Of y, [exit] )") 199ParseExpression("{ 2, 1}") 200ParseExpression("{ }") 207ParseExpression("{ {}, 2, 1}") 219Dim exp = ParseExpression("1?", True) 233Dim exp As CastExpressionSyntax = DirectCast(ParseExpression("TryCast(1 a)", True), CastExpressionSyntax) 257ParseExpression("TypeOf a is b") 260ParseExpression("TypeOf a isnot b") 267ParseExpression("gettype(a)") 268ParseExpression("gettype(a(of ))") 269ParseExpression("gettype(a(of b))") 270ParseExpression("gettype(a(of ,))") 271ParseExpression("gettype(a(of ,,))") 280ParseExpression("CType( a, b )") 281ParseExpression("DirectCast( a, b )") 282ParseExpression("TryCast( a, b )") 290ParseExpression("a.b") 291ParseExpression(" a.b ") 292ParseExpression(" a . b ") 293ParseExpression("a!b") 294ParseExpression("a.b.c.d") 301Dim expr = ParseExpression("MyBase.b") 303expr = ParseExpression("MyClass.b") 305expr = ParseExpression("Global.b") 308expr = ParseExpression("Me") 310expr = ParseExpression("Me.b") 316Dim expr = ParseExpression("(A)") 318expr = ParseExpression("((A)).B") 322expr = ParseExpression(<![CDATA[ 336Dim expr = ParseExpression("(A, B)") 338expr = ParseExpression("((A, B), C).C") 343expr = ParseExpression(<![CDATA[ 363Dim expr = ParseExpression("(A, )", expectsErrors:=True) 365expr = ParseExpression("((A, ), ).C", expectsErrors:=True) 373Dim expr = ParseExpression("(A:=1, B)") 375expr = ParseExpression("(A:=(A, B), C).C") 381expr = ParseExpression(<![CDATA[ 405Dim expr = ParseExpression("(A:=1)", expectsErrors:=True) 416expr = ParseExpression("(A:=, C).C", expectsErrors:=True) 428Dim expr = ParseExpression("if(true,A,B)") 430expr = ParseExpression("if ( A , B )") 438Dim expr = ParseExpression("New Boo(1,2)") 441expr = ParseExpression("New Moo(1){}") 444expr = ParseExpression("New Moo()(){{1},{2}}") 447expr = ParseExpression("New Moo(1)(){}") 450expr = ParseExpression("New Moo() With{.x= 42}") 453expr = ParseExpression("New With{key .x= 42}") 456expr = ParseExpression("New Moo() From{1,2,3}") 491Dim expr = ParseExpression("CObj(123)") 495expr = ParseExpression("CStr(aa)") 499expr = ParseExpression("CUint(aa)") 507Dim expr = ParseExpression("Integer.MaxValue") 511expr = ParseExpression("UShort.ToString()") 519Dim expr = ParseExpression("Blah()") 522expr = ParseExpression("Boo(1,2,3)") 525expr = ParseExpression("Boo(1,,3)") 528expr = ParseExpression("Boo(1,2, x:=3)") 531expr = ParseExpression("Boo(1,2, x:=3)(ha)") 537Dim expr = ParseExpression("From x in y") 540expr = ParseExpression("From x as integer in Blah") 543expr = ParseExpression("From x in y, z in a") 570Dim expr = ParseExpression("&H55 << 2") 574expr = ParseExpression("ÛÊÛÄÁÍäá") 584Dim expr = ParseExpression("From x in y From y in z") 587expr = ParseExpression("From x in y Let a = 2") 626Dim expr = ParseExpression("From x in y Take 2") 629expr = ParseExpression("From x in y Take While true") 653Dim expr = ParseExpression("From x in y Skip 2") 656expr = ParseExpression("From x in y Skip While true") 682Dim expr = ParseExpression("From x in y Distinct") 685expr = ParseExpression("From x in y Distinct Skip While true") 709Dim expr = ParseExpression("Aggregate x In ""qq"" Into s = Count") 712expr = ParseExpression("Aggregate x in y Into Sum ( 10 ), Any()") 715expr = ParseExpression("Aggregate x In ""qqq"" Into Sum(10), Any(), x = Count") 744Dim expr = ParseExpression("From x in y Order By x") 747expr = ParseExpression("From x in y Order By x, y") 750expr = ParseExpression("From x in y Order By x Ascending, y Descending") 772Dim expr = ParseExpression("From x In ""qq"" Select s = Count") 775expr = ParseExpression("From x in y Select Sum ( 10 ), Any()") 778expr = ParseExpression("From x In ""qqq"" Select Sum(10), Any(), x = Count") 807Dim expr = ParseExpression("From x In ""qq"" Group By x Into Group") 810expr = ParseExpression("From x In ""qq"" Let y = 2 Group x, y By x Into Group") 813expr = ParseExpression("From x In ""qq"" Group x By x Into a = Any(), Group, Count") 850Dim expr = ParseExpression("From x In ""qq"" Join y In ""www"" On x Equals y") 853expr = ParseExpression("From x In ""qq"" Join y In ""www"" On x Equals y And x Equals y") 856expr = ParseExpression("From x In ""qq"" Join y In ""www"" Join y in Blah On x Equals y And x Equals y On 1 Equals 2 And 3 Equals 4") 912Dim expr = ParseExpression("From From In ""qq"" Join y In ""www"" On From Equals y") 918Dim expr = ParseExpression("From x In ""qq"" Group Join y In ""www"" On x Equals y Into Count()") 921expr = ParseExpression("From x In ""qq"" Group Join y In ""www"" On x Equals y Into Group, Count") 924expr = ParseExpression("From x In {1, 2} Group Join y In {1, 2} On x Equals y And x + 1 Equals y + 1 Into g = Group, m = Max(x)") 977Dim expr = ParseExpression("1 \ 3 'constant with init expression") 983Dim expr = ParseExpression("GetType(Integer) IsNot GetType(Short)") 989Dim expr = ParseExpression("SByte.MinValue") 1030Dim expr = ParseExpression("<ns:e> a </ns:e>") 1040Dim expr = ParseExpression("<ns:e> a &lt; b </ns:e>") 1922Dim expr = ParseExpression("From x", expectsErrors:=True)