1 write to Options
Microsoft.CodeAnalysis.Scripting (1)
Script.cs (1)
51
Options
= options;
24 references to Options
Microsoft.CodeAnalysis.CSharp.Scripting (9)
CSharpScriptCompiler.cs (9)
47
var tree = SyntaxFactory.ParseSyntaxTree(script.SourceText, script.
Options
.ParseOptions ?? DefaultParseOptions, script.
Options
.FilePath);
60
usings: script.
Options
.Imports,
61
optimizationLevel: script.
Options
.OptimizationLevel,
62
checkOverflow: script.
Options
.CheckOverflow,
63
allowUnsafe: script.
Options
.AllowUnsafe,
65
warningLevel: script.
Options
.WarningLevel,
67
sourceReferenceResolver: script.
Options
.SourceResolver,
68
metadataReferenceResolver: script.
Options
.MetadataResolver,
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (1)
InteractiveSessionReferencesTests.cs (1)
62
var newOptions = s0.Script.
Options
.AddReferences(typeof(Process).Assembly);
Microsoft.CodeAnalysis.Scripting (8)
Script.cs (8)
117
options = options ?? InheritOptions(
Options
);
130
options = options ?? InheritOptions(
Options
);
251
var resolver =
Options
.MetadataResolver;
257
var corLib = CreateFromAssembly(typeof(object).GetTypeInfo().Assembly, default,
Options
.CreateFromFileFunc);
268
references.Add(CreateFromAssembly(globalsAssembly, HostAssemblyReferenceProperties,
Options
.CreateFromFileFunc));
279
foreach (var reference in
Options
.MetadataReferences)
354
return (options ==
Options
) ? this : new Script<T>(Compiler, Builder, SourceText, options, GlobalsType, Previous);
392
Interlocked.CompareExchange(ref _lazyExecutor, Builder.CreateExecutor<T>(Compiler, GetCompilation(),
Options
.EmitDebugInformation, cancellationToken), null);
Microsoft.CodeAnalysis.VisualBasic.Scripting (6)
VisualBasicScriptCompiler.vb (6)
47
Return script.
Options
.Imports.Select(Function(n) GlobalImport.Parse(n))
63
Dim tree = SyntaxFactory.ParseSyntaxTree(script.SourceText, If(script.
Options
.ParseOptions, s_defaultOptions), script.
Options
.FilePath)
87
optimizationLevel:=script.
Options
.OptimizationLevel,
88
checkOverflow:=script.
Options
.CheckOverflow,
91
metadataReferenceResolver:=script.
Options
.MetadataResolver,