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:
parent
38c764f0ce
commit
fc6d45b2d7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user