1 type derived from Script
Microsoft.CodeAnalysis.Scripting (1)
Script.cs (1)
313public sealed class Script<T> : Script
41 references to Script
Microsoft.CodeAnalysis.CSharp.Scripting (3)
CSharpScript.cs (2)
37return Script.CreateInitialScript<T>(CSharpScriptCompiler.Instance, SourceText.From(code, options?.FileEncoding, SourceHashAlgorithms.Default), options, globalsType, assemblyLoader); 54return Script.CreateInitialScript<T>(CSharpScriptCompiler.Instance, SourceText.From(code, options?.FileEncoding), options, globalsType, assemblyLoader);
CSharpScriptCompiler.cs (1)
33public override Compilation CreateSubmission(Script script)
Microsoft.CodeAnalysis.InteractiveHost (2)
Interactive\Core\InteractiveHost.Service.cs (2)
657private Script<object>? TryCompile(Script? previousScript, string code, string? path, ScriptOptions options) 661Script script;
Microsoft.CodeAnalysis.Scripting (32)
Hosting\CommandLine\CommandLineRunner.cs (3)
197var script = Script.CreateInitialScript<int>(_scriptCompiler, code, options, globals.GetType(), assemblyLoaderOpt: null); 223var script = Script.CreateInitialScript<object>(_scriptCompiler, SourceText.From(initialScriptCodeOpt), options, globals.GetType(), assemblyLoaderOpt: null); 275newScript = Script.CreateInitialScript<object>(_scriptCompiler, SourceText.From(code ?? string.Empty), options, globals.GetType(), assemblyLoaderOpt: null);
Script.cs (23)
39internal Script(ScriptCompiler compiler, ScriptBuilder builder, SourceText sourceText, ScriptOptions options, Type globalsTypeOpt, Script previousOpt) 64public Script Previous { get; } 94public Script WithOptions(ScriptOptions options) => WithOptionsInternal(options); 95internal abstract Script WithOptionsInternal(ScriptOptions options); 159/// An instance of <see cref="Script.GlobalsType"/> holding on values of global variables accessible from the script. 160/// Must be specified if and only if the script was created with a <see cref="Script.GlobalsType"/>. 173/// An instance of <see cref="Script.GlobalsType"/> holding on values for global variables accessible from the script. 174/// Must be specified if and only if the script was created with <see cref="Script.GlobalsType"/>. 185/// An instance of <see cref="Script.GlobalsType"/> holding on values for global variables accessible from the script. 186/// Must be specified if and only if the script was created with <see cref="Script.GlobalsType"/>. 318internal Script(ScriptCompiler compiler, ScriptBuilder builder, SourceText sourceText, ScriptOptions options, Type globalsTypeOpt, Script previousOpt) 330internal override Script WithOptionsInternal(ScriptOptions options) => WithOptions(options); 385private ImmutableArray<Func<object[], Task>> TryGetPrecedingExecutors(Script lastExecutedScriptInChainOpt, CancellationToken cancellationToken) 387Script script = Previous; 393var scriptsReversed = ArrayBuilder<Script>.GetInstance(); 423/// An instance of <see cref="Script.GlobalsType"/> holding on values of global variables accessible from the script. 424/// Must be specified if and only if the script was created with a <see cref="Script.GlobalsType"/>. 435/// An instance of <see cref="Script.GlobalsType"/> holding on values for global variables accessible from the script. 436/// Must be specified if and only if the script was created with <see cref="Script.GlobalsType"/>. 441/// <exception cref="ArgumentException">The type of <paramref name="globals"/> doesn't match <see cref="Script.GlobalsType"/>.</exception> 449/// An instance of <see cref="Script.GlobalsType"/> holding on values for global variables accessible from the script. 450/// Must be specified if and only if the script was created with <see cref="Script.GlobalsType"/>. 459/// <exception cref="ArgumentException">The type of <paramref name="globals"/> doesn't match <see cref="Script.GlobalsType"/>.</exception>
ScriptCompiler.cs (1)
16public abstract Compilation CreateSubmission(Script script);
ScriptOptions.cs (1)
86/// (<see cref="Script.RunAsync(object, CancellationToken)"/>.
ScriptRunner.cs (1)
18/// <exception cref="ArgumentException">The type of <paramref name="globals"/> doesn't match the corresponding <see cref="Script.GlobalsType"/>.</exception>
ScriptState.cs (3)
26public Script Script { get; } 42internal ScriptState(ScriptExecutionState executionState, Script script, Exception exceptionOpt) 275internal ScriptState(ScriptExecutionState executionState, Script script, T value, Exception exceptionOpt)
Microsoft.CodeAnalysis.Scripting.TestUtilities (1)
ScriptingTestHelpers.cs (1)
60internal static void AssertCompilationError(Script script, params DiagnosticDescription[] expectedDiagnostics)
Microsoft.CodeAnalysis.VisualBasic.Scripting (3)
VisualBasicScript.vb (1)
27Return Script.CreateInitialScript(Of T)(VisualBasicScriptCompiler.Instance, SourceText.From(If(code, String.Empty)), options, globalsType, assemblyLoader)
VisualBasicScriptCompiler.vb (2)
44Private Shared Function GetGlobalImportsForCompilation(script As Script) As IEnumerable(Of GlobalImport) 50Public Overrides Function CreateSubmission(script As Script) As Compilation