617 references to CompileExpression
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler.UnitTests (352)
AccessibilityTests.cs (1)
152
context.
CompileExpression
("this.M(this.P)", out error, testData);
CompileExpressionsTests.cs (10)
520
var result = context.
CompileExpression
("z ?? x", out error, testData);
688
var result = context.
CompileExpression
("z ?? x", out error, testData);
738
var result = context.
CompileExpression
(
800
var result = context.
CompileExpression
(
868
var result = context.
CompileExpression
(
958
var result = context.
CompileExpression
(
1004
var result = context.
CompileExpression
(
1164
var result = context.
CompileExpression
(
1316
var result = context.
CompileExpression
(
1477
var result = context.
CompileExpression
(
DebuggerDisplayAttributeTests.cs (12)
197
var result = context.
CompileExpression
("F(default(T), default(U))", out error, testData);
251
var result = context.
CompileExpression
("typeof(N.C) ?? typeof(C)", out error, testData);
270
result = context.
CompileExpression
("typeof(A.C) ?? typeof(B) ?? typeof(C)", out error, testData);
273
result = context.
CompileExpression
("typeof(B) ?? typeof(C)", out error, testData);
313
var result = context.
CompileExpression
("typeof(A) ?? typeof(B)", out error, testData);
316
result = context.
CompileExpression
("typeof(A) ?? typeof(B) ?? typeof(C)", out error, testData);
319
result = context.
CompileExpression
("typeof(B) ?? typeof(C)", out error, testData);
339
var result = context.
CompileExpression
("$ReturnValue", out error, testData);
393
var result = context.
CompileExpression
("F", out error);
397
result = context.
CompileExpression
("F, nq,ac", out error);
434
var result = context.
CompileExpression
("GetDebuggerDisplay()", out error, testData);
453
var result = context.
CompileExpression
(expr, out error, testData);
DynamicTests.cs (6)
792
var result = context.
CompileExpression
("d", out error);
980
var result = context.
CompileExpression
("d.M()", out error, testData);
1047
var result = context.
CompileExpression
("G(async () => await d())", out error, testData);
1312
result = context.
CompileExpression
("Goo(x)", out error, testData);
1380
var result = context.
CompileExpression
("Goo(x)", out error, testData);
1424
result = context.
CompileExpression
("Goo(y)", out error, testData);
ExpressionCompilerTests.cs (120)
70
var result = context.
CompileExpression
("1", out error);
101
var result = context.
CompileExpression
("M(", out error);
173
var result = context.
CompileExpression
(expr, out error, testData);
276
var result = context.
CompileExpression
("F(y)", out error, testData);
280
result = context.
CompileExpression
("F(x)", out error, testData);
458
var result = context.
CompileExpression
("x;", out error);
460
result = context.
CompileExpression
("x \t;\t ", out error);
463
result = context.
CompileExpression
("x;;", out error);
466
result = context.
CompileExpression
("x;//", out error);
468
result = context.
CompileExpression
("x//;", out error);
471
result = context.
CompileExpression
("x/*...*/", out error);
473
result = context.
CompileExpression
("x/*;*/", out error);
475
result = context.
CompileExpression
("x;/*...*/", out error);
477
result = context.
CompileExpression
("x/*...*/;", out error);
480
result = context.
CompileExpression
(" ; ", out error);
502
var result = context.
CompileExpression
("x", out error);
505
result = context.
CompileExpression
("x,", out error);
507
result = context.
CompileExpression
("x,,", out error);
509
result = context.
CompileExpression
("x y", out error);
511
result = context.
CompileExpression
("x yy zz", out error);
513
result = context.
CompileExpression
("x,,y", out error);
515
result = context.
CompileExpression
("x,yy,zz,ww", out error);
517
result = context.
CompileExpression
("x, y z", out error);
519
result = context.
CompileExpression
("x, y , z ", out error);
521
result = context.
CompileExpression
("x, y, z,", out error);
523
result = context.
CompileExpression
("x,y,z;w", out error);
525
result = context.
CompileExpression
("x, y;, z", out error);
528
result = context.
CompileExpression
("x // ,f", out error);
531
result = context.
CompileExpression
("x /*,f*/, g, h", out error);
538
result = context.
CompileExpression
("x; ", out error);
541
result = context.
CompileExpression
(",f", out error);
544
result = context.
CompileExpression
("x,f;\t", out error);
547
result = context.
CompileExpression
("x;,f", out error);
549
result = context.
CompileExpression
("x; f, g", out error);
595
context.
CompileExpression
("a[0]", out error, testData);
639
var result = context.
CompileExpression
("this.F() ?? this.G ?? this.P", out error, testData);
659
result = context.
CompileExpression
("F(this.F)", out error, testData);
672
result = context.
CompileExpression
("F(new System.Func<object>(this.F))", out error, testData);
714
var result = context.
CompileExpression
("base.F() ?? base.G ?? base.P", out error, testData);
734
result = context.
CompileExpression
("F(base.F)", out error, testData);
746
result = context.
CompileExpression
("F(new System.Func<object>(base.F))", out error, testData);
1074
context.
CompileExpression
("c.F", out error, testData);
1116
context.
CompileExpression
("c.F", out error, testData);
1157
context.
CompileExpression
("s", out error, testData);
1183
context.
CompileExpression
("f", out error, testData);
1200
context.
CompileExpression
("i", out error, testData);
1258
context.
CompileExpression
("(int)p1[0] + p2[0] + ((int*)p3)[0]", out error, testData);
1317
context.
CompileExpression
(
1796
var result = context.
CompileExpression
("x[y]", out error, testData);
1924
context.
CompileExpression
(
2037
context.
CompileExpression
(
2063
context.
CompileExpression
(
2148
context.
CompileExpression
(
2205
context.
CompileExpression
(
2354
context.
CompileExpression
("G(async() => await F())", out error, testData);
2389
context.
CompileExpression
(@"G(async() =>
2522
var result = context.
CompileExpression
("(object)t ?? (object)w ?? typeof(V) ?? typeof(X)", out error, testData);
2562
context.
CompileExpression
("(object)t ?? typeof(T) ?? typeof(U)", out error, testData);
2590
context.
CompileExpression
("F(() => this.M(u))", out error, testData);
2629
var result = context.
CompileExpression
("new System.ArgIterator(__arglist)", out error, testData);
3017
context.
CompileExpression
("F(() => this.F(x))", out error, testData);
3052
context.
CompileExpression
("F(() => base.F(y))", out error, testData);
3110
context.
CompileExpression
("e.HasValue", out error, testData);
3174
context.
CompileExpression
("this.F(y)", out error, testData);
3194
context.
CompileExpression
("base.F(x)", out error, testData);
3262
context.
CompileExpression
("this.F(y)", out error, testData);
3282
context.
CompileExpression
("base.F(x)", out error, testData);
3534
context.
CompileExpression
("new [] { 1, 2, 3, 4, 5 }", out error, testData);
3577
context.
CompileExpression
("mgr.Reports.Where(e => e.Salary < 100).Select(e => new { e.Name, e.Salary }).First()", out error, testData);
3634
context.
CompileExpression
("F(() => o + 1)", out error, testData);
3693
context.
CompileExpression
("F(() => null ?? new object())", out error, testData);
3788
var result = context.
CompileExpression
("E.First(o)", out error, testData);
3824
context.
CompileExpression
("this", out error, testData);
3977
context.
CompileExpression
("w.F2", out error, testData);
4230
var result = context.
CompileExpression
("G(F)", out var error, testData);
4490
context.
CompileExpression
("checked(2147483647 + 1)", out error, testData);
4494
context.
CompileExpression
("unchecked(2147483647 + 1)", out error, testData);
4506
context.
CompileExpression
("2147483647 + 1", out error, testData);
4537
context.
CompileExpression
("u = 2147483647 + 1", out error, testData);
4545
context.
CompileExpression
("u = 2147483647 + 1u", out error, testData);
4644
context.
CompileExpression
("D", out error, testData);
4710
context.
CompileExpression
("x", out error, testData);
4746
context.
CompileExpression
("t", out error, testData);
4807
context.
CompileExpression
("x", out error, testData);
4842
var result = context.
CompileExpression
("this?.F()", out error, testData);
4863
result = context.
CompileExpression
("(new C())?.G()?.F()", out error, testData);
4868
result = context.
CompileExpression
("G()?.M()", out error, testData);
4911
var result = context.
CompileExpression
("F()", out error, testData);
4965
var result = context.
CompileExpression
("SXL.LoadOptions.None.ToString()", out error, testData);
4970
result = context.
CompileExpression
("LO.None.ToString()", out error, testData);
4975
result = context.
CompileExpression
("LoadOptions.None.ToString()", out error, testData);
4980
result = context.
CompileExpression
("X.System.Xml.Linq.LoadOptions.None.ToString()", out error, testData);
4985
result = context.
CompileExpression
("X::System.Xml.Linq.LoadOptions.None.ToString()", out error, testData);
5031
var result = context.
CompileExpression
("A.LoadOptions.None.ToString()", out error, testData);
5036
result = context.
CompileExpression
("B.LoadOptions.None.ToString()", out error, testData);
5073
var result = context.
CompileExpression
(@"A.Parse(""0"")", out var error, testData);
5110
var result = context.
CompileExpression
("new X::System.Xml.XmlDocument()", out error, testData);
5123
result = context.
CompileExpression
("X::System.Xml.Linq.LoadOptions.None", out error, testData);
5440
context.
CompileExpression
("z", out error, testData);
5450
context.
CompileExpression
("y", out error, testData);
5540
context.
CompileExpression
("typeof(T)", out error, testData);
5576
context.
CompileExpression
("typeof(T)", out error, testData);
5734
context.
CompileExpression
("new A()", out error, testData);
5860
evalContext.
CompileExpression
("1", out error, testData);
5891
evalContext.
CompileExpression
("1", out error, testData);
5929
context.
CompileExpression
("typeof(U)", out error, testData);
5971
context.
CompileExpression
("typeof(Action<>)", out error, testData);
5976
context.
CompileExpression
("typeof(Action<> )", out error, testData);
5980
context.
CompileExpression
("typeof(Action<Action<>>)", out error, testData);
5983
context.
CompileExpression
("typeof(Action<Action< > > )", out error);
5986
context.
CompileExpression
("typeof(Action<>a)", out error);
6108
context.
CompileExpression
("q.Where(c => true)", out error, testData);
6163
context.
CompileExpression
("F(async () => new C())", out error, testData);
6203
context.
CompileExpression
("M(() => x)", out error, testData);
6287
var result = context.
CompileExpression
("x + y", out error, testData);
6347
context.
CompileExpression
("from x in list from y in list where x > 0 select new { x, y };", out error, testData);
6429
context.
CompileExpression
("c.Where(n => n > 0)", out error, testData);
6642
var result = context.
CompileExpression
("new object?[0]", out error, testData);
6691
context.
CompileExpression
("F((object? o) => o, null)", out error, testData);
6737
context.
CompileExpression
("M(() => ref local)", out var error, testData);
HoistedStateMachineLocalTests.cs (118)
120
context.
CompileExpression
("x", out error);
125
context.
CompileExpression
("x", out error, testData);
131
context.
CompileExpression
("x", out error, testData);
136
context.
CompileExpression
("x", out error);
141
context.
CompileExpression
("x", out error, testData);
147
context.
CompileExpression
("x", out error, testData);
152
context.
CompileExpression
("x", out error);
226
context.
CompileExpression
("x", out error);
231
context.
CompileExpression
("x", out error, testData);
237
context.
CompileExpression
("x", out error, testData);
242
context.
CompileExpression
("x", out error);
247
context.
CompileExpression
("x", out error, testData);
253
context.
CompileExpression
("x", out error, testData);
258
context.
CompileExpression
("x", out error);
275
context.
CompileExpression
("t", out error);
278
context.
CompileExpression
("u", out error);
281
context.
CompileExpression
("x", out error);
285
context.
CompileExpression
("ch", out error, testData);
315
context.
CompileExpression
("t", out error);
318
context.
CompileExpression
("u", out error);
322
context.
CompileExpression
("x", out error, testData);
339
context.
CompileExpression
("ch", out error, testData);
369
context.
CompileExpression
("t", out error);
373
context.
CompileExpression
("u", out error, testData);
389
context.
CompileExpression
("x", out error);
393
context.
CompileExpression
("ch", out error, testData);
423
context.
CompileExpression
("t", out error);
426
context.
CompileExpression
("u", out error);
429
context.
CompileExpression
("x", out error);
433
context.
CompileExpression
("ch", out error, testData);
464
context.
CompileExpression
("t", out error, testData);
480
context.
CompileExpression
("u", out error);
483
context.
CompileExpression
("x", out error);
487
context.
CompileExpression
("ch", out error, testData);
518
context.
CompileExpression
("t", out error, testData);
535
context.
CompileExpression
("u", out error);
539
context.
CompileExpression
("x", out error, testData);
556
context.
CompileExpression
("ch", out error, testData);
586
context.
CompileExpression
("t", out error);
589
context.
CompileExpression
("u", out error);
592
context.
CompileExpression
("x", out error);
596
context.
CompileExpression
("ch", out error, testData);
626
context.
CompileExpression
("t", out error);
629
context.
CompileExpression
("u", out error);
633
context.
CompileExpression
("x", out error, testData);
650
context.
CompileExpression
("ch", out error, testData);
680
context.
CompileExpression
("t", out error);
684
context.
CompileExpression
("u", out error, testData);
700
context.
CompileExpression
("x", out error);
704
context.
CompileExpression
("ch", out error, testData);
734
context.
CompileExpression
("t", out error);
737
context.
CompileExpression
("u", out error);
740
context.
CompileExpression
("x", out error);
744
context.
CompileExpression
("ch", out error, testData);
774
context.
CompileExpression
("t", out error);
777
context.
CompileExpression
("u", out error);
780
context.
CompileExpression
("x", out error);
784
context.
CompileExpression
("ch", out error, testData);
799
context.
CompileExpression
("typeof(T)", out error);
801
context.
CompileExpression
("typeof(U)", out error);
820
context.
CompileExpression
("t", out error);
823
context.
CompileExpression
("u", out error);
827
context.
CompileExpression
("x", out error, testData);
844
context.
CompileExpression
("ch", out error, testData);
859
context.
CompileExpression
("typeof(T)", out error);
861
context.
CompileExpression
("typeof(U)", out error);
880
context.
CompileExpression
("t", out error);
884
context.
CompileExpression
("u", out error, testData);
900
context.
CompileExpression
("x", out error);
904
context.
CompileExpression
("ch", out error, testData);
919
context.
CompileExpression
("typeof(T)", out error);
921
context.
CompileExpression
("typeof(U)", out error);
940
context.
CompileExpression
("t", out error);
943
context.
CompileExpression
("u", out error);
946
context.
CompileExpression
("x", out error);
950
context.
CompileExpression
("ch", out error, testData);
965
context.
CompileExpression
("typeof(T)", out error);
967
context.
CompileExpression
("typeof(U)", out error);
987
context.
CompileExpression
("t", out error, testData);
1003
context.
CompileExpression
("u", out error);
1006
context.
CompileExpression
("x", out error);
1010
context.
CompileExpression
("ch", out error, testData);
1025
context.
CompileExpression
("typeof(T)", out error);
1027
context.
CompileExpression
("typeof(U)", out error);
1047
context.
CompileExpression
("t", out error, testData);
1064
context.
CompileExpression
("u", out error);
1068
context.
CompileExpression
("x", out error, testData);
1085
context.
CompileExpression
("ch", out error, testData);
1100
context.
CompileExpression
("typeof(T)", out error);
1102
context.
CompileExpression
("typeof(U)", out error);
1121
context.
CompileExpression
("t", out error);
1124
context.
CompileExpression
("u", out error);
1127
context.
CompileExpression
("x", out error);
1131
context.
CompileExpression
("ch", out error, testData);
1146
context.
CompileExpression
("typeof(T)", out error);
1148
context.
CompileExpression
("typeof(U)", out error);
1167
context.
CompileExpression
("t", out error);
1170
context.
CompileExpression
("u", out error);
1174
context.
CompileExpression
("x", out error, testData);
1191
context.
CompileExpression
("ch", out error, testData);
1206
context.
CompileExpression
("typeof(T)", out error);
1208
context.
CompileExpression
("typeof(U)", out error);
1227
context.
CompileExpression
("t", out error);
1231
context.
CompileExpression
("u", out error, testData);
1247
context.
CompileExpression
("x", out error);
1251
context.
CompileExpression
("ch", out error, testData);
1266
context.
CompileExpression
("typeof(T)", out error);
1268
context.
CompileExpression
("typeof(U)", out error);
1287
context.
CompileExpression
("t", out error);
1290
context.
CompileExpression
("u", out error);
1293
context.
CompileExpression
("x", out error);
1297
context.
CompileExpression
("ch", out error, testData);
1312
context.
CompileExpression
("typeof(T)", out error);
1314
context.
CompileExpression
("typeof(U)", out error);
1366
context.
CompileExpression
("x", out error);
1368
context.
CompileExpression
("y", out error);
1383
context.
CompileExpression
("x", out error);
1385
context.
CompileExpression
("y", out error);
HoistedThisTests.cs (10)
959
context.
CompileExpression
("42", out error, testData);
983
context.
CompileExpression
("this", out error, testData);
1009
context.
CompileExpression
("this", out error, testData);
1017
context.
CompileExpression
("base.ToString()", out error, testData);
1051
context.
CompileExpression
("this.x", out error, testData);
1086
context.
CompileExpression
("this.x", out error, testData);
1122
context.
CompileExpression
("this.x", out error, testData);
1158
context.
CompileExpression
("base.x", out error, testData);
1199
context.
CompileExpression
("base.x", out error, testData);
1241
context.
CompileExpression
("this.x", out error, testData);
LocalFunctionTests.cs (8)
95
context.
CompileExpression
("this.F(1)", out error, testData);
146
context.
CompileExpression
("this.F(1)", out error, testData);
206
context.
CompileExpression
("x + y", out error, testData);
260
context.
CompileExpression
("value", out error, testData);
298
context.
CompileExpression
("value", out error, testData);
325
context.
CompileExpression
("value", out error, testData);
368
context.
CompileExpression
("value", out error, testData);
407
context.
CompileExpression
(@"
LocalsTests.cs (15)
740
context.
CompileExpression
("b", out error, testData);
744
context.
CompileExpression
("a[1]", out error, testData);
1390
context.
CompileExpression
("new Action(() => { int x; new Func<int>(() => x).Invoke(); }).Invoke()", out var error, testData);
1425
context.
CompileExpression
(
1469
context.
CompileExpression
(
2509
context.
CompileExpression
("o = null", out error, testData);
2774
context.
CompileExpression
("x", out error, testData);
3576
context.
CompileExpression
("z", out error, testData);
3581
context.
CompileExpression
("x", out error, testData);
3586
context.
CompileExpression
("y", out error, testData);
3677
context.
CompileExpression
("c", out error, testData);
3682
context.
CompileExpression
("z", out error, testData);
3687
context.
CompileExpression
("x", out error, testData);
3692
context.
CompileExpression
("y", out error, testData);
3745
context.
CompileExpression
("t", out error, testData);
ManagedAddressOfTests.cs (5)
34
context.
CompileExpression
("&s", out error, testData);
68
context.
CompileExpression
("&s", out error, testData);
104
context.
CompileExpression
("&s", out error, testData);
162
context.
CompileExpression
(string.Format("sizeof({0})", type), out var error, testData);
220
context.
CompileExpression
("(string*)null", out error, testData);
NoPIATests.cs (4)
52
var result = context.
CompileExpression
("this", out error, testData);
95
var result = context.
CompileExpression
("o", out error, testData);
162
context.
CompileExpression
("x", out error, testData);
192
context.
CompileExpression
("y.F()", out error, testData);
PseudoVariableTests.cs (1)
270
context.
CompileExpression
(
ReferencedModulesTests.cs (32)
79
context.
CompileExpression
("new B2()", out error, testData);
96
context.
CompileExpression
("new B2()", out error, testData);
114
context.
CompileExpression
("new A1()", out error, testData);
132
context.
CompileExpression
("new B1()", out error, testData);
150
context.
CompileExpression
("new C1()", out error, testData);
173
context.
CompileExpression
("new B1()", out error, testData);
194
context.
CompileExpression
("new C1()", out error, testData);
228
context.
CompileExpression
("new B()", out error, testData);
245
context.
CompileExpression
("new B()", out error, testData);
262
context.
CompileExpression
("new B()", out error, testData);
272
context.
CompileExpression
("new B()", out error, testData);
289
context.
CompileExpression
("new B()", out error, testData);
325
context.
CompileExpression
("new B()", out error, testData);
341
context.
CompileExpression
("new B()", out error, testData);
490
context.
CompileExpression
(expr, out error, testData);
505
context.
CompileExpression
(expr, out error, testData);
657
context.
CompileExpression
("new A()", out error, testData);
661
context.
CompileExpression
("new B()", out error, testData);
678
context.
CompileExpression
("new A()", out error, testData);
682
context.
CompileExpression
("new B()", out error, testData);
725
context.
CompileExpression
("new A()", out error, testData);
729
context.
CompileExpression
("new B()", out error, testData);
745
context.
CompileExpression
("new A()", out error, testData);
749
context.
CompileExpression
("new B()", out error, testData);
1118
context.
CompileExpression
("typeof(System.Console)", out errorMessage, testData);
1133
context.
CompileExpression
("(System.Collections.ObjectModel.ReadOnlyDictionary<object, object>)null", out errorMessage, testData);
1326
context.
CompileExpression
(
1341
context.
CompileExpression
(
1349
context.
CompileExpression
(
1357
context.
CompileExpression
(
1435
context.
CompileExpression
(
1473
context.
CompileExpression
(
TupleTests.cs (5)
46
var result = context.
CompileExpression
("(A: 1, B: 2)", out error, testData);
131
var compileResult = evalContext.
CompileExpression
("(1, 2)", out error, testData);
179
var result = context.
CompileExpression
("(A: 1, B: 2)", out error, testData);
308
context.
CompileExpression
("x.Item4 + x.Item8", out error, testData);
342
context.
CompileExpression
("x.Item8 + x.Eight", out error, testData);
UsingDebugInfoTests.cs (1)
1245
context.
CompileExpression
("typeof(SI)", out error, testData);
WinMdTests.cs (4)
59
context.
CompileExpression
("(p == null) ? f : null", out error, testData);
101
context.
CompileExpression
("X::Windows.Storage.FileProperties.PhotoOrientation.Unspecified", out error, testData);
185
context.
CompileExpression
("(object)a ?? (object)b ?? (object)t ?? f", out error, testData);
207
var result = context.
CompileExpression
("default(Windows.Storage.StorageFolder)", out error, testData);
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler.UnitTests (265)
AccessibilityTests.vb (1)
179
context.
CompileExpression
("Me.M(Me.P)", errorMessage, testData)
CompileExpressionsTests.vb (2)
52
Dim result = context.
CompileExpression
("If(z, x)", errorMessage, testData)
228
Dim result = context.
CompileExpression
("If(z, x)", errorMessage, testData)
DebuggerDisplayAttributeTests.vb (1)
41
Dim result = context.
CompileExpression
("GetDebuggerDisplay()", errorMessage, testData)
ExpressionCompilerTests.vb (81)
67
Dim result = context.
CompileExpression
("1", errorMessage)
84
result = context.
CompileExpression
("2", errorMessage)
101
Dim result = context.
CompileExpression
("M(", errorMessage, formatter:=DebuggerDiagnosticFormatter.Instance)
193
Dim result = context.
CompileExpression
(expr:="tt.Key", error:=errorMessage, testData:=testData)
259
Dim result = context.
CompileExpression
("F(y)", errorMessage, testData, DebuggerDiagnosticFormatter.Instance)
264
result = context.
CompileExpression
("F(x)", errorMessage, testData, DebuggerDiagnosticFormatter.Instance)
466
Dim result = context.
CompileExpression
("x", errorMessage)
470
result = context.
CompileExpression
("x,", errorMessage, formatter:=DebuggerDiagnosticFormatter.Instance)
472
result = context.
CompileExpression
("x,,", errorMessage, formatter:=DebuggerDiagnosticFormatter.Instance)
474
result = context.
CompileExpression
("x y", errorMessage, formatter:=DebuggerDiagnosticFormatter.Instance)
476
result = context.
CompileExpression
("x yy zz", errorMessage, formatter:=DebuggerDiagnosticFormatter.Instance)
478
result = context.
CompileExpression
("x,,y", errorMessage, formatter:=DebuggerDiagnosticFormatter.Instance)
480
result = context.
CompileExpression
("x,yy,zz,ww", errorMessage, formatter:=DebuggerDiagnosticFormatter.Instance)
482
result = context.
CompileExpression
("x, y z", errorMessage, formatter:=DebuggerDiagnosticFormatter.Instance)
484
result = context.
CompileExpression
("x, y , z ", errorMessage, formatter:=DebuggerDiagnosticFormatter.Instance)
486
result = context.
CompileExpression
("x, y, z,", errorMessage, formatter:=DebuggerDiagnosticFormatter.Instance)
488
result = context.
CompileExpression
("x,y,z;w", errorMessage, formatter:=DebuggerDiagnosticFormatter.Instance)
490
result = context.
CompileExpression
("x, y;, z", errorMessage, formatter:=DebuggerDiagnosticFormatter.Instance)
494
result = context.
CompileExpression
("x ' ,f", errorMessage, formatter:=DebuggerDiagnosticFormatter.Instance)
503
result = context.
CompileExpression
(",f", errorMessage, formatter:=DebuggerDiagnosticFormatter.Instance)
564
context.
CompileExpression
("a(0)", errorMessage, testData)
627
Dim result = context.
CompileExpression
("If(Me.F(), If(Me.G, Me.P))", errorMessage, testData)
650
result = context.
CompileExpression
("F(AddressOf Me.F)", errorMessage, testData)
666
result = context.
CompileExpression
("F(new System.Func(Of String)(AddressOf Me.F))", errorMessage, testData)
729
Dim result = context.
CompileExpression
("If(MyClass.F(), If(MyClass.G, MyClass.P))", errorMessage, testData)
752
result = context.
CompileExpression
("F(AddressOf MyClass.F)", errorMessage, testData)
767
result = context.
CompileExpression
("F(new System.Func(Of String)(AddressOf MyClass.F))", errorMessage, testData)
829
Dim result = context.
CompileExpression
("If(MyBase.F(), If(MyBase.G, MyBase.P))", errorMessage, testData)
852
result = context.
CompileExpression
("F(AddressOf MyBase.F)", errorMessage, testData)
867
result = context.
CompileExpression
("F(new System.Func(Of String)(AddressOf MyBase.F))", errorMessage, testData)
1174
context.
CompileExpression
("c1.F", errorMessage, testData)
1218
context.
CompileExpression
("c1.F", errorMessage, testData)
1262
context.
CompileExpression
("s", errorMessage, testData)
1291
context.
CompileExpression
("f", errorMessage, testData)
1324
context.
CompileExpression
("i", errorMessage, testData)
1812
Dim result = context.
CompileExpression
("x.@a", errorMessage, testData, DebuggerDiagnosticFormatter.Instance)
1848
Dim result = context.
CompileExpression
("x.@a", errorMessage, testData, DebuggerDiagnosticFormatter.Instance)
1891
Dim result = context.
CompileExpression
("x.@a", errorMessage, testData, DebuggerDiagnosticFormatter.Instance)
2120
context.
CompileExpression
("If(GetType(V), GetType(X))", errorMessage, testData)
2142
context.
CompileExpression
("If(GetType(T), GetType(U))", errorMessage, testData)
2188
context.
CompileExpression
("Me.F(y)", errorMessage, testData)
2207
context.
CompileExpression
("MyClass.F(y)", errorMessage, testData)
2226
context.
CompileExpression
("MyBase.F(x)", errorMessage, testData)
2269
context.
CompileExpression
("{ 1, 2, 3, 4, 5 }", errorMessage, testData)
2309
context.
CompileExpression
("F(Function() o + 1)", errorMessage, testData)
2368
context.
CompileExpression
("F(Function()
2395
context.
CompileExpression
("G(Async Function() Await F())", errorMessage, testData)
2551
context.
CompileExpression
("e.HasValue", errorMessage, testData)
2963
context.
CompileExpression
("2147483647 + 1", errorMessage, testData, DebuggerDiagnosticFormatter.Instance)
2974
context.
CompileExpression
("2147483647 + 1", errorMessage, formatter:=DebuggerDiagnosticFormatter.Instance)
3134
context.
CompileExpression
("x", errorMessage, testData)
3337
Dim result = context.
CompileExpression
("Me?.F()", errorMessage, testData, DebuggerDiagnosticFormatter.Instance)
3359
result = context.
CompileExpression
("(Me?.F())", errorMessage, testData, DebuggerDiagnosticFormatter.Instance)
3364
result = context.
CompileExpression
("Me?.X.@a", errorMessage, testData, DebuggerDiagnosticFormatter.Instance)
3387
result = context.
CompileExpression
("(New C())?.G()?.F()", errorMessage, testData, DebuggerDiagnosticFormatter.Instance)
3392
result = context.
CompileExpression
("(New C())?.G().F()", errorMessage, testData, DebuggerDiagnosticFormatter.Instance)
3397
result = context.
CompileExpression
("G()?.M()", errorMessage, testData, DebuggerDiagnosticFormatter.Instance)
3416
result = context.
CompileExpression
("(G()?.M())", errorMessage, testData, DebuggerDiagnosticFormatter.Instance)
3437
context.
CompileExpression
("x", errorMessage, testData)
3472
context.
CompileExpression
("x", errorMessage, testData)
3597
context.
CompileExpression
("z", errorMessage, testData)
3609
context.
CompileExpression
("y", errorMessage, testData)
3631
context.
CompileExpression
("GetType(T)", errorMessage, testData)
3665
context.
CompileExpression
("GetType(T)", errorMessage, testData)
3796
context.
CompileExpression
("c.P", errorMessage)
3847
context.
CompileExpression
("c.P", errorMessage)
3870
evalContext.
CompileExpression
("1", errorMessage, testData)
3898
evalContext.
CompileExpression
("1", errorMessage, testData)
3984
Dim result = context.
CompileExpression
("GetType(T)", errorMessage, testData)
4001
result = context.
CompileExpression
("GetType(U)", errorMessage, testData)
4007
result = context.
CompileExpression
("GetType($CLS0)", errorMessage, testData)
4041
Dim result = context.
CompileExpression
("i", errorMessage, testData)
4074
context.
CompileExpression
("GetType(Action(Of ))", errorMessage, testData)
4206
context.
CompileExpression
("q.Where(Function(c) True)", errorMessage, testData)
4259
context.
CompileExpression
("F(Async Function() New C())", errorMessage, testData)
4296
context.
CompileExpression
("M(Function() x)", errorMessage, testData)
4337
context.
CompileExpression
("M(Function() x)", errorMessage, testData)
4384
context.
CompileExpression
("F(Function() x + y)", errorMessage, testData)
4454
context.
CompileExpression
("F(Function() x + y + z)", errorMessage, testData)
4562
Dim result = context.
CompileExpression
("x + y", errorMessage, testData)
4678
context.
CompileExpression
("c.Where(Function(n) n > 0)", errorMessage, testData)
HoistedMeTests.vb (10)
654
context.
CompileExpression
("Me", errorMessage, testData)
690
context.
CompileExpression
("Me", errorMessage, testData)
698
context.
CompileExpression
("MyBase.ToString()", errorMessage, testData)
706
context.
CompileExpression
("MyClass.ToString()", errorMessage, testData)
734
context.
CompileExpression
("Me.x", errorMessage, testData)
771
context.
CompileExpression
("Me.x", errorMessage, testData)
810
context.
CompileExpression
("Me.x", errorMessage, testData)
852
context.
CompileExpression
("MyBase.x", errorMessage, testData)
898
context.
CompileExpression
("MyBase.x", errorMessage, testData)
941
context.
CompileExpression
("MyBase.x", errorMessage, testData)
HoistedStateMachineLocalTests.vb (122)
114
context.
CompileExpression
("x", errorMessage)
119
context.
CompileExpression
("x", errorMessage, testData)
125
context.
CompileExpression
("x", errorMessage, testData)
130
context.
CompileExpression
("x", errorMessage)
135
context.
CompileExpression
("x", errorMessage, testData)
141
context.
CompileExpression
("x", errorMessage, testData)
146
context.
CompileExpression
("x", errorMessage)
222
context.
CompileExpression
("x", errorMessage)
227
context.
CompileExpression
("x", errorMessage, testData)
233
context.
CompileExpression
("x", errorMessage, testData)
238
context.
CompileExpression
("x", errorMessage)
243
context.
CompileExpression
("x", errorMessage, testData)
249
context.
CompileExpression
("x", errorMessage, testData)
254
context.
CompileExpression
("x", errorMessage)
305
context.
CompileExpression
("x", errorMessage, testData)
310
context.
CompileExpression
("y", errorMessage, testData)
315
context.
CompileExpression
("z", errorMessage, testData)
320
context.
CompileExpression
("w", errorMessage, testData)
337
context.
CompileExpression
("t1", errorMessage)
340
context.
CompileExpression
("u1", errorMessage)
343
context.
CompileExpression
("x", errorMessage)
347
context.
CompileExpression
("ch", errorMessage, testData)
377
context.
CompileExpression
("t1", errorMessage)
380
context.
CompileExpression
("u1", errorMessage)
384
context.
CompileExpression
("x", errorMessage, testData)
402
context.
CompileExpression
("ch", errorMessage, testData)
432
context.
CompileExpression
("t1", errorMessage)
436
context.
CompileExpression
("u1", errorMessage, testData)
453
context.
CompileExpression
("x", errorMessage)
457
context.
CompileExpression
("ch", errorMessage, testData)
487
context.
CompileExpression
("t1", errorMessage)
490
context.
CompileExpression
("u1", errorMessage)
493
context.
CompileExpression
("x", errorMessage)
497
context.
CompileExpression
("ch", errorMessage, testData)
528
context.
CompileExpression
("t1", errorMessage, testData)
545
context.
CompileExpression
("u1", errorMessage)
548
context.
CompileExpression
("x", errorMessage)
552
context.
CompileExpression
("ch", errorMessage, testData)
583
context.
CompileExpression
("t1", errorMessage, testData)
601
context.
CompileExpression
("u1", errorMessage)
605
context.
CompileExpression
("x", errorMessage, testData)
623
context.
CompileExpression
("ch", errorMessage, testData)
653
context.
CompileExpression
("t1", errorMessage)
656
context.
CompileExpression
("u1", errorMessage)
659
context.
CompileExpression
("x", errorMessage)
663
context.
CompileExpression
("ch", errorMessage, testData)
693
context.
CompileExpression
("t1", errorMessage)
696
context.
CompileExpression
("u1", errorMessage)
700
context.
CompileExpression
("x", errorMessage, testData)
718
context.
CompileExpression
("ch", errorMessage, testData)
747
context.
CompileExpression
("t1", errorMessage)
751
context.
CompileExpression
("u1", errorMessage, testData)
768
context.
CompileExpression
("x", errorMessage)
772
context.
CompileExpression
("ch", errorMessage, testData)
802
context.
CompileExpression
("t1", errorMessage)
805
context.
CompileExpression
("u1", errorMessage)
808
context.
CompileExpression
("x", errorMessage)
812
context.
CompileExpression
("ch", errorMessage, testData)
842
context.
CompileExpression
("t1", errorMessage)
845
context.
CompileExpression
("u1", errorMessage)
848
context.
CompileExpression
("x", errorMessage)
852
context.
CompileExpression
("ch", errorMessage, testData)
868
context.
CompileExpression
("GetType(T)", errorMessage)
870
context.
CompileExpression
("GetType(U)", errorMessage)
888
context.
CompileExpression
("t1", errorMessage)
891
context.
CompileExpression
("u1", errorMessage)
895
context.
CompileExpression
("x", errorMessage, testData)
913
context.
CompileExpression
("ch", errorMessage, testData)
929
context.
CompileExpression
("GetType(T)", errorMessage)
931
context.
CompileExpression
("GetType(U)", errorMessage)
949
context.
CompileExpression
("t1", errorMessage)
953
context.
CompileExpression
("u1", errorMessage, testData)
970
context.
CompileExpression
("x", errorMessage)
974
context.
CompileExpression
("ch", errorMessage, testData)
990
context.
CompileExpression
("GetType(T)", errorMessage)
992
context.
CompileExpression
("GetType(U)", errorMessage)
1010
context.
CompileExpression
("t1", errorMessage)
1013
context.
CompileExpression
("u1", errorMessage)
1016
context.
CompileExpression
("x", errorMessage)
1020
context.
CompileExpression
("ch", errorMessage, testData)
1036
context.
CompileExpression
("GetType(T)", errorMessage)
1038
context.
CompileExpression
("GetType(U)", errorMessage)
1057
context.
CompileExpression
("t1", errorMessage, testData)
1074
context.
CompileExpression
("u1", errorMessage)
1077
context.
CompileExpression
("x", errorMessage)
1081
context.
CompileExpression
("ch", errorMessage, testData)
1097
context.
CompileExpression
("GetType(T)", errorMessage)
1099
context.
CompileExpression
("GetType(U)", errorMessage)
1118
context.
CompileExpression
("t1", errorMessage, testData)
1136
context.
CompileExpression
("u1", errorMessage)
1140
context.
CompileExpression
("x", errorMessage, testData)
1158
context.
CompileExpression
("ch", errorMessage, testData)
1174
context.
CompileExpression
("GetType(T)", errorMessage)
1176
context.
CompileExpression
("GetType(U)", errorMessage)
1194
context.
CompileExpression
("t1", errorMessage)
1197
context.
CompileExpression
("u1", errorMessage)
1200
context.
CompileExpression
("x", errorMessage)
1204
context.
CompileExpression
("ch", errorMessage, testData)
1220
context.
CompileExpression
("GetType(T)", errorMessage)
1222
context.
CompileExpression
("GetType(U)", errorMessage)
1240
context.
CompileExpression
("t1", errorMessage)
1243
context.
CompileExpression
("u1", errorMessage)
1247
context.
CompileExpression
("x", errorMessage, testData)
1265
context.
CompileExpression
("ch", errorMessage, testData)
1281
context.
CompileExpression
("GetType(T)", errorMessage)
1283
context.
CompileExpression
("GetType(U)", errorMessage)
1301
context.
CompileExpression
("t1", errorMessage)
1305
context.
CompileExpression
("u1", errorMessage, testData)
1322
context.
CompileExpression
("x", errorMessage)
1326
context.
CompileExpression
("ch", errorMessage, testData)
1342
context.
CompileExpression
("GetType(T)", errorMessage)
1344
context.
CompileExpression
("GetType(U)", errorMessage)
1362
context.
CompileExpression
("t1", errorMessage)
1365
context.
CompileExpression
("u1", errorMessage)
1368
context.
CompileExpression
("x", errorMessage)
1372
context.
CompileExpression
("ch", errorMessage, testData)
1388
context.
CompileExpression
("GetType(T)", errorMessage)
1390
context.
CompileExpression
("GetType(U)", errorMessage)
1444
context.
CompileExpression
("x", errorMessage)
1446
context.
CompileExpression
("y", errorMessage)
1462
context.
CompileExpression
("x", errorMessage)
1464
context.
CompileExpression
("y", errorMessage)
ImportDebugInfoTests.vb (1)
621
context.
CompileExpression
("GetType(SI)", errorMessage, testData)
LocalsTests.vb (21)
275
context.
CompileExpression
("b", errorMessage, testData, DebuggerDiagnosticFormatter.Instance)
279
context.
CompileExpression
("a(1)", errorMessage, testData)
853
context.
CompileExpression
(
1976
context.
CompileExpression
("x", errorMessage, testData)
2481
context.
CompileExpression
("P", errorMessage, testData)
2494
context.
CompileExpression
("S", errorMessage, testData)
2827
context.
CompileExpression
("z", errorMessage, testData)
2832
context.
CompileExpression
("x", errorMessage, testData)
2837
context.
CompileExpression
("y", errorMessage, testData)
2928
context.
CompileExpression
("c", errorMessage, testData)
2933
context.
CompileExpression
("z", errorMessage, testData)
2938
context.
CompileExpression
("x", errorMessage, testData)
2943
context.
CompileExpression
("y", errorMessage, testData)
3013
context.
CompileExpression
("z", errorMessage, testData)
3018
context.
CompileExpression
("x", errorMessage, testData)
3023
context.
CompileExpression
("y", errorMessage, testData)
3094
context.
CompileExpression
("x", errorMessage, testData)
3099
context.
CompileExpression
("y", errorMessage, testData)
3104
context.
CompileExpression
("z", errorMessage, testData)
3152
context.
CompileExpression
("x", errorMessage, testData)
3202
context.
CompileExpression
("t", errorMessage, testData)
NoPIATests.vb (1)
41
context.
CompileExpression
("Me", errorMessage, testData, DebuggerDiagnosticFormatter.Instance)
ReferencedModulesTests.vb (17)
109
context.
CompileExpression
("New B2()", errorMessage, testData)
125
context.
CompileExpression
("New B2()", errorMessage, testData)
142
context.
CompileExpression
("New A1()", errorMessage, testData)
159
context.
CompileExpression
("New B1()", errorMessage, testData)
176
context.
CompileExpression
("New C1()", errorMessage, testData)
200
context.
CompileExpression
("New B1()", errorMessage, testData)
222
context.
CompileExpression
("New C1()", errorMessage, testData)
450
context.
CompileExpression
("New A()", errorMessage)
453
context.
CompileExpression
("New B()", errorMessage)
476
context.
CompileExpression
("New B()", errorMessage)
703
context.
CompileExpression
("F()", errorMessage)
771
context.
CompileExpression
("GetType(System.Console)", errorMessage, testData)
785
context.
CompileExpression
("DirectCast(Nothing, System.Collections.ObjectModel.ReadOnlyDictionary(Of Object, Object))", errorMessage, testData)
882
context.
CompileExpression
("New Object()", errorMessage, testData)
895
context.
CompileExpression
("1", errorMessage, testData)
900
context.
CompileExpression
("(New Object()).F()", errorMessage, testData)
905
context.
CompileExpression
("New Private2()", errorMessage, testData)
StaticLocalsTests.vb (4)
44
context.
CompileExpression
("If(x, y)", errorMessage, testData)
63
context.
CompileExpression
("If(x, Me)", errorMessage, testData)
158
context.
CompileExpression
("If(x, y)", errorMessage)
162
context.
CompileExpression
("x + z", errorMessage)
TupleTests.vb (1)
139
Dim compileResult = evalContext.
CompileExpression
("(1, 2)", errorMessage, testData)
WinMdTests.vb (3)
44
context.
CompileExpression
("If(p Is Nothing, f, Nothing)", errorMessage, testData)
126
context.
CompileExpression
("If(a, If(b, If(t, f)))", errorMessage, testData)
148
Dim result = context.
CompileExpression
("f", errorMessage, testData)