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

rename table.register_type2()

This commit is contained in:
Alexander Medvednikov
2019-12-05 14:09:33 +03:00
parent 0ff2754677
commit 2a1b0a8cae
7 changed files with 15 additions and 15 deletions

View File

@@ -752,7 +752,7 @@ fn (p mut Parser) type_decl() {
''
}
p.gen_typedef('typedef $_struct $nt_pair; //type alias name="$name" parent=`$parent.name`')
p.table.register_type2(Type{
p.table.register_type(Type{
name: name
parent: parent.name
mod: p.mod
@@ -931,7 +931,7 @@ fn (p mut Parser) get_type() string {
mod: p.mod
func: f
}
p.table.register_type2(fn_typ)
p.table.register_type(fn_typ)
return f.typ_str()
}
// arrays ([]int)