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

cgen: parallelize (#10844)

This commit is contained in:
crthpl
2021-09-28 00:28:04 -07:00
committed by GitHub
parent a17b943e87
commit 85b58b03a3
43 changed files with 1003 additions and 580 deletions

View File

@@ -8,6 +8,7 @@ import v.parser
import v.ast
import v.pref
import v.errors
import strings
struct Context {
mut:
@@ -208,7 +209,7 @@ fn (t Tree) type_node(typ ast.Type) &Node {
return create_null()
} else {
type_name := t.table.get_type_name(typ)
return create_string(type_name)
return create_string(strings.repeat(`&`, typ.nr_muls()) + type_name)
}
}