158 instantiations of SpanResult
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (158)
Emit\DynamicAnalysis\DynamicAnalysisResourceTests.vb (158)
89
New
SpanResult
(3, 4, 6, 11, "Public Shared Sub Main()"),
90
New
SpanResult
(4, 8, 4, 30, "Console.WriteLine(123)"),
91
New
SpanResult
(5, 8, 5, 30, "Console.WriteLine(123)"))
94
New
SpanResult
(8, 4, 10, 16, "Public Shared Function Fred As Integer"),
95
New
SpanResult
(9, 8, 9, 16, "Return 3"))
98
New
SpanResult
(12, 4, 14, 16, "Public Shared Function Barney(x As Integer)"),
99
New
SpanResult
(13, 8, 13, 16, "Return x"))
102
New
SpanResult
(17, 8, 19, 15, "Get"),
103
New
SpanResult
(18, 12, 18, 21, "Return 12"))
106
New
SpanResult
(20, 8, 21, 15, "Set"))
204
New
SpanResult
(1, 4, 18, 16, "Function TestIf(a As Boolean, b As Boolean) As Integer"),
205
New
SpanResult
(2, 27, 2, 28, "0"),
206
New
SpanResult
(3, 18, 3, 24, "x += 1"),
207
New
SpanResult
(3, 30, 3, 37, "x += 10"),
208
New
SpanResult
(3, 11, 3, 12, "a"),
209
New
SpanResult
(5, 12, 5, 18, "x += 1"),
210
New
SpanResult
(7, 12, 7, 19, "x += 10"),
211
New
SpanResult
(9, 12, 9, 20, "x += 100"),
212
New
SpanResult
(6, 15, 6, 26, "a AndAlso b"),
213
New
SpanResult
(4, 11, 4, 12, "a"),
214
New
SpanResult
(12, 12, 12, 18, "x += 1"),
215
New
SpanResult
(11, 11, 11, 12, "b"),
216
New
SpanResult
(15, 12, 15, 19, "x += 10"),
217
New
SpanResult
(14, 11, 14, 22, "a AndAlso b"),
218
New
SpanResult
(17, 8, 17, 16, "Return x"))
221
New
SpanResult
(20, 4, 43, 16, "Function TestDoLoops() As Integer"),
222
New
SpanResult
(21, 27, 21, 30, "100"),
223
New
SpanResult
(23, 12, 23, 18, "x += 1"),
224
New
SpanResult
(22, 14, 22, 21, "x < 150"),
225
New
SpanResult
(26, 12, 26, 18, "x += 1"),
226
New
SpanResult
(25, 14, 25, 21, "x < 150"),
227
New
SpanResult
(29, 12, 29, 18, "x += 1"),
228
New
SpanResult
(28, 17, 28, 24, "x < 200"),
229
New
SpanResult
(32, 12, 32, 18, "x += 1"),
230
New
SpanResult
(31, 17, 31, 24, "x = 200"),
231
New
SpanResult
(35, 12, 35, 18, "x += 1"),
232
New
SpanResult
(36, 19, 36, 26, "x < 200"),
233
New
SpanResult
(38, 12, 38, 18, "x += 1"),
234
New
SpanResult
(39, 19, 39, 26, "x = 202"),
235
New
SpanResult
(41, 12, 41, 20, "Return x"))
238
New
SpanResult
(45, 4, 58, 11, "Sub TestForLoops()"),
239
New
SpanResult
(46, 27, 46, 28, "0"),
240
New
SpanResult
(47, 27, 47, 29, "10"),
241
New
SpanResult
(48, 27, 48, 28, "3"),
242
New
SpanResult
(49, 27, 49, 28, "x"),
243
New
SpanResult
(50, 12, 50, 18, "z += 1"),
244
New
SpanResult
(52, 27, 52, 28, "1"),
245
New
SpanResult
(53, 12, 53, 18, "z += 1"),
246
New
SpanResult
(55, 33, 55, 42, "{x, y, z}"),
247
New
SpanResult
(56, 12, 56, 18, "z += 1"))
304
New
SpanResult
(1, 4, 23, 11, "Sub TryAndSelect()"),
305
New
SpanResult
(2, 27, 2, 28, "0"),
306
New
SpanResult
(5, 35, 5, 36, "0"),
307
New
SpanResult
(6, 32, 6, 33, "x"),
308
New
SpanResult
(8, 28, 8, 34, "y += 1"),
309
New
SpanResult
(10, 28, 10, 56, "Throw New System.Exception()"),
310
New
SpanResult
(12, 28, 12, 34, "y += 1"),
311
New
SpanResult
(14, 28, 14, 34, "y += 1"),
312
New
SpanResult
(18, 16, 18, 22, "y += 1"),
313
New
SpanResult
(21, 12, 21, 18, "y += 1"))
372
New
SpanResult
(1, 4, 26, 11, "Sub Branches()"),
373
New
SpanResult
(2, 27, 2, 28, "0"),
374
New
SpanResult
(5, 12, 5, 19, "Exit Do"),
375
New
SpanResult
(6, 12, 6, 18, "y += 1"),
376
New
SpanResult
(8, 27, 8, 28, "1"),
377
New
SpanResult
(9, 12, 9, 20, "Exit For"),
378
New
SpanResult
(10, 12, 10, 18, "y += 1"),
379
New
SpanResult
(13, 12, 13, 20, "Exit Try"),
380
New
SpanResult
(14, 12, 14, 18, "y += 1"),
381
New
SpanResult
(17, 20, 17, 21, "y"),
382
New
SpanResult
(19, 16, 19, 27, "Exit Select"),
383
New
SpanResult
(20, 16, 20, 22, "y += 0"),
384
New
SpanResult
(23, 12, 23, 20, "Exit Sub"),
385
New
SpanResult
(22, 11, 22, 16, "y = 0"),
386
New
SpanResult
(25, 8, 25, 20, "GoTo MyLabel"))
466
New
SpanResult
(3, 4, 5, 11, "Public Sub Main()"),
467
New
SpanResult
(4, 8, 4, 14, "Fred()"))
470
New
SpanResult
(8, 4, 9, 11, "Sub Fred()"))
473
New
SpanResult
(11, 4, 13, 11, "Sub New()"),
474
New
SpanResult
(12, 8, 12, 14, "x = 12"))
477
New
SpanResult
(18, 4, 19, 11, "Public Sub New(x As Integer) "))
480
New
SpanResult
(22, 4, 23, 11, "Sub New()"))
483
New
SpanResult
(26, 4, 28, 11, "Public Sub Fred()"),
484
New
SpanResult
(27, 8, 27, 14, "Return"))
487
New
SpanResult
(31, 4, 33, 16, "Function Barney() As Integer"),
488
New
SpanResult
(32, 8, 32, 17, "Return 12"))
491
New
SpanResult
(36, 4, 37, 11, "Shared Sub New()"))
494
New
SpanResult
(40, 4, 42, 16, "Public Shared Operator +(a As c, b As c) As c"),
495
New
SpanResult
(41, 8, 41, 16, "Return a"))
498
New
SpanResult
(46, 8, 48, 15, "Get"),
499
New
SpanResult
(47, 12, 47, 21, "Return 10"))
502
New
SpanResult
(50, 8, 51, 15, "Set(value As Integer)"))
571
New
SpanResult
(3, 4, 5, 11, "Public Sub Main()"),
572
New
SpanResult
(4, 8, 4, 18, "TestMain()"))
575
New
SpanResult
(7, 4, 9, 11, "Sub TestMain()"),
576
New
SpanResult
(8, 21, 8, 28, "New C()"),
577
New
SpanResult
(8, 31, 8, 50, "local = New C(1, 2)"))
580
New
SpanResult
(13, 4, 15, 16, "Shared Function Init() As Integer"),
581
New
SpanResult
(14, 8, 14, 17, "Return 33"))
584
New
SpanResult
(17, 4, 19, 11, "Sub New()"),
585
New
SpanResult
(25, 28, 25, 34, "Init()"),
586
New
SpanResult
(26, 28, 26, 39, "Init() + 12"),
587
New
SpanResult
(40, 28, 40, 32, "1234"),
588
New
SpanResult
(18, 8, 18, 15, "_z = 12"))
591
New
SpanResult
(21, 4, 23, 11, "Shared Sub New()"),
592
New
SpanResult
(28, 36, 28, 42, "Init()"),
593
New
SpanResult
(29, 36, 29, 48, "Init() + 153"),
594
New
SpanResult
(41, 35, 41, 39, "5678"),
595
New
SpanResult
(22, 8, 22, 17, "s_z = 123"))
598
New
SpanResult
(32, 4, 34, 11, "Sub New(x As Integer)"),
599
New
SpanResult
(25, 28, 25, 34, "Init()"),
600
New
SpanResult
(26, 28, 26, 39, "Init() + 12"),
601
New
SpanResult
(40, 28, 40, 32, "1234"),
602
New
SpanResult
(33, 8, 33, 14, "_z = x"))
605
New
SpanResult
(36, 4, 38, 11, "Sub New(a As Integer, b As Integer)"),
606
New
SpanResult
(25, 28, 25, 34, "Init()"),
607
New
SpanResult
(26, 28, 26, 39, "Init() + 12"),
608
New
SpanResult
(40, 28, 40, 32, "1234"),
609
New
SpanResult
(37, 8, 37, 18, "_z = a + b"))
661
New
SpanResult
(3, 4, 5, 11, "Public Sub Main()"),
662
New
SpanResult
(4, 8, 4, 18, "TestMain()"))
665
New
SpanResult
(7, 4, 9, 11, "Sub TestMain()"),
666
New
SpanResult
(8, 21, 8, 28, "New C()"))
669
New
SpanResult
(13, 4, 15, 16, "Shared Function Init() As Integer"),
670
New
SpanResult
(14, 8, 14, 17, "Return 33"))
673
New
SpanResult
(19, 36, 19, 42, "Init()"),
674
New
SpanResult
(20, 36, 20, 48, "Init() + 153"),
675
New
SpanResult
(21, 36, 21, 39, "144"),
676
New
SpanResult
(24, 35, 24, 39, "5678"))
679
New
SpanResult
(17, 28, 17, 34, "Init()"),
680
New
SpanResult
(18, 28, 18, 39, "Init() + 12"),
681
New
SpanResult
(23, 28, 23, 32, "1234"))
758
New
SpanResult
(3, 4, 5, 11, "Public Sub Main()"),
759
New
SpanResult
(4, 8, 4, 18, "TestMain()"))
762
New
SpanResult
(7, 4, 13, 11, "Sub TestMain()"),
763
New
SpanResult
(8, 27, 8, 44, "C.s_c._function()"),
764
New
SpanResult
(9, 18, 9, 25, "New D()"),
765
New
SpanResult
(10, 27, 10, 44, "dd._c._function()"),
766
New
SpanResult
(11, 28, 11, 45, "D.s_c._function()"),
767
New
SpanResult
(12, 29, 12, 47, "dd._c1._function()"))
770
New
SpanResult
(21, 43, 21, 45, "15"),
771
New
SpanResult
(21, 25, 21, 46, "New C(Function () 15)"))
774
New
SpanResult
(17, 4, 19, 11, "Public Sub New(f As System.Func(Of Integer))"),
775
New
SpanResult
(18, 8, 18, 21, "_function = f"))
778
New
SpanResult
(27, 46, 27, 49, "144"),
779
New
SpanResult
(27, 29, 27, 50, "New C(Function() 144)"),
780
New
SpanResult
(32, 36, 32, 46, "Return 156"),
781
New
SpanResult
(31, 26, 33, 45, "New C(Function()"))
784
New
SpanResult
(26, 38, 26, 41, "120"),
785
New
SpanResult
(26, 21, 26, 42, "New C(Function() 120)"),
786
New
SpanResult
(29, 28, 29, 38, "Return 130"),
787
New
SpanResult
(28, 18, 30, 37, "New C(Function()"))
790
New
SpanResult
(40, 46, 40, 50, "1444"),
791
New
SpanResult
(40, 29, 40, 51, "New C(Function() 1444)"),
792
New
SpanResult
(42, 36, 42, 47, "Return 1567"),
793
New
SpanResult
(41, 26, 43, 45, "New C(Function()"))
796
New
SpanResult
(48, 28, 48, 38, "Return 333"),
797
New
SpanResult
(47, 18, 49, 37, "New C(Function()"))
2 references to SpanResult
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (2)
Emit\DynamicAnalysis\DynamicAnalysisResourceTests.vb (2)
830
Private Shared Sub VerifySpans(reader As DynamicAnalysisDataReader, methodData As DynamicAnalysisMethod, sourceLines As String(), ParamArray expected As
SpanResult
())
832
For Each expectedSpanResult As
SpanResult
In expected