1 type derived from Script
Microsoft.CodeAnalysis.Scripting (1)
Script.cs (1)
340
public sealed class Script<T> :
Script
47 references to Script
Microsoft.CodeAnalysis.CSharp.Scripting (4)
CSharpScript.cs (2)
37
return
Script
.CreateInitialScript<T>(CSharpScriptCompiler.Instance, SourceText.From(code, options?.FileEncoding, SourceHashAlgorithms.Default), options, globalsType, assemblyLoader);
54
return
Script
.CreateInitialScript<T>(CSharpScriptCompiler.Instance, SourceText.From(code, options?.FileEncoding), options, globalsType, assemblyLoader);
CSharpScriptCompiler.cs (1)
33
public override Compilation CreateSubmission(
Script
script)
Hosting\CommandLine\Csi.cs (1)
29
_createFromFileFunc = createFromFileFunc ??
Script
.CreateFromFile;
Microsoft.CodeAnalysis.InteractiveHost (2)
Interactive\Core\InteractiveHost.Service.cs (2)
649
private Script<object>? TryCompile(
Script
? previousScript, string code, string? path, ScriptOptions options)
653
Script
script;
Microsoft.CodeAnalysis.Scripting (36)
Hosting\CommandLine\CommandLineRunner.cs (4)
45
_createFromFileFunc = createFromFileFunc ??
Script
.CreateFromFile;
207
var script =
Script
.CreateInitialScript<int>(_scriptCompiler, code, options, globals.GetType(), assemblyLoaderOpt: null);
233
var script =
Script
.CreateInitialScript<object>(_scriptCompiler, SourceText.From(initialScriptCodeOpt), options, globals.GetType(), assemblyLoaderOpt: null);
285
newScript =
Script
.CreateInitialScript<object>(_scriptCompiler, SourceText.From(code ?? string.Empty), options, globals.GetType(), assemblyLoaderOpt: null);
Hosting\Resolvers\RuntimeMetadataReferenceResolver.cs (1)
91
_createFromFileFunc = createFromfileFunc ?? ((path, properties) =>
Script
.CreateFromFile(path, PEStreamOptions.PrefetchEntireImage, properties));
Script.cs (23)
40
internal Script(ScriptCompiler compiler, ScriptBuilder builder, SourceText sourceText, ScriptOptions options, Type globalsTypeOpt,
Script
previousOpt)
65
public
Script
Previous { get; }
95
public
Script
WithOptions(ScriptOptions options) => WithOptionsInternal(options);
96
internal abstract
Script
WithOptionsInternal(ScriptOptions options);
160
/// An instance of <see cref="
Script
.GlobalsType"/> holding on values of global variables accessible from the script.
161
/// Must be specified if and only if the script was created with a <see cref="
Script
.GlobalsType"/>.
174
/// An instance of <see cref="
Script
.GlobalsType"/> holding on values for global variables accessible from the script.
175
/// Must be specified if and only if the script was created with <see cref="
Script
.GlobalsType"/>.
186
/// An instance of <see cref="
Script
.GlobalsType"/> holding on values for global variables accessible from the script.
187
/// Must be specified if and only if the script was created with <see cref="
Script
.GlobalsType"/>.
345
internal Script(ScriptCompiler compiler, ScriptBuilder builder, SourceText sourceText, ScriptOptions options, Type globalsTypeOpt,
Script
previousOpt)
357
internal override
Script
WithOptionsInternal(ScriptOptions options) => WithOptions(options);
412
private ImmutableArray<Func<object[], Task>> TryGetPrecedingExecutors(
Script
lastExecutedScriptInChainOpt, CancellationToken cancellationToken)
414
Script
script = Previous;
420
var scriptsReversed = ArrayBuilder<
Script
>.GetInstance();
450
/// An instance of <see cref="
Script
.GlobalsType"/> holding on values of global variables accessible from the script.
451
/// Must be specified if and only if the script was created with a <see cref="
Script
.GlobalsType"/>.
462
/// An instance of <see cref="
Script
.GlobalsType"/> holding on values for global variables accessible from the script.
463
/// Must be specified if and only if the script was created with <see cref="
Script
.GlobalsType"/>.
468
/// <exception cref="ArgumentException">The type of <paramref name="globals"/> doesn't match <see cref="
Script
.GlobalsType"/>.</exception>
476
/// An instance of <see cref="
Script
.GlobalsType"/> holding on values for global variables accessible from the script.
477
/// Must be specified if and only if the script was created with <see cref="
Script
.GlobalsType"/>.
486
/// <exception cref="ArgumentException">The type of <paramref name="globals"/> doesn't match <see cref="
Script
.GlobalsType"/>.</exception>
ScriptCompiler.cs (1)
16
public abstract Compilation CreateSubmission(
Script
script);
ScriptOptions.cs (3)
85
/// (<see cref="
Script
.RunAsync(object, CancellationToken)"/>.
178
CreateFromFileFunc = createFromFileFunc ??
Script
.CreateFromFile;
270
Script
.CreateFromAssembly(assembly, s_assemblyReferenceProperties, CreateFromFileFunc);
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)
26
public
Script
Script { get; }
42
internal ScriptState(ScriptExecutionState executionState,
Script
script, Exception exceptionOpt)
275
internal ScriptState(ScriptExecutionState executionState,
Script
script, T value, Exception exceptionOpt)
Microsoft.CodeAnalysis.Scripting.TestUtilities (1)
ScriptingTestHelpers.cs (1)
60
internal static void AssertCompilationError(
Script
script, params DiagnosticDescription[] expectedDiagnostics)
Microsoft.CodeAnalysis.VisualBasic.Scripting (4)
Hosting\CommandLine\Vbi.vb (1)
23
createFromFileFunc = AddressOf
Script
.CreateFromFile
VisualBasicScript.vb (1)
27
Return
Script
.CreateInitialScript(Of T)(VisualBasicScriptCompiler.Instance, SourceText.From(If(code, String.Empty)), options, globalsType, assemblyLoader)
VisualBasicScriptCompiler.vb (2)
44
Private Shared Function GetGlobalImportsForCompilation(script As
Script
) As IEnumerable(Of GlobalImport)
50
Public Overrides Function CreateSubmission(script As
Script
) As Compilation