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)) };
10 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.VisualBasic.Scripting (1)
VisualBasicScriptCompiler.vb (1)
47
Return script.Options.
Imports
.Select(Function(n) GlobalImport.Parse(n))