2 writes to Imports
Microsoft.CodeAnalysis.Scripting (2)
ScriptOptions.cs (2)
168
Imports
= namespaces;
324
=> Imports.Equals(imports) ? this : new ScriptOptions(this) {
Imports
= CheckImmutableArray(imports, nameof(imports)) };
11 references to Imports
Microsoft.CodeAnalysis.CSharp.Scripting (1)
CSharpScriptCompiler.cs (1)
60
usings: script.Options.
Imports
,
Microsoft.CodeAnalysis.Scripting (8)
ScriptOptions.cs (8)
184
namespaces: 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 (2)
ScriptOptionsTests.cs (2)
114
AssertEx.Equal(new[] { "", "blah.", "b\0lah", ".blah", "b\0lah", ".blah" }, options.
Imports
);
164
Assert.Equal(scriptOptions.
Imports
, compilation.Options.GetImports());