mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: fix InterfaceDecl's position (#9649)
This commit is contained in:
@@ -571,7 +571,7 @@ fn (mut p Parser) interface_decl() ast.InterfaceDecl {
|
||||
ts.info = info
|
||||
p.top_level_statement_end()
|
||||
p.check(.rcbr)
|
||||
pos.update_last_line(p.prev_tok.line_nr)
|
||||
pos = pos.extend_with_last_line(p.prev_tok.position(), p.prev_tok.line_nr)
|
||||
return ast.InterfaceDecl{
|
||||
name: interface_name
|
||||
fields: fields
|
||||
|
||||
Reference in New Issue
Block a user