47 references to ParseExpression
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (47)
PreprocessorEETests.vb (47)
16Return ParseExpression(text.Value)
42Dim tree = ParseExpression("True Or True")
47tree = ParseExpression("Not True")
52tree = ParseExpression("True Xor False")
57tree = ParseExpression("True + False")
62tree = ParseExpression("True * False")
67tree = ParseExpression("True ^ False")
72tree = ParseExpression("True >> False")
90Dim tree = ParseExpression(" If(True, 42, 43)")
100Dim tree = ParseExpression("1 + 1")
105tree = ParseExpression("1US - 1S")
110tree = ParseExpression("1UL + 2UL")
115tree = ParseExpression("5US + 5S")
120tree = ParseExpression("-5US + 5S")
125tree = ParseExpression("-5US / 5S")
130tree = ParseExpression("-5US \ 5S")
135tree = ParseExpression("1L + 1UL")
140tree = ParseExpression("1 ^ 2")
145tree = ParseExpression("16 >> 2US")
155Dim tree = ParseExpression(" 2 > 1")
160tree = ParseExpression("(-1 = 3 > 1)")
168Dim tree = ParseExpression("""qqqq""")
177tree = ParseExpression("True >> False = -1")
181tree = ParseExpression("If(True > False, 42, True >> False) < 0")
190Dim tree = ParseExpression("""qqqq""")
196tree = ParseExpression("X")
202tree = ParseExpression("X + Y")
207tree = ParseExpression("X$ + Y")
215tree = ParseExpression("X & Y")
220tree = ParseExpression("X & [Y]")
225tree = ParseExpression("X + 1")
232tree = ParseExpression("X")
242Dim tree = ParseExpression("CBool(WIN32)")
250Dim tree = ParseExpression("Not OE_WIN9X")
273Dim tree = ParseExpression("""A""c = ""a""c")
287Dim tree = ParseExpression("DirectCast(42, Integer)")
291tree = ParseExpression("TryCast(42, Short)")
296tree = ParseExpression("CType(42, UShort)")
300tree = ParseExpression("DirectCast(42UI, UInteger)")
304tree = ParseExpression("TryCast(-420000, Long)")
309tree = ParseExpression("CType(420000, ULong)")
313tree = ParseExpression("DirectCast(42.2D, Decimal)")
317tree = ParseExpression("TryCast(-42.222, Single)")
322tree = ParseExpression("CType(-42, SByte)")
326tree = ParseExpression("DirectCast(CByte(42), Byte)")
330tree = ParseExpression("TryCast(""4"", Char)")
339Dim tree = ParseExpression("DirectCast(Nothing, Object)")