1 type derived from ScriptState
Microsoft.CodeAnalysis.Scripting (1)
ScriptState.cs (1)
270public sealed class ScriptState<T> : ScriptState
40 references to ScriptState
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
ScriptTests.cs (1)
422var s2 = await s1.Script.RunAsync();
Microsoft.CodeAnalysis.Scripting (35)
Script.cs (28)
177/// <returns>A <see cref="ScriptState"/> that represents the state after running the script, including all declared variables and return value.</returns> 178public Task<ScriptState> RunAsync(object globals, CancellationToken cancellationToken) 190/// If it returns true the exception is caught and stored on the resulting <see cref="ScriptState"/>, otherwise the exception is propagated to the caller. 193/// <returns>A <see cref="ScriptState"/> that represents the state after running the script, including all declared variables and return value.</returns> 194public Task<ScriptState> RunAsync(object globals = null, Func<Exception, bool> catchException = null, CancellationToken cancellationToken = default(CancellationToken)) 197internal abstract Task<ScriptState> CommonRunAsync(object globals, Func<Exception, bool> catchException, CancellationToken cancellationToken); 206/// <returns>A <see cref="ScriptState"/> that represents the state after running the script, including all declared variables and return value.</returns> 207public Task<ScriptState> RunFromAsync(ScriptState previousState, CancellationToken cancellationToken) 218/// If it returns true the exception is caught and stored on the resulting <see cref="ScriptState"/>, otherwise the exception is propagated to the caller. 221/// <returns>A <see cref="ScriptState"/> that represents the state after running the script, including all declared variables and return value.</returns> 222public Task<ScriptState> RunFromAsync(ScriptState previousState, Func<Exception, bool> catchException = null, CancellationToken cancellationToken = default(CancellationToken)) 225internal abstract Task<ScriptState> CommonRunFromAsync(ScriptState previousState, Func<Exception, bool> catchException, CancellationToken cancellationToken); 354internal override Task<ScriptState> CommonRunAsync(object globals, Func<Exception, bool> catchException, CancellationToken cancellationToken) 355=> RunAsync(globals, catchException, cancellationToken).CastAsync<ScriptState<T>, ScriptState>(); 357internal override Task<ScriptState> CommonRunFromAsync(ScriptState previousState, Func<Exception, bool> catchException, CancellationToken cancellationToken) 358=> RunFromAsync(previousState, catchException, cancellationToken).CastAsync<ScriptState<T>, ScriptState>(); 439/// <returns>A <see cref="ScriptState"/> that represents the state after running the script, including all declared variables and return value.</returns> 454/// If it returns true the exception is caught and stored on the resulting <see cref="ScriptState"/>, otherwise the exception is propagated to the caller. 457/// <returns>A <see cref="ScriptState"/> that represents the state after running the script, including all declared variables and return value.</returns> 500/// <returns>A <see cref="ScriptState"/> that represents the state after running the script, including all declared variables and return value.</returns> 503public new Task<ScriptState<T>> RunFromAsync(ScriptState previousState, CancellationToken cancellationToken) 514/// If it returns true the exception is caught and stored on the resulting <see cref="ScriptState"/>, otherwise the exception is propagated to the caller. 517/// <returns>A <see cref="ScriptState"/> that represents the state after running the script, including all declared variables and return value.</returns> 520public new Task<ScriptState<T>> RunFromAsync(ScriptState previousState, Func<Exception, bool> catchException = null, CancellationToken cancellationToken = default(CancellationToken))
ScriptState.cs (7)
32/// Exceptions are only caught and stored here if the API returning the <see cref="ScriptState"/> is instructed to do so. 141/// <returns>A <see cref="ScriptState"/> that represents the state after running <paramref name="code"/>, including all declared variables and return value.</returns> 152/// If it returns true the exception is caught and stored on the resulting <see cref="ScriptState"/>, otherwise the exception is propagated to the caller. 155/// <returns>A <see cref="ScriptState"/> that represents the state after running <paramref name="code"/>, including all declared variables, return value and caught exception (if applicable).</returns> 165/// <returns>A <see cref="ScriptState"/> that represents the state after running <paramref name="code"/>, including all declared variables and return value.</returns> 176/// If it returns true the exception is caught and stored on the resulting <see cref="ScriptState"/>, otherwise the exception is propagated to the caller. 179/// <returns>A <see cref="ScriptState"/> that represents the state after running <paramref name="code"/>, including all declared variables, return value and caught exception (if applicable).</returns>
Microsoft.CodeAnalysis.Scripting.TestUtilities (4)
ScriptingTestHelpers.cs (2)
65internal static void AssertCompilationError(Task<ScriptState> state, string code, params DiagnosticDescription[] expectedDiagnostics) 75internal static void AssertCompilationError(ScriptState state, string code, params DiagnosticDescription[] expectedDiagnostics)
ScriptTaskExtensions.cs (2)
15public static async Task<ScriptState<object>> ContinueWith(this Task<ScriptState> task, string code, ScriptOptions options = null, CancellationToken cancellationToken = default(CancellationToken)) 25public static async Task<ScriptState<T>> ContinueWith<T>(this Task<ScriptState> task, string code, ScriptOptions options = null, CancellationToken cancellationToken = default(CancellationToken))