2 writes to Imports
Microsoft.CodeAnalysis.Scripting (2)
ScriptOptions.cs (2)
168Imports = namespaces; 324=> Imports.Equals(imports) ? this : new ScriptOptions(this) { Imports = CheckImmutableArray(imports, nameof(imports)) };
12 references to Imports
Microsoft.CodeAnalysis.CSharp.Scripting (1)
CSharpScriptCompiler.cs (1)
60usings: script.Options.Imports,
Microsoft.CodeAnalysis.Scripting (8)
ScriptOptions.cs (8)
184namespaces: other.Imports, 320/// Creates a new <see cref="ScriptOptions"/> with the <see cref="Imports"/> changed. 324=> Imports.Equals(imports) ? this : new ScriptOptions(this) { Imports = CheckImmutableArray(imports, nameof(imports)) }; 327/// Creates a new <see cref="ScriptOptions"/> with the <see cref="Imports"/> changed. 334/// Creates a new <see cref="ScriptOptions"/> with the <see cref="Imports"/> changed. 341/// Creates a new <see cref="ScriptOptions"/> with <see cref="Imports"/> added. 345=> WithImports(ConcatChecked(Imports, imports, nameof(imports))); 348/// Creates a new <see cref="ScriptOptions"/> with <see cref="Imports"/> added.
Microsoft.CodeAnalysis.Scripting.UnitTests (1)
ScriptOptionsTests.cs (1)
114AssertEx.Equal(new[] { "", "blah.", "b\0lah", ".blah", "b\0lah", ".blah" }, options.Imports);
Microsoft.CodeAnalysis.VisualBasic.Scripting (1)
VisualBasicScriptCompiler.vb (1)
47Return script.Options.Imports.Select(Function(n) GlobalImport.Parse(n))
Microsoft.CodeAnalysis.VisualBasic.Scripting.UnitTests (1)
ScriptTests.vb (1)
77Assert.Empty(ScriptOptions.Default.Imports)