public static string DiffErrorFull(this Transform t, DocumentDeclaration doc) { try { var(diff, arrow_line) = DiffError(t, doc); if (diff is null && arrow_line is null) { return(""); } return($"\n\t[grey] {diff.EscapeMarkup().EscapeArgumentSymbols()} [/]\n\t[red] {arrow_line.EscapeMarkup().EscapeArgumentSymbols()} [/]"); } catch { return(""); // TODO analytic } }
private static (string line, string arrow_line) NewDiffError(Transform t, DocumentDeclaration doc) { if (doc is null) { return(default);