col and line are base-0 index. Format to base-1.
void addError(String msg) => errors.add('[${line + 1}:${col + 1}] $msg');