1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

fmt: fix mut_pos in structs with embeds

This commit is contained in:
Alexander Medvednikov 2021-01-02 19:24:09 +01:00
parent 38c764f0ce
commit fc6d45b2d7

View File

@ -307,9 +307,9 @@ fn (mut p Parser) struct_decl() ast.StructDecl {
is_pub: is_pub
fields: ast_fields
pos: start_pos.extend_with_last_line(name_pos, last_line)
mut_pos: mut_pos
pub_pos: pub_pos
pub_mut_pos: pub_mut_pos
mut_pos: mut_pos - embeds.len
pub_pos: pub_pos - embeds.len
pub_mut_pos: pub_mut_pos - embeds.len
language: language
is_union: is_union
attrs: attrs