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

cgen: minor cleanup in global_decl() (#15133)

This commit is contained in:
yuyi 2022-07-20 18:51:33 +08:00 committed by GitHub
parent ee4a179e71
commit f27c0387ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4691,7 +4691,6 @@ fn (mut g Gen) global_decl(node ast.GlobalDecl) {
mod: node.mod mod: node.mod
def: '$fn_type_name = ${g.table.sym(field.typ).name}; // global2' def: '$fn_type_name = ${g.table.sym(field.typ).name}; // global2'
order: -1 order: -1
// line: node.pos.line_nr
} }
continue continue
} }
@ -4706,7 +4705,6 @@ fn (mut g Gen) global_decl(node ast.GlobalDecl) {
mod: node.mod mod: node.mod
def: def_builder.str() def: def_builder.str()
order: -1 order: -1
// line: node.pos.line_nr
} }
continue continue
} }
@ -4739,7 +4737,6 @@ fn (mut g Gen) global_decl(node ast.GlobalDecl) {
def: def_builder.str() def: def_builder.str()
init: init init: init
dep_names: g.table.dependent_names_in_expr(field.expr) dep_names: g.table.dependent_names_in_expr(field.expr)
// line: node.pos.line_nr
} }
} }
} }