void IScriptGlobalsHelper.Print(ScriptGlobals globals, CachedWriter writer, object color, Exception ex) { if (!IsCurrentScript(globals)) { return; } writer.Write(Format(ex), color); }
void IScriptGlobalsHelper.Print(ScriptGlobals globals, CachedWriter writer, object color, PrintOptionsImpl printOptions, object value) { if (!IsCurrentScript(globals)) { return; } ObjectOutput(writer, color, printOptions, value); }
void ObjectOutput(CachedWriter writer, object color, PrintOptionsImpl printOptions, object value) { var writable = GetOutputWritable(printOptions, value); if (writable != null) { writable.WriteTo(writer); } else { writer.Write(Format(value, printOptions.RoslynPrintOptions), color); } }
public void PrintLine(CachedWriter cw, object value, object color) { Print(cw, value, color); PrintLine(); }
public void PrintLine(CachedWriter cw, Exception ex, object color) { Print(cw, ex, color); PrintLine(); }
public void Print(CachedWriter cw, object value, object color) => owner.Print(this, cw, color, cw.PrintOptions, value);
public void Print(CachedWriter cw, Exception ex, object color) => owner.Print(this, cw, color, ex);