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