Zig 0.17.0-dev (Split by item)
This is an example of documentation generated by
ZigDoc , an alternative to Zig's built-in
Auto Doc feature. See also
examples in other modes/formats . The project being documented here (as the example) is the Zig library itself.
Zig › compiler/ › resinator/ › source_mapping.zig › handleLineEnd
handleLineEnd
source_mapping.handleLineEnd
pub fn handleLineEnd (allocator : Allocator , post_processed_line_number : usize , mapping : *SourceMappings , current_mapping : *CurrentMapping ) !void
File
Code
pub fn handleLineEnd (allocator : Allocator , post_processed_line_number : usize , mapping : *SourceMappings , current_mapping : *CurrentMapping ) !void {
const filename_offset = try mapping .files .put (allocator , current_mapping .filename .items );
try mapping .set (post_processed_line_number , current_mapping .line_num , filename_offset );
current_mapping .line_num = std .math .add (usize , current_mapping .line_num , 1 ) catch return error .LineNumberOverflow ;
current_mapping .pending = false ;
}