debugString property

String get debugString

Implementation

String get debugString {
  var buff = StringBuffer();
  for (var lineEntry in lines) {
    var line = lineEntry.line;
    for (var entry in lineEntry.entries) {
      buff
        ..write(targetUrl)
        ..write(': ')
        ..write(line)
        ..write(':')
        ..write(entry.column);
      var sourceUrlId = entry.sourceUrlId;
      if (sourceUrlId != null) {
        buff
          ..write('   -->   ')
          ..write(sourceRoot)
          ..write(urls[sourceUrlId])
          ..write(': ')
          ..write(entry.sourceLine)
          ..write(':')
          ..write(entry.sourceColumn);
      }
      var sourceNameId = entry.sourceNameId;
      if (sourceNameId != null) {
        buff
          ..write(' (')
          ..write(names[sourceNameId])
          ..write(')');
      }
      buff.write('\n');
    }
  }
  return buff.toString();
}