private void updateInfo(DalvInsn insn) {
    if (!hasAnyPositionInfo) {
      SourcePosition pos = insn.getPosition();
      if (pos.getLine() >= 0) {
        hasAnyPositionInfo = true;
      }
    }

    if (!hasAnyLocalInfo) {
      if (hasLocalInfo(insn)) {
        hasAnyLocalInfo = true;
      }
    }
  }
Helper for {@link #add} and {@link #insert}, which updates the position and local info flags.

@param insn {@code non-null;} an instruction that was just introduced
android/android_framework/dex-maker/src/main/java/com/android/dx/dex/code/OutputFinisher.java