示例#1
0
 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
     }
 }
示例#2
0
 private static (string line, string arrow_line) NewDiffError(Transform t, DocumentDeclaration doc)
 {
     if (doc is null)
     {
         return(default);