function updateDict(info, dict) {
    if (info.prefixLength === 0 && info.extra === 0) return;

    var indent = dict[info.id] || {prefixLength: 0, extra: 0};

    let indentLength = indent.prefixLength + indent.extra;
    let infoLength = info.prefixLength + info.extra;
    if (indentLength > infoLength) {
      dict[info.id] = indent;
    } else {
      dict[info.id] = {
        prefixLength: info.prefixLength,
        extra: info.extra
      };
    }
  }
function updateDict(info, dict) {
    if (info.prefixLength === 0 && info.extra === 0) return;

    var indent = dict[info.id] || {prefixLength: 0, extra: 0};

    let indentLength = indent.prefixLength + indent.extra;
    let infoLength = info.prefixLength + info.extra;
    if (indentLength > infoLength) {
      dict[info.id] = indent;
    } else {
      dict[info.id] = {
        prefixLength: info.prefixLength,
        extra: info.extra
      };
    }
  }
function updateDict ( info , dict ) { if ( info . prefixLength === 0 && info . extra === 0 ) return ; var indent = dict [ info . id ] || { prefixLength : 0 , extra : 0 } ; let indentLength = indent . prefixLength + indent . extra ; let infoLength = info . prefixLength + info . extra ; if ( indentLength > infoLength ) { dict [ info . id ] = indent ; } else { dict [ info . id ] = { prefixLength : info . prefixLength , extra : info . extra } ; } }
Updates dict which contains info about items align.

@param {Object} info
@param {Object} dict
Updates dict which contains info about items align .