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