| ... | @@ -66,7 +66,7 @@ pub fn renderToArrayList(tree: Ast, buffer: *std.ArrayList(u8)) RenderError!void | ... | @@ -66,7 +66,7 @@ pub fn renderToArrayList(tree: Ast, buffer: *std.ArrayList(u8)) RenderError!void |
| 66 | | 66 | |
| 67 | /// Returns an extra offset for column and byte offset of errors that | 67 | /// Returns an extra offset for column and byte offset of errors that |
| 68 | /// should point after the token in the error message. | 68 | /// should point after the token in the error message. |
| 69 | pub fn errorOffset(tree:Ast, error_tag: Error.Tag, token: TokenIndex) u32 { | 69 | pub fn errorOffset(tree: Ast, error_tag: Error.Tag, token: TokenIndex) u32 { |
| 70 | return switch (error_tag) { | 70 | return switch (error_tag) { |
| 71 | .expected_semi_after_decl, | 71 | .expected_semi_after_decl, |
| 72 | .expected_semi_after_stmt, | 72 | .expected_semi_after_stmt, |