checkpoint on src file / src line map baking

This commit is contained in:
Ryan Fleury
2025-09-05 15:19:30 -07:00
parent d2e6e5de5a
commit efb24fb0fa
4 changed files with 113 additions and 53 deletions
+1
View File
@@ -719,6 +719,7 @@ rdim_src_file_push_line_sequence(RDIM_Arena *arena, RDIM_SrcFileChunkList *src_f
RDIM_SrcFileLineMapFragment *fragment = rdim_push_array(arena, RDIM_SrcFileLineMapFragment, 1);
fragment->seq = seq;
RDIM_SLLQueuePush(src_file->first_line_map_fragment, src_file->last_line_map_fragment, fragment);
src_file->total_line_count += seq->line_count;
src_files->total_line_count += seq->line_count;
}
+1
View File
@@ -538,6 +538,7 @@ struct RDIM_SrcFile
RDIM_String8 path;
RDIM_SrcFileLineMapFragment *first_line_map_fragment;
RDIM_SrcFileLineMapFragment *last_line_map_fragment;
RDI_U64 total_line_count;
};
typedef struct RDIM_SrcFileChunkNode RDIM_SrcFileChunkNode;