gbrainy/gbrainy-2.1.5-CSharpCompiler.patch

17 lines
608 B
Diff
Raw Normal View History

Index: src/Core/Libraries/CSharpCompiler.cs
===================================================================
--- src/Core/Libraries/CSharpCompiler.cs.orig
+++ src/Core/Libraries/CSharpCompiler.cs
@@ -44,10 +44,7 @@ namespace gbrainy.Core.Libraries
public CSharpCompiler ()
{
- CompilerSettings settings = new CompilerSettings ();
- Report report = new Report (new NullReportPrinter ());
-
- evaluator = new Evaluator (settings, report);
+ evaluator = new Evaluator (new CompilerContext (new CompilerSettings (), new NullReportPrinter ()));
}
public void EvaluateCode (string code)