158 instantiations of SpanResult
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (158)
Emit\DynamicAnalysis\DynamicAnalysisResourceTests.vb (158)
90New SpanResult(3, 4, 6, 11, "Public Shared Sub Main()"), 91New SpanResult(4, 8, 4, 30, "Console.WriteLine(123)"), 92New SpanResult(5, 8, 5, 30, "Console.WriteLine(123)")) 95New SpanResult(8, 4, 10, 16, "Public Shared Function Fred As Integer"), 96New SpanResult(9, 8, 9, 16, "Return 3")) 99New SpanResult(12, 4, 14, 16, "Public Shared Function Barney(x As Integer)"), 100New SpanResult(13, 8, 13, 16, "Return x")) 103New SpanResult(17, 8, 19, 15, "Get"), 104New SpanResult(18, 12, 18, 21, "Return 12")) 107New SpanResult(20, 8, 21, 15, "Set")) 205New SpanResult(1, 4, 18, 16, "Function TestIf(a As Boolean, b As Boolean) As Integer"), 206New SpanResult(2, 27, 2, 28, "0"), 207New SpanResult(3, 18, 3, 24, "x += 1"), 208New SpanResult(3, 30, 3, 37, "x += 10"), 209New SpanResult(3, 11, 3, 12, "a"), 210New SpanResult(5, 12, 5, 18, "x += 1"), 211New SpanResult(7, 12, 7, 19, "x += 10"), 212New SpanResult(9, 12, 9, 20, "x += 100"), 213New SpanResult(6, 15, 6, 26, "a AndAlso b"), 214New SpanResult(4, 11, 4, 12, "a"), 215New SpanResult(12, 12, 12, 18, "x += 1"), 216New SpanResult(11, 11, 11, 12, "b"), 217New SpanResult(15, 12, 15, 19, "x += 10"), 218New SpanResult(14, 11, 14, 22, "a AndAlso b"), 219New SpanResult(17, 8, 17, 16, "Return x")) 222New SpanResult(20, 4, 43, 16, "Function TestDoLoops() As Integer"), 223New SpanResult(21, 27, 21, 30, "100"), 224New SpanResult(23, 12, 23, 18, "x += 1"), 225New SpanResult(22, 14, 22, 21, "x < 150"), 226New SpanResult(26, 12, 26, 18, "x += 1"), 227New SpanResult(25, 14, 25, 21, "x < 150"), 228New SpanResult(29, 12, 29, 18, "x += 1"), 229New SpanResult(28, 17, 28, 24, "x < 200"), 230New SpanResult(32, 12, 32, 18, "x += 1"), 231New SpanResult(31, 17, 31, 24, "x = 200"), 232New SpanResult(35, 12, 35, 18, "x += 1"), 233New SpanResult(36, 19, 36, 26, "x < 200"), 234New SpanResult(38, 12, 38, 18, "x += 1"), 235New SpanResult(39, 19, 39, 26, "x = 202"), 236New SpanResult(41, 12, 41, 20, "Return x")) 239New SpanResult(45, 4, 58, 11, "Sub TestForLoops()"), 240New SpanResult(46, 27, 46, 28, "0"), 241New SpanResult(47, 27, 47, 29, "10"), 242New SpanResult(48, 27, 48, 28, "3"), 243New SpanResult(49, 27, 49, 28, "x"), 244New SpanResult(50, 12, 50, 18, "z += 1"), 245New SpanResult(52, 27, 52, 28, "1"), 246New SpanResult(53, 12, 53, 18, "z += 1"), 247New SpanResult(55, 33, 55, 42, "{x, y, z}"), 248New SpanResult(56, 12, 56, 18, "z += 1")) 305New SpanResult(1, 4, 23, 11, "Sub TryAndSelect()"), 306New SpanResult(2, 27, 2, 28, "0"), 307New SpanResult(5, 35, 5, 36, "0"), 308New SpanResult(6, 32, 6, 33, "x"), 309New SpanResult(8, 28, 8, 34, "y += 1"), 310New SpanResult(10, 28, 10, 56, "Throw New System.Exception()"), 311New SpanResult(12, 28, 12, 34, "y += 1"), 312New SpanResult(14, 28, 14, 34, "y += 1"), 313New SpanResult(18, 16, 18, 22, "y += 1"), 314New SpanResult(21, 12, 21, 18, "y += 1")) 373New SpanResult(1, 4, 26, 11, "Sub Branches()"), 374New SpanResult(2, 27, 2, 28, "0"), 375New SpanResult(5, 12, 5, 19, "Exit Do"), 376New SpanResult(6, 12, 6, 18, "y += 1"), 377New SpanResult(8, 27, 8, 28, "1"), 378New SpanResult(9, 12, 9, 20, "Exit For"), 379New SpanResult(10, 12, 10, 18, "y += 1"), 380New SpanResult(13, 12, 13, 20, "Exit Try"), 381New SpanResult(14, 12, 14, 18, "y += 1"), 382New SpanResult(17, 20, 17, 21, "y"), 383New SpanResult(19, 16, 19, 27, "Exit Select"), 384New SpanResult(20, 16, 20, 22, "y += 0"), 385New SpanResult(23, 12, 23, 20, "Exit Sub"), 386New SpanResult(22, 11, 22, 16, "y = 0"), 387New SpanResult(25, 8, 25, 20, "GoTo MyLabel")) 467New SpanResult(3, 4, 5, 11, "Public Sub Main()"), 468New SpanResult(4, 8, 4, 14, "Fred()")) 471New SpanResult(8, 4, 9, 11, "Sub Fred()")) 474New SpanResult(11, 4, 13, 11, "Sub New()"), 475New SpanResult(12, 8, 12, 14, "x = 12")) 478New SpanResult(18, 4, 19, 11, "Public Sub New(x As Integer) ")) 481New SpanResult(22, 4, 23, 11, "Sub New()")) 484New SpanResult(26, 4, 28, 11, "Public Sub Fred()"), 485New SpanResult(27, 8, 27, 14, "Return")) 488New SpanResult(31, 4, 33, 16, "Function Barney() As Integer"), 489New SpanResult(32, 8, 32, 17, "Return 12")) 492New SpanResult(36, 4, 37, 11, "Shared Sub New()")) 495New SpanResult(40, 4, 42, 16, "Public Shared Operator +(a As c, b As c) As c"), 496New SpanResult(41, 8, 41, 16, "Return a")) 499New SpanResult(46, 8, 48, 15, "Get"), 500New SpanResult(47, 12, 47, 21, "Return 10")) 503New SpanResult(50, 8, 51, 15, "Set(value As Integer)")) 572New SpanResult(3, 4, 5, 11, "Public Sub Main()"), 573New SpanResult(4, 8, 4, 18, "TestMain()")) 576New SpanResult(7, 4, 9, 11, "Sub TestMain()"), 577New SpanResult(8, 21, 8, 28, "New C()"), 578New SpanResult(8, 31, 8, 50, "local = New C(1, 2)")) 581New SpanResult(13, 4, 15, 16, "Shared Function Init() As Integer"), 582New SpanResult(14, 8, 14, 17, "Return 33")) 585New SpanResult(17, 4, 19, 11, "Sub New()"), 586New SpanResult(25, 28, 25, 34, "Init()"), 587New SpanResult(26, 28, 26, 39, "Init() + 12"), 588New SpanResult(40, 28, 40, 32, "1234"), 589New SpanResult(18, 8, 18, 15, "_z = 12")) 592New SpanResult(21, 4, 23, 11, "Shared Sub New()"), 593New SpanResult(28, 36, 28, 42, "Init()"), 594New SpanResult(29, 36, 29, 48, "Init() + 153"), 595New SpanResult(41, 35, 41, 39, "5678"), 596New SpanResult(22, 8, 22, 17, "s_z = 123")) 599New SpanResult(32, 4, 34, 11, "Sub New(x As Integer)"), 600New SpanResult(25, 28, 25, 34, "Init()"), 601New SpanResult(26, 28, 26, 39, "Init() + 12"), 602New SpanResult(40, 28, 40, 32, "1234"), 603New SpanResult(33, 8, 33, 14, "_z = x")) 606New SpanResult(36, 4, 38, 11, "Sub New(a As Integer, b As Integer)"), 607New SpanResult(25, 28, 25, 34, "Init()"), 608New SpanResult(26, 28, 26, 39, "Init() + 12"), 609New SpanResult(40, 28, 40, 32, "1234"), 610New SpanResult(37, 8, 37, 18, "_z = a + b")) 662New SpanResult(3, 4, 5, 11, "Public Sub Main()"), 663New SpanResult(4, 8, 4, 18, "TestMain()")) 666New SpanResult(7, 4, 9, 11, "Sub TestMain()"), 667New SpanResult(8, 21, 8, 28, "New C()")) 670New SpanResult(13, 4, 15, 16, "Shared Function Init() As Integer"), 671New SpanResult(14, 8, 14, 17, "Return 33")) 674New SpanResult(19, 36, 19, 42, "Init()"), 675New SpanResult(20, 36, 20, 48, "Init() + 153"), 676New SpanResult(21, 36, 21, 39, "144"), 677New SpanResult(24, 35, 24, 39, "5678")) 680New SpanResult(17, 28, 17, 34, "Init()"), 681New SpanResult(18, 28, 18, 39, "Init() + 12"), 682New SpanResult(23, 28, 23, 32, "1234")) 759New SpanResult(3, 4, 5, 11, "Public Sub Main()"), 760New SpanResult(4, 8, 4, 18, "TestMain()")) 763New SpanResult(7, 4, 13, 11, "Sub TestMain()"), 764New SpanResult(8, 27, 8, 44, "C.s_c._function()"), 765New SpanResult(9, 18, 9, 25, "New D()"), 766New SpanResult(10, 27, 10, 44, "dd._c._function()"), 767New SpanResult(11, 28, 11, 45, "D.s_c._function()"), 768New SpanResult(12, 29, 12, 47, "dd._c1._function()")) 771New SpanResult(21, 43, 21, 45, "15"), 772New SpanResult(21, 25, 21, 46, "New C(Function () 15)")) 775New SpanResult(17, 4, 19, 11, "Public Sub New(f As System.Func(Of Integer))"), 776New SpanResult(18, 8, 18, 21, "_function = f")) 779New SpanResult(27, 46, 27, 49, "144"), 780New SpanResult(27, 29, 27, 50, "New C(Function() 144)"), 781New SpanResult(32, 36, 32, 46, "Return 156"), 782New SpanResult(31, 26, 33, 45, "New C(Function()")) 785New SpanResult(26, 38, 26, 41, "120"), 786New SpanResult(26, 21, 26, 42, "New C(Function() 120)"), 787New SpanResult(29, 28, 29, 38, "Return 130"), 788New SpanResult(28, 18, 30, 37, "New C(Function()")) 791New SpanResult(40, 46, 40, 50, "1444"), 792New SpanResult(40, 29, 40, 51, "New C(Function() 1444)"), 793New SpanResult(42, 36, 42, 47, "Return 1567"), 794New SpanResult(41, 26, 43, 45, "New C(Function()")) 797New SpanResult(48, 28, 48, 38, "Return 333"), 798New SpanResult(47, 18, 49, 37, "New C(Function()"))
2 references to SpanResult
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (2)
Emit\DynamicAnalysis\DynamicAnalysisResourceTests.vb (2)
831Private Shared Sub VerifySpans(reader As DynamicAnalysisDataReader, methodData As DynamicAnalysisMethod, sourceLines As String(), ParamArray expected As SpanResult()) 833For Each expectedSpanResult As SpanResult In expected