1 write to ReturnValue
Microsoft.CodeAnalysis.Scripting (1)
ScriptState.cs (1)
278
ReturnValue
= value;
101 references to ReturnValue
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (17)
InteractiveSessionReferencesTests.cs (17)
106
Assert.IsType<List<Version>>(s.Result.
ReturnValue
);
109
Assert.Equal(Environment.Version, s.Result.
ReturnValue
);
112
Assert.Equal(2, s.Result.
ReturnValue
);
115
Assert.Equal(0.0, s.Result.
ReturnValue
);
176
AssertEx.Equal(new[] { 2, 3, 4 }, state.
ReturnValue
);
195
Assert.NotNull(s0.
ReturnValue
);
203
Assert.NotNull(s1.
ReturnValue
);
211
Assert.NotNull(s2.
ReturnValue
);
219
Assert.NotNull(s3.
ReturnValue
);
274
Assert.NotNull(script.RunAsync().Result.
ReturnValue
);
456
Assert.Equal(s0.Result.
ReturnValue
.GetType(), s1.Result.
ReturnValue
);
513
Assert.Equal(1, s0.
ReturnValue
);
520
Assert.Equal(1, s1.
ReturnValue
);
586
int result = script.RunAsync(globals).Result.
ReturnValue
;
1098
Assert.Equal(1, s1.
ReturnValue
);
1101
Assert.Equal(2, s3.
ReturnValue
);
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (74)
InteractiveSessionTests.cs (58)
431
Assert.Equal(1, state.Result.
ReturnValue
);
441
Assert.Equal(1, state.Result.
ReturnValue
);
466
Assert.Equal(Environment.ProcessorCount, state.Result.
ReturnValue
);
469
Assert.Equal(Environment.ProcessorCount, state.Result.
ReturnValue
);
483
Assert.Equal(1, state1.Result.
ReturnValue
);
488
Assert.Equal(2, state2.Result.
ReturnValue
);
499
Assert.Equal(3, state3.Result.
ReturnValue
);
573
Result.
ReturnValue
;
584
Result.
ReturnValue
;
595
Result.
ReturnValue
;
633
Assert.Null(s2.
ReturnValue
);
636
Assert.Equal(12, s3.
ReturnValue
);
652
Assert.True(state1.
ReturnValue
);
655
Assert.Equal(1234567, state2.
ReturnValue
);
658
Assert.Equal("HostObjectToString impl", state3.
ReturnValue
);
670
Assert.True(state1.
ReturnValue
);
673
Assert.Equal("System.Object", state2.
ReturnValue
);
676
Assert.False(state3.
ReturnValue
);
778
Assert.Equal(111, state.Result.
ReturnValue
);
785
Assert.Equal(222, state.Result.
ReturnValue
);
812
Assert.Equal(111, state.Result.
ReturnValue
);
819
Assert.Equal(222, state.Result.
ReturnValue
);
908
ContinueWith<Func<int, int>>("new Func<int,int>(Sqr)").Result.
ReturnValue
;
924
Assert.Equal(3, s.ContinueWith(@"arr_1[2]").Result.
ReturnValue
);
925
Assert.Equal(5, s.ContinueWith(@"arr_2[0]").Result.
ReturnValue
);
926
Assert.Equal(0, s.ContinueWith(@"arr_3[0]").Result.
ReturnValue
);
990
ContinueWith<List<int>>("result").Result.
ReturnValue
;
1044
AssertEx.Equal(new[] { 1, 2, 3, 4, 5, 6 }, s1.
ReturnValue
);
1047
AssertEx.Equal(new[] { 1, 2, 3, 4, 5, 6, 7 }, s2.
ReturnValue
);
1050
AssertEx.Equal(new[] { 1, 2, 3, 4, 5, 6, 7, 8 }, s3.
ReturnValue
);
1106
Assert.Equal(4, s1.
ReturnValue
);
1109
Assert.Equal(5, s2.
ReturnValue
);
1127
Assert.Equal(3, state.
ReturnValue
);
1146
Assert.Equal(3, state.
ReturnValue
);
1154
Assert.Equal(true, state.
ReturnValue
);
1163
Assert.Equal(true, state.
ReturnValue
);
1165
Assert.Equal(true, state.
ReturnValue
);
1167
Assert.Equal(false, state.
ReturnValue
);
1169
Assert.Equal(true, state.
ReturnValue
);
1295
var r2 = CSharpScript.Create($@"#r ""{fileMain.Path}""", ScriptOptions).ContinueWith($@"M.X.F").RunAsync().Result.
ReturnValue
;
1326
var r2 = CSharpScript.Create($@"#r ""{fileMain.Path}""", ScriptOptions).ContinueWith($@"M.X.F").RunAsync().Result.
ReturnValue
;
1382
Assert.Equal(1, s1.Result.
ReturnValue
);
1385
Assert.IsType<List<int>>(s2.Result.
ReturnValue
);
1532
Assert.Equal(6, s0.Result.
ReturnValue
);
1535
Assert.Equal(1, s1.Result.
ReturnValue
);
1540
Assert.Equal(20, s3.Result.
ReturnValue
);
1557
Assert.Equal(3, s0.
ReturnValue
);
1565
Assert.Equal("2", s1.
ReturnValue
);
1604
Assert.Equal(123, s3.Result.
ReturnValue
);
1620
Assert.Equal(2, s1.Result.
ReturnValue
);
1623
Assert.Equal(2, s2.Result.
ReturnValue
);
1936
Assert.Equal(10, state2.
ReturnValue
);
1963
Assert.Equal(120, state3.
ReturnValue
);
1991
Assert.Equal(1200, state4.
ReturnValue
);
2020
Assert.Equal(1204, state4.
ReturnValue
);
2054
Assert.Equal(1230, state4.
ReturnValue
);
2088
Assert.Equal(1234, state4.
ReturnValue
);
2142
Result.
ReturnValue
;
ScriptTests.cs (16)
133
Assert.Equal(3, state.
ReturnValue
);
142
Assert.Equal(3, state.
ReturnValue
);
151
Assert.Equal(3, state.
ReturnValue
);
165
Assert.Equal(3, state.
ReturnValue
);
174
Assert.Null(state.
ReturnValue
);
183
Assert.Null(state.
ReturnValue
);
291
Assert.Equal(3, state.
ReturnValue
);
299
Assert.Equal(3, state.
ReturnValue
);
352
Assert.Equal(200, state.
ReturnValue
);
371
Assert.Equal(10100, state.
ReturnValue
);
432
Assert.Equal(2, s3.
ReturnValue
);
464
Assert.Equal(25, state2.
ReturnValue
);
469
Assert.Equal(10, state3.
ReturnValue
);
478
Assert.Equal(2, state2.
ReturnValue
);
486
Assert.Equal(1, state1.
ReturnValue
);
494
Assert.Equal(1, state1.
ReturnValue
);
Microsoft.CodeAnalysis.InteractiveHost (1)
Interactive\Core\InteractiveHost.Service.cs (1)
766
serviceState.Globals.Print(newState.
ReturnValue
);
Microsoft.CodeAnalysis.Scripting (4)
Hosting\CommandLine\CommandLineRunner.cs (2)
210
return script.RunAsync(globals, cancellationToken).GetAwaiter().GetResult().
ReturnValue
;
316
globals.Print(state.
ReturnValue
);
ScriptState.cs (1)
273
internal override object GetReturnValue() =>
ReturnValue
;
Utilities\TaskExtensions.cs (1)
21
return (await task.ConfigureAwait(true)).
ReturnValue
;
Microsoft.CodeAnalysis.VisualBasic.Scripting.UnitTests (5)
InteractiveSessionTests.vb (1)
26
Assert.Equal(3, s.
ReturnValue
)
ScriptTests.vb (4)
43
Assert.Equal(3, state.
ReturnValue
)
51
Assert.Equal(3, state.
ReturnValue
)
57
Assert.Equal(3, state.
ReturnValue
)
70
Assert.Null(state.
ReturnValue
)