mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: vfmt vlib/v/parser/struct.v
This commit is contained in:
@ -390,9 +390,9 @@ fn (mut p Parser) interface_decl() ast.InterfaceDecl {
|
|||||||
typ := table.new_type(reg_idx)
|
typ := table.new_type(reg_idx)
|
||||||
mut ts := p.table.get_type_symbol(typ)
|
mut ts := p.table.get_type_symbol(typ)
|
||||||
// if methods were declared before, it's an error, ignore them
|
// if methods were declared before, it's an error, ignore them
|
||||||
ts.methods = []table.Fn{cap:20}
|
ts.methods = []table.Fn{cap: 20}
|
||||||
// Parse methods
|
// Parse methods
|
||||||
mut methods := []ast.FnDecl{cap:20}
|
mut methods := []ast.FnDecl{cap: 20}
|
||||||
for p.tok.kind != .rcbr && p.tok.kind != .eof {
|
for p.tok.kind != .rcbr && p.tok.kind != .eof {
|
||||||
method_start_pos := p.tok.position()
|
method_start_pos := p.tok.position()
|
||||||
line_nr := p.tok.line_nr
|
line_nr := p.tok.line_nr
|
||||||
|
Reference in New Issue
Block a user