1 write to Script
Microsoft.CodeAnalysis.Scripting (1)
ScriptState.cs (1)
48Script = script;
31 references to Script
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (5)
InteractiveSessionReferencesTests.cs (5)
62var newOptions = s0.Script.Options.AddReferences(typeof(Process).Assembly); 502var c0 = s0.Script.GetCompilation(); 538var c0 = s0.Script.GetCompilation(); 638var c4 = s4.Script.GetCompilation(); 696var c4 = s4.Script.GetCompilation();
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (13)
InteractiveSessionTests.cs (3)
477var compilation1 = state1.Result.Script.GetCompilation(); 486var compilation2 = state2.Result.Script.GetCompilation(); 497var compilation3 = state3.Result.Script.GetCompilation();
ScriptTests.cs (10)
66var compilation = state.Script.GetCompilation(); 67Assert.Equal(state.Script.Code, compilation.SyntaxTrees.First().GetText().ToString()); 74var compilation = state.Script.GetCompilation(); 75Assert.Equal(state.Script.SourceText, compilation.SyntaxTrees.First().GetText()); 141Assert.Same(script, state.Script); 150Assert.Same(script, state.Script); 300Assert.Same(script, state.Script); 335await Assert.ThrowsAsync<ArgumentNullException>("previousState", () => state.Script.RunFromAsync(null)); 344await Assert.ThrowsAsync<ArgumentException>("previousState", () => state1.Script.RunFromAsync(state2)); 426var s2 = await s1.Script.RunAsync();
Microsoft.CodeAnalysis.InteractiveHost (3)
Interactive\Core\InteractiveHost.Service.cs (3)
364Script<object>? script = TryCompile(state.ScriptState?.Script, text, null, state.ScriptOptions); 719Script<object>? script = TryCompile(state.ScriptState?.Script, content, fullPath, state.ScriptOptions); 764else if (displayResult && newState.Script.HasReturnValue())
Microsoft.CodeAnalysis.Scripting (6)
Hosting\CommandLine\CommandLineRunner.cs (1)
289newScript = state.Script.ContinueWith(code, options);
Script.cs (2)
557if (previousState.Script == this) 563var precedingExecutors = TryGetPrecedingExecutors(previousState.Script, cancellationToken);
ScriptState.cs (3)
123var map = new Dictionary<string, int>(Script.Compiler.IdentifierComparer); 157=> Script.ContinueWith<object>(code, options).RunFromAsync(this, catchException, cancellationToken); 181=> Script.ContinueWith<TResult>(code, options).RunFromAsync(this, catchException, cancellationToken);
Microsoft.CodeAnalysis.VisualBasic.Scripting.UnitTests (4)
InteractiveSessionTests.vb (3)
124Dim compilation1 = state1.Result.Script.GetCompilation() 132Dim compilation2 = state2.Result.Script.GetCompilation() 146Dim compilation3 = state3.Result.Script.GetCompilation()
ScriptTests.vb (1)
50Assert.Same(script, state.Script)