// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#pragma warning disable RS0026 // Do not add multiple public overloads with optional parameters
usingSystem;
usingSystem.IO;
usingSystem.Threading;
usingSystem.Threading.Tasks;
usingMicrosoft.CodeAnalysis.Scripting;
usingMicrosoft.CodeAnalysis.Scripting.Hosting;
usingMicrosoft.CodeAnalysis.Text;
namespaceMicrosoft.CodeAnalysis.CSharp.Scripting
{
...
...
@@ -21,9 +24,27 @@ public static class CSharpScript
/// <param name="globalsType">Type of global object.</param>
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
usingSystem;
usingSystem.Text;
usingSystem.Threading;
usingMicrosoft.CodeAnalysis.CSharp;
usingMicrosoft.CodeAnalysis.Scripting;
...
...
@@ -41,7 +42,7 @@ public override Compilation CreateSubmission(Script script)
returnVerifyStackTraceAsync(()=>CSharpScript.Create(newMemoryStream(Encoding.UTF8.GetBytes("throw new System.Exception();")),opts),line:1,column:1,filename:"debug.csx");
returnVerifyStackTraceAsync(()=>CSharpScript.Create(newMemoryStream(Encoding.UTF8.GetBytes("throw new System.Exception();")),opts),line:1,column:1,filename:"");
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#pragma warning disable RS0026 // Do not add multiple public overloads with optional parameters
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.