Skip to content

Commit

Permalink
Pretty print inherits.
Browse files Browse the repository at this point in the history
  • Loading branch information
allisterb committed Jul 24, 2023
1 parent 2f30b38 commit 8473f12
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Stratis.DevEx.Gui.Service/Pipes/Messages.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,12 @@ public static string PrettyPrint(CompilationMessage m)
public static string PrettyPrint(SummaryMessage m)
{
var n = Environment.NewLine;
return $"{{{n}\tCompilation ID: {m.CompilationId}{n}\tEditor Entry Assembly: {m.EditorEntryAssembly}{n}\tAssemblyName: {m.AssemblyName}{n}\tDocument: {m.Document}{n}\tSummary: {m.Summary}{n}\tClasses: {m.ClassNames.JoinWithSpaces()}{n}\tInvocations: {m.Invocations.Select(d => "{" + d.Select(kv => kv.Key + ":" + (string) kv.Value).JoinWithSpaces() + "}").JoinWith(",")}{n}}}";
return $"{{{n}\tCompilation ID: {m.CompilationId}{n}\tEditor Entry Assembly: {m.EditorEntryAssembly}{n}" +
$"\tAssemblyName: {m.AssemblyName}{n}\tDocument: {m.Document}{n}\tSummary: {m.Summary}{n}\tClasses: {m.ClassNames.JoinWithSpaces()}{n}" +
$"\tInherits: {"{" + m.Inherits.Select(d => (string)d["class"] + "<:" + (string)d["base"]).JoinWith(", ") + "}"}{n}" +
$"\tInvocations: {"{" + m.Invocations.Select(d =>(string) d["name"] + " in " + (string)d["method"]).JoinWith(", ") + "}"}{n}" +

$"}}";
}

public static string PrettyPrint(ControlFlowGraphMessage m)
Expand Down

0 comments on commit 8473f12

Please sign in to comment.