public BooFileNode(ProjectNode root, ProjectElement e) : base(root, e) { results = new CompileResults(() => Url, GetCompilerInput, ()=>GlobalServices.LanguageService.GetLanguagePreferences().TabSize); languageService = (BooLanguageService)GetService(typeof(BooLanguageService)); hidden = true; }
public static CompileResults RunCompiler(string source) { var results = new CompileResults( () => "Test", () => source, () => 4 ); CompilerManager.Compile(4, new[] { typeof(SerializableAttribute).Assembly }, new[] { results }); return results; }
public void SetCompilerResults(CompileResults newResults) { results.HideMessages(((BooProjectNode)ProjectMgr).RemoveTask); results = newResults; if (!hidden) results.ShowMessages(((BooProjectNode)ProjectMgr).AddTask, Navigate); if (Recompiled != null) Recompiled(this, EventArgs.Empty); }