DoxigAlpha

errorPosition

Function parameters

Parameters

#
id:std.meta.Tag(Token)
index:usize
bytes:[]const u8

Type definitions in this namespace

Types

#

Functions in this namespace

Functions

#

Source

Implementation

#
fn errorPosition(comptime id: std.meta.Tag(Token), index: usize, bytes: []const u8) Token {
    return @unionInit(Token, @tagName(id), .{ .index = index, .bytes = bytes });
}