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

@ -106,7 +106,7 @@ mut:
enum_vals []string
gen_types []string
default_vals []string // `struct Foo { bar int = 2 }`
// This field is used for types that are not defined yet but are known to exist.
// `is_placeholder` is used for types that are not defined yet but are known to exist.
// It allows having things like `fn (f Foo) bar()` before `Foo` is defined.
// This information is needed in the first pass.
is_placeholder bool
@ -397,7 +397,7 @@ fn (p mut Parser) register_type_with_parent(strtyp, parent string) {
mod: p.mod
is_public: true
}
p.table.register_type2(typ)
p.table.register_type(typ)
}
fn (t mut Table) register_type_with_parent(typ, parent string) {
@ -412,7 +412,7 @@ fn (t mut Table) register_type_with_parent(typ, parent string) {
}
}
fn (t mut Table) register_type2(typ Type) {
fn (t mut Table) register_type(typ Type) {
if typ.name.len == 0 {
return
}