7 references to WithImports
Microsoft.CodeAnalysis.InteractiveHost (1)
Interactive\Core\InteractiveHost.Service.cs (1)
570
WithImports
(initialImports).
Microsoft.CodeAnalysis.Scripting (2)
Script.cs (1)
139
WithImports
(ImmutableArray<string>.Empty);
ScriptOptions.cs (1)
338
=>
WithImports
((IEnumerable<string>)imports);
Microsoft.CodeAnalysis.Scripting.UnitTests (4)
ScriptOptionsTests.cs (4)
146
Assert.Throws<ArgumentNullException>("imports", () => options.
WithImports
((IEnumerable<string>)null));
147
Assert.Throws<ArgumentNullException>("imports[0]", () => options.
WithImports
((IEnumerable<string>)new string[] { null }));
149
Assert.Throws<ArgumentNullException>("imports", () => options.
WithImports
(default(ImmutableArray<string>)));
150
Assert.Throws<ArgumentNullException>("imports[0]", () => options.
WithImports
(ImmutableArray.Create((string)null)));