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